|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tapestry.spec.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.form.AbstractFormComponent
org.apache.tapestry.wml.AbstractPostfield
public abstract class AbstractPostfield
A base class for building components that correspond to WML postfield elements.
All such components must be wrapped (directly or indirectly) by
a Go component.
| Constructor Summary | |
|---|---|
AbstractPostfield()
|
|
| Method Summary | |
|---|---|
abstract 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. |
IForm |
getForm(IRequestCycle cycle)
Returns the Go wrapping this component. |
abstract String |
getName()
Returns the name of the component, which is automatically generated during renderring. |
abstract IBinding |
getValueBinding()
|
abstract String |
getVarName()
|
boolean |
isDisabled()
Returns true if the component is disabled. |
protected void |
renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
Invoked by AbstractComponent.render(IMarkupWriter, IRequestCycle)
to actually render the component (with any parameter values
already set). |
protected abstract void |
rewind(IRequestCycle cycle)
|
abstract void |
setForm(IForm form)
|
abstract void |
setName(String name)
Invoked by IForm.getElementId(IFormComponent) when a name is created
for a form component. |
void |
updateValue(Object value)
|
| Methods inherited from class org.apache.tapestry.form.AbstractFormComponent |
|---|
getDisplayName |
| Methods inherited from class org.apache.tapestry.spec.BaseLocatable |
|---|
getLocation, setLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public AbstractPostfield()
| Method Detail |
|---|
public IForm getForm(IRequestCycle cycle)
Go wrapping this component.
getForm in class AbstractFormComponentApplicationRuntimeException - if the component is not wrapped by a
Go.
protected void renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
AbstractComponentAbstractComponent.render(IMarkupWriter, IRequestCycle)
to actually render the component (with any parameter values
already set). This is the method that subclasses must implement.
renderComponent in class AbstractComponentAbstractComponent.renderComponent(IMarkupWriter, IRequestCycle)protected abstract void rewind(IRequestCycle cycle)
public boolean isDisabled()
IFormComponent
public abstract String getVarName()
public abstract IBinding getValueBinding()
public void updateValue(Object value)
public abstract IForm getForm()
IFormComponentIForm which contains the component,
or null if the component is not contained by a form,
of if the containing Form is not currently renderring.
getForm in interface IFormComponentgetForm in class AbstractFormComponentpublic abstract void setForm(IForm form)
setForm in class AbstractFormComponentpublic abstract String getName()
IFormComponentThis 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 IFormComponentgetName in class AbstractFormComponentpublic abstract void setName(String name)
IFormComponentIForm.getElementId(IFormComponent) when a name is created
for a form component.
setName in interface IFormComponentsetName in class AbstractFormComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||