Package cn.mapway.ui.client.widget
Class Tip
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.SimplePanel
-
- com.google.gwt.user.client.ui.PopupPanel
-
- cn.mapway.ui.client.widget.Tip
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.EventPreview,com.google.gwt.user.client.ui.AcceptsOneWidget,com.google.gwt.user.client.ui.HasAnimation,com.google.gwt.user.client.ui.HasOneWidget,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,com.google.gwt.user.client.ui.PopupPanel.PositionCallback,com.google.gwt.user.client.ui.SourcesPopupEvents,Iterable<com.google.gwt.user.client.ui.Widget>
public class Tip extends com.google.gwt.user.client.ui.PopupPanel implements com.google.gwt.user.client.ui.PopupPanel.PositionCallbackTip 显示提示弹出框,全局只有一个- Author:
- zhangjianshe
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback
-
-
Field Summary
Fields Modifier and Type Field Description static StringLOCATION_BOTTOMstatic StringLOCATION_LEFTstatic StringLOCATION_RIGHTstatic StringLOCATION_TOP
-
Constructor Summary
Constructors Constructor Description Tip()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TipgetTip()全局过去TIP窗口static voidhideTip()voidsetPosition(int offsetWidth, int offsetHeight)voidsetTipDirection(String direction)支持 top right bottom leftstatic voidshowTip(com.google.gwt.dom.client.Element element, String message, String tipDirection)static voidshowTip(com.google.gwt.user.client.ui.UIObject widget, String message, String tipDirection)-
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addCloseHandler, addPopupListener, center, getAnimationType, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onPreviewNativeEvent, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setHeight, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, setWidget, setWidth, show, showRelativeTo
-
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getWidget, iterator, remove, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
LOCATION_BOTTOM
public static final String LOCATION_BOTTOM
- See Also:
- Constant Field Values
-
LOCATION_TOP
public static final String LOCATION_TOP
- See Also:
- Constant Field Values
-
LOCATION_RIGHT
public static final String LOCATION_RIGHT
- See Also:
- Constant Field Values
-
LOCATION_LEFT
public static final String LOCATION_LEFT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTip
public static Tip getTip()
全局过去TIP窗口- Returns:
-
showTip
public static void showTip(com.google.gwt.user.client.ui.UIObject widget, String message, String tipDirection)
-
showTip
public static void showTip(com.google.gwt.dom.client.Element element, String message, String tipDirection)
-
hideTip
public static void hideTip()
-
setTipDirection
public void setTipDirection(String direction)
支持 top right bottom left- Parameters:
direction-
-
setPosition
public void setPosition(int offsetWidth, int offsetHeight)- Specified by:
setPositionin interfacecom.google.gwt.user.client.ui.PopupPanel.PositionCallback
-
-