|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.maps.client.mvc.MVCObjectWidget<AdUnitImpl>
com.google.gwt.maps.client.adsense.AdUnitWidget
public class AdUnitWidget
Implements AdSense for Content advertising on an associated map. To use an
AdUnit, you must obtain and specify an AdSense for Content publisher ID
within the AdUnit's constructor options. This class extends MVCObject.
See AdUnit API Doc
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
AdUnitWidget(AdUnitOptions options)
create AdUnit widget |
Method Summary | |
---|---|
HandlerRegistration |
addChannelNumberChangeHandler(ChannelNumberChangeMapHandler handler)
This event is fired when the AdUnit's channelNumber property changes. |
HandlerRegistration |
addFormatChangeHandler(FormatChangeMapHandler handler)
This event is fired when the AdUnit's format property changes. |
HandlerRegistration |
addMapChangeHandler(MapChangeMapHandler handler)
This event is fired when the AdUnit's map property changes. |
HandlerRegistration |
addPositionChangeHandler(PositionChangeMapHandler handler)
This event is fired when the AdUnit's position property changes. |
String |
getChannelNumber()
Returns the channel number in use by this AdUnit. |
Element |
getContainer()
Returns the containing element of the AdUnit. |
AdFormat |
getFormat()
Returns the format in use by this AdUnit. |
MapWidget |
getMap()
Returns the map to which this AdUnit's ads are targeted. |
ControlPosition |
getPosition()
Returns the ControlPosition at which this AdUnit is displayed on the map. |
String |
getPublisherId()
Returns the specified AdSense For Content publisher ID. |
void |
setChannelNumber(String channelNumber)
Specifies the channel number for this AdUnit. |
void |
setFormat(AdFormat format)
Specifies the display format for this AdUnit. |
void |
setMap(MapWidget mapWidget)
Associates this AdUnit with the specified map. |
void |
setPosition(ControlPosition position)
Sets the ControlPosition at which to display the AdUnit on the map. |
Methods inherited from class com.google.gwt.maps.client.mvc.MVCObjectWidget |
---|
getMVCObject |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AdUnitWidget(AdUnitOptions options)
options
- Method Detail |
---|
public final HandlerRegistration addChannelNumberChangeHandler(ChannelNumberChangeMapHandler handler)
handler
- public final HandlerRegistration addFormatChangeHandler(FormatChangeMapHandler handler)
handler
- public final HandlerRegistration addMapChangeHandler(MapChangeMapHandler handler)
handler
- public final HandlerRegistration addPositionChangeHandler(PositionChangeMapHandler handler)
handler
- public final String getChannelNumber()
public final Element getContainer()
public final AdFormat getFormat()
public final MapWidget getMap()
public final ControlPosition getPosition()
public final String getPublisherId()
public final void setChannelNumber(String channelNumber)
channelNumber
- public final void setFormat(AdFormat format)
format
- public final void setMap(MapWidget mapWidget)
mapWidget
- public final void setPosition(ControlPosition position)
position
- ControlPosition
|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |