public class ErrorMixin<T extends com.google.gwt.user.client.ui.UIObject & HasError,H extends com.google.gwt.user.client.ui.UIObject & com.google.gwt.user.client.ui.HasText> extends Object implements HasError
Constructor and Description |
---|
ErrorMixin(T widget) |
ErrorMixin(T widget,
H textObject) |
ErrorMixin(T widget,
H textObject,
com.google.gwt.user.client.ui.UIObject target) |
ErrorMixin(T widget,
H textObject,
com.google.gwt.user.client.ui.UIObject target,
com.google.gwt.user.client.ui.UIObject lblPlaceholder) |
Modifier and Type | Method and Description |
---|---|
void |
clearErrorOrSuccess()
Clear the error or success states.
|
void |
setError(String error)
Errors occur when an app fails to complete what is expected, such as:
- The app does not understand user input
- The system or app fails
- A user intends to run incompatible operations concurrently
|
void |
setHelperText(String helperText)
Apply a widgets help text.
|
void |
setSuccess(String success)
Set the success message marking a widget as success.
|
void |
setUiObject(T uiObject) |
public ErrorMixin(T widget)
public ErrorMixin(T widget, H textObject)
public ErrorMixin(T widget, H textObject, com.google.gwt.user.client.ui.UIObject target)
public ErrorMixin(T widget, H textObject, com.google.gwt.user.client.ui.UIObject target, com.google.gwt.user.client.ui.UIObject lblPlaceholder)
public void setError(String error)
HasError
public void setSuccess(String success)
HasError
setSuccess
in interface HasError
public void setHelperText(String helperText)
HasError
setHelperText
in interface HasError
public void clearErrorOrSuccess()
HasError
clearErrorOrSuccess
in interface HasError
public void setUiObject(T uiObject)
Copyright © 2018. All rights reserved.