|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.webSvr.ads.GoogleAdSenseUnitBean
public final class GoogleAdSenseUnitBean
This implements the Google AdSense/AdLink bean. This picks colours, etc, to blend into the site as appropriate, and shows alternate ads or collapses units as appropriate.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.hd.d.pg2k.webSvr.ads.AdBeanInterface |
|---|
AdBeanInterface.Context |
| Field Summary | |
|---|---|
static java.lang.String |
AD_FORMAT_AS_ADLINKS_NARROW_BOX
Parameter value to select narrow (120x90) AdLinks box with 4 or 5 lines; shows alternate content rather than PSA. |
static java.lang.String |
AD_FORMAT_AS_ADLINKS_WIDE_BOX
Parameter value to select wide (160x90) AdLinks box with 4 or 5 lines; shows alternate content rather than PSA. |
private java.lang.String |
selectedFormat
Requested ad format or null; volatile to allow lock-less thread-safe access. |
| Constructor Summary | |
|---|---|
GoogleAdSenseUnitBean()
|
|
| Method Summary | |
|---|---|
boolean |
canMakeHTMLBodyInsert(AdBeanInterface.Context ctxt)
Can make an HTML body-text insert in the given context. |
java.lang.String |
getHTMLBodyInsert(AdBeanInterface.Context ctxt,
java.util.Random source)
Make HTML body text in the given context, or null if none can be made. |
AdBeanInterface |
setParams(java.lang.String rawParams)
Can be used to set general parameters for the bean, or can be null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String AD_FORMAT_AS_ADLINKS_WIDE_BOX
public static final java.lang.String AD_FORMAT_AS_ADLINKS_NARROW_BOX
private volatile java.lang.String selectedFormat
| Constructor Detail |
|---|
public GoogleAdSenseUnitBean()
| Method Detail |
|---|
public AdBeanInterface setParams(java.lang.String rawParams)
setParams in interface AdBeanInterfacepublic boolean canMakeHTMLBodyInsert(AdBeanInterface.Context ctxt)
canMakeHTMLBodyInsert in interface AdBeanInterface
public java.lang.String getHTMLBodyInsert(AdBeanInterface.Context ctxt,
java.util.Random source)
getHTMLBodyInsert in interface AdBeanInterfacectxt - not usedsource - not used
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||