|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPopupPanel
com.vaadin.client.ui.VOverlay
com.vaadin.client.VTooltip
public class VTooltip
TODO open for extension
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.vaadin.client.ui.VOverlay |
|---|
VOverlay.PositionAndSize, VOverlay.ResizeAnimation |
| Field Summary | |
|---|---|
static int |
TOOLTIP_EVENTS
|
| Fields inherited from class com.vaadin.client.ui.VOverlay |
|---|
ac, ADDITIONAL_CLASSNAME_ANIMATE_IN, ADDITIONAL_CLASSNAME_ANIMATE_OUT, CLASSNAME_CONTAINER, CLASSNAME_SHADOW, current, Z_INDEX |
| Constructor Summary | |
|---|---|
VTooltip()
Used to show tooltips; usually used via the singleton in ApplicationConnection. |
|
| Method Summary | |
|---|---|
void |
connectHandlersToWidget(Widget widget)
Connects DOM handlers to widget that are needed for tooltip presentation. |
int |
getCloseTimeout()
Returns the time (in ms) the tooltip should be displayed after an event that will cause it to be closed (e.g. |
int |
getMaxWidth()
Returns the maximum width of the tooltip popup. |
int |
getOpenDelay()
Returns the time (in ms) that should elapse after an event triggering tooltip showing has occurred (e.g. |
int |
getQuickOpenDelay()
Returns the time (in ms) that should elapse before a tooltip will be shown, in the situation when a tooltip has very recently been shown (within getQuickOpenDelay() ms). |
int |
getQuickOpenTimeout()
Returns the time (in ms) during which getQuickOpenDelay() should
be used instead of getOpenDelay(). |
java.lang.String |
getUniqueId()
Returns the unique id of the tooltip element. |
void |
hide()
|
void |
hideTooltip()
|
void |
initializeAssistiveTooltips()
Initialize the tooltip overlay for assistive devices. |
boolean |
isTooltipOpen()
For assistive tooltips to work correctly we must have the tooltip visible and attached to the DOM well in advance. |
void |
onBrowserEvent(Event event)
|
void |
replaceCurrentTooltip()
Replace current open tooltip with new content |
void |
setCloseTimeout(int closeTimeout)
Sets the time (in ms) the tooltip should be displayed after an event that will cause it to be closed (e.g. |
void |
setMaxWidth(int maxWidth)
Sets the maximum width of the tooltip popup. |
void |
setOpenDelay(int openDelay)
Sets the time (in ms) that should elapse after an event triggering tooltip showing has occurred (e.g. |
void |
setPopupPositionAndShow(PositionCallback callback)
|
void |
setQuickOpenDelay(int quickOpenDelay)
Sets the time (in ms) that should elapse before a tooltip will be shown, in the situation when a tooltip has very recently been shown (within getQuickOpenDelay() ms). |
void |
setQuickOpenTimeout(int quickOpenTimeout)
Sets the time (in ms) that determines when getQuickOpenDelay()
should be used instead of getOpenDelay(). |
void |
showAssistive(TooltipInfo info)
Show the tooltip with the provided info for assistive devices. |
void |
updatePosition(Event event,
boolean isFocused)
|
| Methods inherited from class com.vaadin.client.ui.VOverlay |
|---|
center, getApplicationConnection, getOverlayContainer, getOverlayContainer, getOwner, hide, hide, isShadowEnabled, isShimElementEnabled, isSinkShadowEvents, needsShimElement, onClose, onDetach, positionOrSizeUpdated, setHeight, setOverlayContainerLabel, setOwner, setPopupPosition, setShadowEnabled, setShadowStyle, setSinkShadowEvents, setVisible, setWidth, setZIndex, show, sinkEvents, updateShadowSizeAndPosition, useShadowDiv |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.logical.shared.CloseHandler |
|---|
onClose |
| Field Detail |
|---|
public static final int TOOLTIP_EVENTS
| Constructor Detail |
|---|
public VTooltip()
ApplicationConnection. NOTE that #setOwner(Widget)} should be
called after instantiating.
ApplicationConnection.getVTooltip()| Method Detail |
|---|
public void showAssistive(TooltipInfo info)
info - with the content of the tooltippublic void initializeAssistiveTooltips()
info - with the content of the tooltippublic boolean isTooltipOpen()
public void hideTooltip()
public void hide()
hide in class VOverlay
public void updatePosition(Event event,
boolean isFocused)
public void onBrowserEvent(Event event)
public void replaceCurrentTooltip()
public void connectHandlersToWidget(Widget widget)
widget - Widget which DOM handlers are connectedpublic java.lang.String getUniqueId()
public void setPopupPositionAndShow(PositionCallback callback)
public int getCloseTimeout()
public void setCloseTimeout(int closeTimeout)
closeTimeout - The close timeout (in ms)public int getQuickOpenTimeout()
getQuickOpenDelay() should
be used instead of getOpenDelay(). The quick open delay is used
when the tooltip has very recently been shown, is currently hidden but
about to be shown again.
public void setQuickOpenTimeout(int quickOpenTimeout)
getQuickOpenDelay()
should be used instead of getOpenDelay(). The quick open delay
is used when the tooltip has very recently been shown, is currently
hidden but about to be shown again.
quickOpenTimeout - The quick open timeout (in ms)public int getQuickOpenDelay()
getQuickOpenDelay() ms).
public void setQuickOpenDelay(int quickOpenDelay)
getQuickOpenDelay() ms).
quickOpenDelay - The quick open delay (in ms)public int getOpenDelay()
getQuickOpenDelay() is used instead of this.
public void setOpenDelay(int openDelay)
getQuickOpenDelay() is used instead of this.
openDelay - The open delay (in ms)public void setMaxWidth(int maxWidth)
maxWidth - The maximum width the tooltip popup (in pixels)public int getMaxWidth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||