Package org.opencms.gwt.client.ui
Class CmsValidationDetailsWidget
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
org.opencms.gwt.client.ui.CmsValidationDetailsWidget
- 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.IsWidget
Displays a message text and validation issues with an icon in front. Default is the 'warning' icon.
- Since:
- 8.0.1
-
Nested Class Summary
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.dom.client.Element
The element displaying the icon.protected com.google.gwt.dom.client.Element
The element holding the message.protected com.google.gwt.dom.client.Element
The element holding the message.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setIcon
(FontOpenCms icon, String color) Sets the icon CSS class.void
setIssuesHtml
(String issues) Sets the issues HTML.void
setMessageHtml
(String message) Sets the message HTML.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, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Field Details
-
m_iconCell
The element displaying the icon. -
m_message
The element holding the message. -
m_issues
The element holding the message.
-
-
Constructor Details
-
CmsValidationDetailsWidget
public CmsValidationDetailsWidget()Constructor.
-
-
Method Details
-
setIcon
Sets the icon CSS class.- Parameters:
icon
- the iconcolor
- the icon color
-
setIssuesHtml
Sets the issues HTML.- Parameters:
issues
- the issues HTML
-
setMessageHtml
Sets the message HTML.- Parameters:
message
- the message HTML
-