Method Summary |
|
native public void | addListener(FieldListener listener) Add a Field Listener. |
public void | applyTo(String id) Apply the behaviors of this component to an existing element. |
native public void | applyTo(Element element) Apply the behaviors of this component to an existing element. |
native public void | clearInvalid() Clear any invalid styles/messages for this field. |
abstract protected JavaScriptObject | create(JavaScriptObject config) |
public String | getClearCls() |
public String | getCls() |
public String | getFocusClass() The CSS class to use when the field receives focus (defaults to "x-form-focus"). |
public String | getInputType() The type attribute for input fields -- e.g. |
public String | getInvalidClass() The CSS class to use when marking a field invalid (defaults to "x-form-invalid"). |
public String | getInvalidText() The error text to use when marking a field invalid and no message is provided (defaults to "The value in this field is invalid"). |
public String | getLabelSeparator() The seprator between the fields label and the field. |
public String | getLabelStyle() The CSS style of the fields label. |
public String | getName() Returns the name attribute of the field if available. |
native public String | getRawValue() Returns the raw data value which may or may not be a valid, defined value. |
public int | getTabindex() The tabIndex for this field. |
public int | getValidationDelay() The length of time in milliseconds after user input begins until validation is initiated (defaults to 250). |
native public String | getValueAsString() Return the value of the field as a String. |
public String | getXType() |
public boolean | isAutoCreate() |
native public boolean | isDirty() Returns true if this field has been changed since it was originally loaded and is not disabled. |
public boolean | isHideLabel() |
public boolean | isReadOnly() |
native public boolean | isValid() Returns whether or not the field value is currently valid. |
native public boolean | isValid(boolean preventMark) Returns whether or not the field value is currently valid. |
public boolean | isValidateOnBlur() Whether the field should validate when it loses focus (defaults to true). |
native public void | markInvalid(String message) Mark this field as invalid. |
native public void | reset() Resets the current field value to the originally loaded value and clears any validation messages. |
public void | setAutoCreate(boolean autoCreate) |
public void | setAutoCreate(DomConfig domConfig) A DomHelper config spec to use for field creation. |
public void | setClearCls(String clearCls) |
public void | setCls(String cls) A CSS class to apply to the field's underlying element. |
public void | setDisabled(boolean disabled) True to disable the field (defaults to false). |
public void | setFieldClass(String fieldClass) The default CSS class for the field (defaults to "x-form-field"). |
public void | setFieldLabel(String fieldLabel) Set the fields label. |
public void | setFieldMsgTarget(String msgTarget) The location where error text should display. |
public void | setFocusClass(String focusClass) The CSS class to use when the field receives focus (defaults to "x-form-focus"). |
public void | setHideLabel(boolean hideLabel) True to completely hide the label element (defaults to false). |
public void | setInputType(String inputType) The type attribute for input fields -- e.g. |
public void | setInvalidClass(String invalidClass) The CSS class to use when marking a field invalid (defaults to "x-form-invalid"). |
public void | setInvalidText(String invalidText) The error text to use when marking a field invalid and no message is provided (defaults to "The value in this field is invalid"). |
public void | setLabel(String fieldLabel) Set the fields label. |
public void | setLabelSeparator(String labelSeparator) The seprator between the fields label and the field. |
public void | setLabelStyle(String labelStyle) Set the CSS style of the fields label. |
public void | setMsgFx(String msgFx) The effect used when displaying a validation message under the field (defaults to 'normal'). |
native public static void | setMsgTarget(String msgTarget) Set the location of the error message target globally. |
public void | setName(String name) Set the field's HTML name attribute. |
native public void | setRawValue(String value) Sets the underlying DOM field's value directly, bypassing validation. |
public void | setReadOnly(boolean readOnly) True to mark the field as readOnly in HTML (defaults to false) -- Note: this only sets the element's readOnly DOM attribute. |
public void | setTabIndex(int tabIndex) The tabIndex for this field. |
public void | setValidateOnBlur(boolean validateOnBlur) Whether the field should validate when it loses focus (defaults to true). |
public void | setValidationDelay(int validationDelay) The length of time in milliseconds after user input begins until validation is initiated (defaults to 250). |
public void | setValidationEvent(boolean validationEvent) Set to false to disable automatic validation. |
public void | setValidationEvent(String validationEvent) The event that should initiate field validation. |
public void | setValue(String value) A value to initialize this field with. |
public void | setWidth(int width) Set the width of the field. |
public void | setWidth(String width) Set the width of the field. |
native public boolean | validate() |