|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.gwtext.client.widgets.BaseExtWidget
com.gwtext.client.widgets.form.Form
public class Form
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 |
|---|
public Form(com.google.gwt.core.client.JavaScriptObject jsObj)
| Method Detail |
|---|
protected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
public static Form instance(com.google.gwt.core.client.JavaScriptObject formJS)
public void add(Field field)
field - the field to addpublic void clearInvalid()
public Field findField(java.lang.String id)
Field in this form by id, dataIndex, name or hiddenName.
id - the field ID,dataIndex, name or hiddenName to search for
public java.lang.String getValues()
public boolean isDirty()
public boolean isValid()
public void load(java.lang.String url)
public void load(java.lang.String url,
UrlParam[] params,
Connection.Method method,
java.lang.String waitMsg)
public void loadRecord(Record record)
Record into this form. The name of the Fields in the RecordDef
must match the names of the Fields in the From.
record - the Record to loadpublic void remove(Field field)
field - the field to removepublic void reset()
public void submit()
public void submit(java.lang.String url)
url - the url to sumbit to
public void submit(java.lang.String url,
UrlParam[] params,
Connection.Method method,
java.lang.String waitMsg,
boolean clientValidation)
url - the url to submit toparams - additional params to submitmethod - the submit methodwaitMsg - the wait messageclientValidation - pass true to call form.isValid() prior to posting to validate the form on the client (defaults to false)Connection.GET,
Connection.POSTpublic void submit(com.google.gwt.core.client.JavaScriptObject configJS)
configJS - form submit configpublic void updateRecord(Record record)
record - the record to editpublic void addListener(FormListener listener)
listener - the form listener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||