Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.gwtext.client.widgets.form
Class Form

    java.lang.Object
      com.google.gwt.user.client.ui.UIObject
          com.google.gwt.user.client.ui.Widget
              com.gwtext.client.widgets.BaseExtWidget
                  com.gwtext.client.widgets.form.Form

All Implemented Interfaces:
  com.google.gwt.user.client.EventListener

    public class Form

extends BaseExtWidget

Form widget.

Field Summary

Fields inherited from class com.gwtext.client.widgets.BaseExtWidget
`jsObj`

Constructor Summary
`Form(com.google.gwt.core.client.JavaScriptObject jsObj)`

Method Summary
`void` | `add(Field field)` Add a Field to the current open container (e.g.
`void` | `addListener(FormListener listener)` Add a Form listener.
`void` | `clearInvalid()` Clears all invalid messages in this form.
`protected com.google.gwt.core.client.JavaScriptObject` | `create(com.google.gwt.core.client.JavaScriptObject config)`
`Field` | `findField(java.lang.String id)` Find a `Field` in this form by id, dataIndex, name or hiddenName.
`java.lang.String` | `getValues()` Returns the fields in this form as a String
`static Form` | `instance(com.google.gwt.core.client.JavaScriptObject formJS)`
`boolean` | `isDirty()` Returns true if any fields in this form have changed since their original load.
`boolean` | `isValid()` Returns true if client-side validation on the form is successful.
`void` | `load(java.lang.String url)`
`void` | `load(java.lang.String url, UrlParam[] params, Connection.Method method, java.lang.String waitMsg)`
`void` | `loadRecord(Record record)` Loads a `Record` into this form.
`void` | `remove(Field field)` Removes a field from the items collection (does NOT remove its markup).
`void` | `reset()` Resets this form.
`void` | `submit()` Shortcut to do a submit action.
`void` | `submit(com.google.gwt.core.client.JavaScriptObject configJS)` Submit the form using the specified configuration.
`void` | `submit(java.lang.String url)` Submit the form.
`void` | `submit(java.lang.String url, UrlParam[] params, Connection.Method method, java.lang.String waitMsg, boolean clientValidation)` Subit the form.
`void` | `updateRecord(Record record)` Persists the values in this Form into the passed Record object.

Methods inherited from class com.gwtext.client.widgets.BaseExtWidget
`equals, getEl, getElement, getJsObj, getOffsetHeight, getOffsetWidth, getStyleElement, getTitle, hashCode, isVisible, onAttach, onLoad, purgeListeners, setHeight, setJsObj, setTitle, setVisible, setWidth, toString`

Methods inherited from class com.google.gwt.user.client.ui.Widget
`doAttachChildren, doDetachChildren, getParent, isAttached, onBrowserEvent, onDetach, onUnload, removeFromParent, setElement`

Methods inherited from class com.google.gwt.user.client.ui.UIObject
`addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, removeStyleName, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### Form

    public Form(com.google.gwt.core.client.JavaScriptObject jsObj)

Method Detail

### create

    protected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)

### instance

    public static Form instance(com.google.gwt.core.client.JavaScriptObject formJS)

### add

    public void add(Field field)

  Add a Field to the current open container (e.g. column, fieldset, etc.).

  Parameters:
    `field` - the field to add

### clearInvalid

    public void clearInvalid()

  Clears all invalid messages in this form.

### findField

    public Field findField(java.lang.String id)

  Find a `Field` in this form by id, dataIndex, name or hiddenName.

  Parameters:
    `id` - the field ID,dataIndex, name or hiddenName to search for
  Returns:
    the field

### getValues

    public java.lang.String getValues()

  Returns the fields in this form as a String

  Returns:
    form vield values as String

### isDirty

    public boolean isDirty()

  Returns true if any fields in this form have changed since their original load.

  Returns:
    true if dirty

### isValid

    public boolean isValid()

  Returns true if client-side validation on the form is successful.

  Returns:
    true if valid

### load

    public void load(java.lang.String url)

### load

    public void load(java.lang.String url,
                     UrlParam[] params,
                     Connection.Method method,
                     java.lang.String waitMsg)

### loadRecord

    public void loadRecord(Record record)

  Loads a `Record` into this form. The name of the Fields in the `RecordDef` must match the names of the Fields in the From.

  Parameters:
    `record` - the Record to load

### remove

    public void remove(Field field)

  Removes a field from the items collection (does NOT remove its markup).

  Parameters:
    `field` - the field to remove

### reset

    public void reset()

  Resets this form.

### submit

    public void submit()

  Shortcut to do a submit action.

### submit

    public void submit(java.lang.String url)

  Submit the form.

  Parameters:
    `url` - the url to sumbit to

### submit

    public void submit(java.lang.String url,
                       UrlParam[] params,
                       Connection.Method method,
                       java.lang.String waitMsg,
                       boolean clientValidation)

  Subit the form.

  Parameters:
    `url` - the url to submit to
    `params` - additional params to submit
    `method` - the submit method
    `waitMsg` - the wait message
    `clientValidation` - pass true to call form.isValid() prior to posting to validate the form on the client (defaults to false)
  See Also:
    `Connection.GET`, `Connection.POST`

### submit

    public void submit(com.google.gwt.core.client.JavaScriptObject configJS)

  Submit the form using the specified configuration.

  Parameters:
    `configJS` - form submit config

### updateRecord

    public void updateRecord(Record record)

  Persists the values in this Form into the passed Record object.

  Parameters:
    `record` - the record to edit

### addListener

    public void addListener(FormListener listener)

  Add a Form listener.

  Parameters:
    `listener` - the form listener

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD