Package com.vaadin.client
Class VErrorMessage
- 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.ComplexPanel
-
- com.google.gwt.user.client.ui.FlowPanel
-
- com.vaadin.client.VErrorMessage
-
- 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.HasWidgets
,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
,com.google.gwt.user.client.ui.IndexedPanel
,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
,com.google.gwt.user.client.ui.InsertPanel
,com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
,com.google.gwt.user.client.ui.IsWidget
,Iterable<com.google.gwt.user.client.ui.Widget>
public class VErrorMessage extends com.google.gwt.user.client.ui.FlowPanel
-
-
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
-
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
-
-
Constructor Summary
Constructors Constructor Description VErrorMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
hide()
void
setOwner(com.google.gwt.user.client.ui.Widget owner)
Set the owner, i.e the Widget that created thisVErrorMessage
.void
showAt(com.google.gwt.dom.client.Element indicatorElement)
Shows this error message next to given element.void
showAt(com.google.gwt.user.client.Element indicatorElement)
Deprecated.As of 7.2, call and overrideshowAt(Element)
insteadvoid
updateErrorLevel(ErrorLevel errorLevel)
Sets the correct error level style name for the error message and removes all previous style names.void
updateMessage(String htmlErrorMessage)
-
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, 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, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
-
-
-
-
Field Detail
-
CLASSNAME
public static final String CLASSNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setOwner
public void setOwner(com.google.gwt.user.client.ui.Widget owner)
Set the owner, i.e the Widget that created thisVErrorMessage
. The owner must be set if theVErrorMessage
is created 'stand-alone' (not within aVOverlay
), or theming might not work properly.- Parameters:
owner
- the owner (creator Widget)- See Also:
Overlay.setOwner(Widget)
-
updateMessage
public void updateMessage(String htmlErrorMessage)
-
updateErrorLevel
public void updateErrorLevel(ErrorLevel errorLevel)
Sets the correct error level style name for the error message and removes all previous style names.- Parameters:
errorLevel
- error level- Since:
- 7.7.11
-
showAt
@Deprecated public void showAt(com.google.gwt.user.client.Element indicatorElement)
Deprecated.As of 7.2, call and overrideshowAt(Element)
insteadShows this error message next to given element.- Parameters:
indicatorElement
-
-
showAt
public void showAt(com.google.gwt.dom.client.Element indicatorElement)
Shows this error message next to given element.- Parameters:
indicatorElement
-- Since:
- 7.2
-
hide
public void hide()
-
-