|
WT Toolkit 0.3.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--wtObject
|
+--wtForm
A container of form input widgets, whose values can be submitted to server via wtRemoteProcedureCall.
Submitting a wtForm is analogous to submitting a wtRemoteProcedureCall, except that the RPC value object is
subtituted by a dictionary of <form input name>: <form input value> pairs.
Available signals:
| Constructor Summary | |
wtForm(<String> cgi, <String> procName)
Constructs a container of form input widgets, whose values can be submitted to server via wtRemoteProcedureCall. |
|
| Method Summary | |
void
|
abort()
Aborts form submission. |
void
|
addWidget(widget)
Adds a form input widget to the form. |
void
|
endProxy()
Disconnects the weak reference and removes the memory expensive object from the weak reference table. |
Boolean
|
isEnabled()
Tells whether the form is enabled or not. |
void
|
reset()
Resets the form. |
void
|
setEnabled(<Boolean> yes)
Sets the form to be enabled or disabled. |
void
|
setFailureHandler(<Function> handler)
Sets the form submission failure handler. |
void
|
setSuccessHandler(<Function> handler)
Sets the form submission success handler. |
void
|
submit()
Submits the form. |
| Methods inherited from class wtObject |
startProxy, toString, connect, disconnect, emit, setSlot, removeSlot, setSignal, removeSignal, get, set, addDependency
|
| Constructor Detail |
wtForm(<String> cgi, <String> procName)
cgi - The CGI script URL for receiving the form input values
procName - The RPC call name
| Method Detail |
void abort()
void addWidget(widget)
Form - input widget
void endProxy()
Boolean isEnabled()
void reset()
void setEnabled(<Boolean> yes)
yes - Whether the form should be enabled or not.
void setFailureHandler(<Function> handler)
handler - Failure event handler. Input arguments of the handler follow the universal event handler format in WT Toolkit.
void setSuccessHandler(<Function> handler)
handler - Success event handler. Input arguments of the handler follow the universal event handler format in WT Toolkit.
void submit()
|
WT Toolkit 0.3.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||