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 classData needed to create a tooltip.static classEvent handler for managing tooltip visibility.protected static interfaceThe 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.HTMLThe 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.HandlerGets the handler instance.com.google.gwt.user.client.ui.HTMLgetLabel()Gets the label for the help text.booleanChecks if the tooltip is persistent, i.e.voidMakes the tooltip persistent, i.e.static voidposition(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, setWidgetMethods 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, unsinkEventsMethods 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.
-