|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
| Field Summary | |
static int |
STATE_ACCEPTED
Status: The form data was returned with a accepted request (can be severals) |
static int |
STATE_ACTIVE
Status: The form is shown and now possibly edited by the user. |
static int |
STATE_CANCELLED
Status: The form data was sent with a cancel request (can be severals). |
static int |
STATE_CREATED
Status: The form is created but not sent to the user |
| Method Summary | |
void |
addFormListener(IFormListener listener)
Add a listener to the form. |
void |
addFormListener(IFormListener listener,
int position)
Add a listener to the form. |
void |
addValidator(IClientValidator validator)
Add a new client level validator. |
IActivity |
getActivity()
Gets the user to which this form instance was presented. |
int |
getID()
Return the unique id of this form instance |
int |
getListenersCount()
The current number of registered listeners |
int |
getState()
Returns the current form status. |
java.util.Iterator |
getValidators()
Get the defined validators on the client level. |
void |
removeFormListener(IFormListener listener)
Remove a listener from the form. |
void |
removeValidator(IClientValidator validator)
Remove a client level validator. |
void |
setState(int state)
Set the forms internal state. |
| Methods inherited from interface org.jwarp.common.IExceptionProvider |
addExceptionListener, getExceptionListeners, removeAllExceptionListeners, removeExceptionListener |
| Methods inherited from interface org.jwarp.flow.form.model.IContainer |
add, add, addContainerListener, contains, getComponent, getComponentCount, getComponents, remove, remove, removeAll, removeContainerListener |
| Methods inherited from interface org.jwarp.flow.form.model.IComponent |
addComponentListener, getDescription, getFullName, getListeners, getLocale, getName, getParent, getXMLTree, handleEvent, isEnabled, removeComponentListener, setEnabled, setFlowData, setLocale |
| Field Detail |
public static final int STATE_CREATED
public static final int STATE_ACTIVE
public static final int STATE_CANCELLED
public static final int STATE_ACCEPTED
| Method Detail |
public int getID()
getID in interface IComponentpublic int getState()
public void addFormListener(IFormListener listener)
listener - The new listener
public void addFormListener(IFormListener listener,
int position)
listener - The new listenerpublic int getListenersCount()
public void removeFormListener(IFormListener listener)
listener - The listener to be removedpublic void addValidator(IClientValidator validator)
validator - The new validatorpublic void removeValidator(IClientValidator validator)
validator - The new validatorpublic java.util.Iterator getValidators()
public IActivity getActivity()
throws java.lang.SecurityException
java.lang.SecurityException - If access to this operation was deniedpublic void setState(int state)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||