Class CmsFieldTooltip
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.gwt.client.ui.input.form.CmsFieldTooltip
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.IsRenderable
,com.google.gwt.user.client.ui.IsWidget
Tooltip widget for element setting help texts.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Data needed to create a tooltip.static class
Event handler for managing tooltip visibility.protected static interface
The ui binder interface for this widget.Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.google.gwt.user.client.ui.HTML
The label with the help text.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Gets the tooltip data.static CmsFieldTooltip.Handler
Gets the handler instance.com.google.gwt.user.client.ui.HTML
getLabel()
Gets the label for the help text.boolean
Checks if the tooltip is persistent, i.e.void
Makes the tooltip persistent, i.e.static void
position
(com.google.gwt.dom.client.Element elem, com.google.gwt.dom.client.Element referenceElement) Positions the tooltip.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, unsinkEvents
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
-
Field Details
-
m_label
The label with the help text.
-
-
Constructor Details
-
CmsFieldTooltip
Creates a new instance.- Parameters:
data
- the tooltip data
-
-
Method Details
-
getHandler
Gets the handler instance.- Returns:
- the handler instance
-
position
public static void position(com.google.gwt.dom.client.Element elem, com.google.gwt.dom.client.Element referenceElement) Positions the tooltip.- Parameters:
elem
- the tooltip elementreferenceElement
- the tooltip icon element
-
getData
Gets the tooltip data.- Returns:
- the tooltip data
-
getLabel
Gets the label for the help text.- Returns:
- the label for the help text
-
isPersistent
Checks if the tooltip is persistent, i.e. it can no longer be closed by leaving the button with the mouse cursor, but needs to be closed by clicking somewhere else.- Returns:
- true if the tooltip is persistent
-
makePersistent
Makes the tooltip persistent, i.e. it can no longer be closed by leaving the button with the mouse cursor, but needs to be closed by clicking somewhere else.
-