|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A generic way to access a component which defines an HTML form. This interface
exists so that the IRequestCycle
can invoke the
rewind(IResponseWriter, IRequestCycle)
method (which is used to deal with
a Form that uses the direct service). In release 1.0.5, more responsibility
for forms was moved here.
Field Summary | |
static java.lang.String |
ATTRIBUTE_NAME
Attribute name used with the request cycle; allows other components to locate the IForm. |
Method Summary | |
void |
addEventHandler(FormEventType type,
java.lang.String functionName)
Adds an additional event handler. |
java.lang.String |
getElementId(IComponent component)
Constructs a unique identifier (within the Form). |
java.lang.String |
getElementId(java.lang.String baseId)
Constructs a unique identifier from the base id. |
java.lang.String |
getName()
Returns the name of the form. |
boolean |
isRewinding()
Returns true if the form is rewinding (meaning, the form was the subject of the request cycle). |
void |
rewind(IResponseWriter writer,
IRequestCycle cycle)
Invoked by the IRequestCycle to allow a form that uses
the direct service, to respond to the form submission. |
Methods inherited from interface com.primix.tapestry.IAction |
getRequiresSession |
Methods inherited from interface com.primix.tapestry.IComponent |
addAsset, addComponent, addWrapped, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getPage, getSpecification, renderWrapped, setBinding, setContainer, setId, setPage, setSpecification |
Methods inherited from interface com.primix.tapestry.IRender |
render |
Field Detail |
public static final java.lang.String ATTRIBUTE_NAME
Method Detail |
public void rewind(IResponseWriter writer, IRequestCycle cycle) throws RequestCycleException
IRequestCycle
to allow a form that uses
the direct service, to respond to the form submission.public void addEventHandler(FormEventType type, java.lang.String functionName)
FormEventType.SUBMIT
is most typical.public java.lang.String getElementId(IComponent component)
Simply invokes getElementId(String)
with the component's id.
public java.lang.String getElementId(java.lang.String baseId)
This method is provided simply so that some components
(ImageSubmit
) have more specific control over
their names.
public java.lang.String getName()
public boolean isRewinding()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |