|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tibco.forms.client.DefaultForm
public class DefaultForm
Default implementation of a form.
Field Summary |
---|
Fields inherited from interface com.tibco.forms.client.Form |
---|
ACTION_APPLY, ACTION_CANCEL, ACTION_CLOSE, ACTION_RESET, ACTION_SUBMIT, ACTION_VALIDATE |
Constructor Summary | |
---|---|
DefaultForm(com.google.gwt.core.client.JavaScriptObject form)
Constructs a new DefaultForm. |
Method Summary | |
---|---|
void |
destroy()
Removes the form from its container and also releases its resources. |
LoadStat[] |
getLoadStats()
Returns an array of LoadStat objects that each represent the measurement of a particular phase of the form load. |
com.google.gwt.core.client.JavaScriptObject |
getLoadStatsFromNativeForm()
Returns the load stats array from the native form. |
java.lang.String |
getLocale()
Returns the String representation of the Locale currently being used to render the Form. |
java.lang.String |
getSerializedParameters()
Returns a JSON representation of the data being managed by the Form. |
void |
setCallbackHandler(java.lang.String actionName,
FormActionCallbackHandler handler)
Adds a handler to the form that will be invoked when the specified action is invoked in the Form. |
void |
setLocale(java.lang.String locale)
Sets the String representation of the Locale currently being used to render the Form. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultForm(com.google.gwt.core.client.JavaScriptObject form)
form
- The native form instance.Method Detail |
---|
public void destroy()
destroy
in interface Form
public LoadStat[] getLoadStats()
getLoadStats
in interface Form
public com.google.gwt.core.client.JavaScriptObject getLoadStatsFromNativeForm()
public java.lang.String getLocale()
getLocale
in interface Form
public java.lang.String getSerializedParameters()
getSerializedParameters
in interface Form
public void setCallbackHandler(java.lang.String actionName, FormActionCallbackHandler handler)
setCallbackHandler
in interface Form
actionName
- Name of the action (e.g. close) If the action is "submit", then the all validations in the Form will be
invoked prior to invoking the callback handlers. If any of the validations fail, then the callback handlers will not be
invoked.handler
- The callback handler to associate with the actionName. The Form may have only one handler for each action. If
this method is called more than once for the same actionName, the handler set previously will be replaced. Passing in null
for this parameter will remove the handler for this particular action.public void setLocale(java.lang.String locale)
setLocale
in interface Form
locale
- String representation of the Locale, e.g. "en" or "en_US".
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |