public class AdUnitWidget extends MVCObjectWidget<AdUnitImpl>
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledDEBUG_ID_PREFIX| Constructor and Description |
|---|
AdUnitWidget(AdUnitOptions options)
create AdUnit widget
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getMVCObjectaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEventspublic AdUnitWidget(AdUnitOptions options)
options - 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 - ControlPositionCopyright © 2011-2013 GWT Maps API V3. All Rights Reserved.