|
||||||||||
| 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.sencha.gxt.widget.core.client.Component
com.sencha.gxt.widget.core.client.container.Container
com.sencha.gxt.widget.core.client.container.ResizeContainer
com.sencha.gxt.widget.core.client.container.SimpleContainer
com.sencha.gxt.widget.core.client.form.FormPanel
public class FormPanel
| Nested Class Summary | |
|---|---|
static class |
FormPanel.Encoding
Form encoding enumeration. |
static class |
FormPanel.LabelAlign
Label alignment enumeration. |
static class |
FormPanel.Method
Form method enumeration. |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
HasWidgets.ForIsWidget |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
|---|
IndexedPanel.ForIsWidget |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
FormPanel()
|
|
| Method Summary | |
|---|---|
HandlerRegistration |
addSubmitCompleteHandler(SubmitCompleteEvent.SubmitCompleteHandler handler)
Adds a SubmitCompleteEvent handler. |
HandlerRegistration |
addSubmitHandler(SubmitEvent.SubmitHandler handler)
Adds a SubmitEvent handler. |
String |
getAction()
Gets the 'action' associated with this form. |
String |
getEncoding()
Gets the encoding used for submitting this form. |
List<FieldLabel> |
getFieldLabels()
Returns all of the panel's child field labels. |
List<IsField<?>> |
getFields()
Returns all of the panel's child fields. |
FormPanel.LabelAlign |
getLabelAlign()
|
int |
getLabelWidth()
|
FormPanel.Method |
getMethod()
Returns the form's method. |
String |
getTarget()
Gets the form's 'target'. |
boolean |
isValid()
Returns true if the form is invalid. |
boolean |
isValid(boolean preventMark)
Returns the form's valid state by querying all child fields. |
boolean |
onFormSubmit()
|
void |
onFrameLoad()
|
void |
reset()
Resets all field values. |
void |
setAction(SafeUri url)
Sets the 'action' associated with this form. |
void |
setAction(String url)
Sets the action of the form. |
void |
setEncoding(FormPanel.Encoding encoding)
|
void |
setLabelAlign(FormPanel.LabelAlign align)
|
void |
setLabelWidth(int labelWidth)
|
void |
setMethod(FormPanel.Method method)
Specifies if the form will be submitted using an HTTP Post or Get request (defaults to GET). |
void |
submit()
Submits the form. |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.SimpleContainer |
|---|
add, add, getWidget, isResize, setResize, setWidget, setWidget |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.ResizeContainer |
|---|
forceLayout, isLayoutRunning, isOrWasLayoutRunning, onResize |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.Container |
|---|
add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, clear, disable, enable, findWidget, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, remove, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FormPanel()
| Method Detail |
|---|
public HandlerRegistration addSubmitCompleteHandler(SubmitCompleteEvent.SubmitCompleteHandler handler)
SubmitCompleteEvent handler.
addSubmitCompleteHandler in interface SubmitCompleteEvent.HasSubmitCompleteHandlershandler - the handler
public HandlerRegistration addSubmitHandler(SubmitEvent.SubmitHandler handler)
SubmitEvent handler.
addSubmitHandler in interface SubmitEvent.HasSubmitHandlershandler - the handler
public String getAction()
public String getEncoding()
FormPanel.Encoding.MULTIPART or FormPanel.Encoding.URLENCODED.
public List<FieldLabel> getFieldLabels()
public List<IsField<?>> getFields()
public FormPanel.LabelAlign getLabelAlign()
public int getLabelWidth()
public FormPanel.Method getMethod()
public String getTarget()
NamedFrame that
will receive the results of submission, or null if none has
been specified.
public boolean isValid()
public boolean isValid(boolean preventMark)
preventMark - true for silent validation (no invalid event and field
is not marked invalid)
public boolean onFormSubmit()
onFormSubmit in interface com.google.gwt.user.client.ui.impl.FormPanelImplHostpublic void onFrameLoad()
onFrameLoad in interface com.google.gwt.user.client.ui.impl.FormPanelImplHostpublic void reset()
public void setAction(SafeUri url)
url - the form's actionpublic void setAction(String url)
url - the actionpublic void setEncoding(FormPanel.Encoding encoding)
public void setLabelAlign(FormPanel.LabelAlign align)
public void setLabelWidth(int labelWidth)
public void setMethod(FormPanel.Method method)
method - the methodpublic void submit()
The FormPanel must not be detached (i.e. removed from its parent
or otherwise disconnected from a RootPanel) until the submission is
complete. Otherwise, notification of submission will fail.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||