public class SideErrorHandler extends Object implements ErrorHandler
Modifier and Type | Class and Description |
---|---|
static interface |
SideErrorHandler.SideErrorResources |
static interface |
SideErrorHandler.SideErrorTooltipAppearance
Marker interface to indicate that we want a slightly different appearance than usual, to indicate that this is an
error, and not help text.
|
Constructor and Description |
---|
SideErrorHandler(Widget target) |
Modifier and Type | Method and Description |
---|---|
void |
clearInvalid()
Clears the errors from the field.
|
boolean |
isAdjustTargetWidth()
Returns
true if the target width is adjusted. |
void |
markInvalid(List<EditorError> errors)
Assigns errors to be displayed on the field.
|
void |
release()
Called to indicate that the instance will no longer be used, and should clean itself up.
|
void |
setAdjustTargetWidth(boolean adjustTargetWidth)
True to adjust the target width when an error is displayed (defaults to true).
|
public SideErrorHandler(Widget target)
public void clearInvalid()
ErrorHandler
clearInvalid
in interface ErrorHandler
public boolean isAdjustTargetWidth()
true
if the target width is adjusted.public void markInvalid(List<EditorError> errors)
ErrorHandler
markInvalid
in interface ErrorHandler
errors
- the errors to display to the userpublic void release()
ErrorHandler
ErrorHandler.clearInvalid()
method should be called prior to this to clean up any leftover errors.release
in interface ErrorHandler
public void setAdjustTargetWidth(boolean adjustTargetWidth)
adjustTargetWidth
- true to adjust target widthCopyright © 2015. All rights reserved.