|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFormComponent
A common interface implemented by all form components (components that create interactive elements in the rendered page).
Method Summary | |
---|---|
String |
getDisplayName()
May be implemented to return a user-presentable, localized name for the component, which is used in labels or error messages. |
IForm |
getForm()
Returns the IForm which contains the component,
or null if the component is not contained by a form,
of if the containing Form is not currently renderring. |
String |
getName()
Returns the name of the component, which is automatically generated during renderring. |
boolean |
isDisabled()
Returns true if the component is disabled. |
void |
setName(String name)
Invoked by IForm.getElementId(IFormComponent) when a name is created
for a form component. |
Methods inherited from interface org.apache.tapestry.IComponent |
---|
addAsset, addBody, addComponent, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, renderBody, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification |
Methods inherited from interface org.apache.tapestry.IRender |
---|
render |
Methods inherited from interface org.apache.tapestry.ILocationHolder |
---|
setLocation |
Methods inherited from interface org.apache.tapestry.ILocatable |
---|
getLocation |
Method Detail |
---|
IForm getForm()
IForm
which contains the component,
or null if the component is not contained by a form,
of if the containing Form is not currently renderring.
String getName()
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.
void setName(String name)
IForm.getElementId(IFormComponent)
when a name is created
for a form component.
String getDisplayName()
boolean isDisabled()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |