|
|||||||||
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.user.client.ui.Composite
com.maryanovsky.map.client.widgets.bubble.BubbleWidget
public class BubbleWidget
A "bubble", or "tooltip" widget.
The style name of the widget is map-BubbleWidget
. The style name
of the content holder element is map-BubbleWidgetContentHolder
.
The style name of the bubble's "leg" is map-BubbleWidgetLeg
.
Nested Class Summary | |
---|---|
static interface |
BubbleWidget.Images
A bundle of the images used by the widget. |
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 | |
---|---|
BubbleWidget()
Creates a new Bubble, with initially no content. |
|
BubbleWidget(BubbleWidget.Images images,
Alignment alignment,
Widget content)
Creates a new BubbleWidget with the specified images, alignment
relative to the anchor point and content (the latter may be
null ). |
|
BubbleWidget(Widget content)
Creates a new BubbleWidget with the specified content (may be
null ). |
Method Summary | |
---|---|
void |
added(MapWidget mapWidget)
Adds the bubble to the map's overlay panel. |
protected Widget |
createContentHolderWrapper(Widget contentHolder)
This method creates a wrapper panel for the content holder. |
void |
removed(MapWidget mapWidget)
Removes the widget from the map's overlay panel. |
void |
setAnchor(LatLng anchor)
Sets the anchor coordinate - the one to which the bubble points. |
void |
setContent(Widget content)
Sets the content widget. |
void |
updated(MapWidget mapWidget,
boolean isTemporary)
Called to update the overlay's position. |
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget |
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, isOrWasAttached, 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, 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 BubbleWidget(BubbleWidget.Images images, Alignment alignment, Widget content)
BubbleWidget
with the specified images, alignment
relative to the anchor point and content (the latter may be
null
).
public BubbleWidget(Widget content)
BubbleWidget
with the specified content (may be
null
).
public BubbleWidget()
Method Detail |
---|
protected Widget createContentHolderWrapper(Widget contentHolder)
public void setContent(Widget content)
null
to clear the content.
public void setAnchor(LatLng anchor)
public void added(MapWidget mapWidget)
added
in interface Overlay
public void updated(MapWidget mapWidget, boolean isTemporary)
updated
in interface Overlay
public void removed(MapWidget mapWidget)
removed
in interface Overlay
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |