|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.primix.tapestry.AbstractComponent | +--com.primix.tapestry.form.AbstractFormComponent
A base class for building components that correspond to HTML form elements.
All such components must be wrapped (directly or indirectly) by
a Form
component.
Fields inherited from class com.primix.tapestry.AbstractComponent |
id, page, specification, wrapped, wrappedCount |
Constructor Summary | |
AbstractFormComponent()
|
Method Summary | |
IForm |
getForm()
Returns the Form which contains the component. |
IForm |
getForm(IRequestCycle cycle)
Returns the Form wrapping this component. |
abstract java.lang.String |
getName()
Returns the name of the component, which is automatically generated during renderring. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 |
Constructor Detail |
public AbstractFormComponent()
Method Detail |
public IForm getForm(IRequestCycle cycle) throws RequestCycleException
Form
wrapping this component.RequestCycleException
- if the component is not wrapped by a Form
.public IForm getForm()
IFormComponent
Form
which contains the component.getForm
in interface IFormComponent
public abstract java.lang.String getName()
IFormComponent
This value is set inside the component's render method and is
not cleared. If the component is inside a Foreach
, the
value returned is the most recent name generated for the component.
This property is made available to facilitate writing JavaScript that allows components (in the client web browser) to interact.
In practice, a Script
component
works with the Body
component to get the
JavaScript code inserted and referenced.
getName
in interface IFormComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |