public interface IsField<T> extends IsWidget, LeafValueEditor<T>, BlurEvent.HasBlurHandlers, HasValueChangeHandlers<T>
Editor.Ignore, Editor.Path
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the value from the field.
|
void |
clearInvalid()
Clear any invalid styles / messages for this field.
|
void |
finishEditing()
Used to indicate that this field must be completed with its editing process, as it may be able to be removed from
the dom, hidden, or its current results used.
|
List<EditorError> |
getErrors()
Returns a list of the current errors.
|
boolean |
isValid(boolean preventMark)
Returns whether or not the field value is currently valid.
|
void |
reset()
Resets the current field value to the originally loaded value and clears any validation messages.
|
boolean |
validate(boolean preventMark)
Validates the field value.
|
getValue, setValue
addBlurHandler
addValueChangeHandler
fireEvent
void clear()
void clearInvalid()
void finishEditing()
List<EditorError> getErrors()
boolean isValid(boolean preventMark)
preventMark
- true
for silent validation (no invalid event and field is not marked invalid)true
if the value is valid, otherwise falsevoid reset()
boolean validate(boolean preventMark)
preventMark
- true
to not mark the field valid and fire invalid event when invalidtrue
if valid, otherwise falseCopyright © 2015. All rights reserved.