com.sencha.gxt.widget.core.client.form
Interface IsField<T>

All Superinterfaces:
Editor<T>, IsWidget, LeafValueEditor<T>, TakesValue<T>
All Known Implementing Classes:
AdapterField, CheckBox, ComboBox, DateField, DualListField, Field, FileUploadField, HtmlEditor, ListField, NumberField, PasswordField, Radio, SimpleComboBox, Slider, SpinnerField, StoreFilterField, TextArea, TextField, TimeField, TriggerField, TwinTriggerField, ValueBaseField

public interface IsField<T>
extends IsWidget, LeafValueEditor<T>


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.gwt.editor.client.Editor
Editor.Ignore, Editor.Path
 
Method Summary
 void clear()
          Clears the value from the field.
 void clearInvalid()
          Clear any invalid styles / messages for this field.
 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.
 
Methods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
 
Methods inherited from interface com.google.gwt.user.client.TakesValue
getValue, setValue
 

Method Detail

clear

void clear()
Clears the value from the field.


clearInvalid

void clearInvalid()
Clear any invalid styles / messages for this field.


reset

void reset()
Resets the current field value to the originally loaded value and clears any validation messages.


isValid

boolean isValid(boolean preventMark)
Returns whether or not the field value is currently valid.

Parameters:
preventMark - true for silent validation (no invalid event and field is not marked invalid)
Returns:
true if the value is valid, otherwise false

validate

boolean validate(boolean preventMark)
Validates the field value.

Parameters:
preventMark - true to not mark the field valid and fire invalid event when invalid
Returns:
true if valid, otherwise false


Copyright © 2012. All Rights Reserved.