|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.form.AbstractFormComponent
org.apache.tapestry.form.ListEdit
public abstract class ListEdit
A specialized component used to edit a list of items within a form; it is similar to a
Foreachbut leverages hidden inputs within the
<form> to store the items in the list. [ Component Reference ]
| Field Summary |
|---|
| Fields inherited from class org.apache.tapestry.AbstractComponent |
|---|
_clientId |
| Constructor Summary | |
|---|---|
ListEdit()
|
|
| Method Summary | |
|---|---|
protected boolean |
getCanTakeFocus()
Returns false; ListEdit components can't take focus. |
String |
getClientId()
Returns the component's client-side element id. |
abstract DataSqueezer |
getDataSqueezer()
|
String |
getDisplayName()
May be implemented to return a user-presentable, localized name for the component, which is used in labels or error messages. |
abstract String |
getElement()
|
abstract IActionListener |
getListener()
|
abstract ListenerInvoker |
getListenerInvoker()
Injected. |
abstract Iterator |
getSource()
|
abstract ValueConverter |
getValueConverter()
|
boolean |
isDisabled()
Returns true if the component is disabled. |
protected void |
render(IMarkupWriter writer,
IRequestCycle cycle,
Iterator i)
|
protected void |
renderFormComponent(IMarkupWriter writer,
IRequestCycle cycle)
Invoked from AbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle)
to render the component. |
protected void |
rewindFormComponent(IMarkupWriter writer,
IRequestCycle cycle)
Invoked from AbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle) to rewind the
component. |
abstract void |
setIndex(int index)
|
abstract void |
setValue(Object value)
|
| Methods inherited from class org.apache.tapestry.form.AbstractFormComponent |
|---|
getForm, getIdParameter, getName, getRenderBodyOnRewind, isRequired, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, renderIdAttribute, setForm, setName, setName |
| Methods inherited from class org.apache.hivemind.impl.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, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage |
| Methods inherited from interface org.apache.tapestry.IRender |
|---|
render |
| Methods inherited from interface org.apache.hivemind.LocationHolder |
|---|
setLocation |
| Methods inherited from interface org.apache.hivemind.Locatable |
|---|
getLocation |
| Constructor Detail |
|---|
public ListEdit()
| Method Detail |
|---|
protected void renderFormComponent(IMarkupWriter writer,
IRequestCycle cycle)
AbstractFormComponentAbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle)
to render the component.
renderFormComponent in class AbstractFormComponentAbstractFormComponent.renderFormComponent(org.apache.tapestry.IMarkupWriter,
org.apache.tapestry.IRequestCycle)
protected void rewindFormComponent(IMarkupWriter writer,
IRequestCycle cycle)
AbstractFormComponentAbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle) to rewind the
component. If the component is disabled
this will not be invoked.
rewindFormComponent in class AbstractFormComponentAbstractFormComponent.rewindFormComponent(org.apache.tapestry.IMarkupWriter,
org.apache.tapestry.IRequestCycle)
protected void render(IMarkupWriter writer,
IRequestCycle cycle,
Iterator i)
public abstract String getElement()
public abstract IActionListener getListener()
public boolean isDisabled()
IFormComponent
public abstract Iterator getSource()
public abstract void setValue(Object value)
public abstract void setIndex(int index)
public abstract DataSqueezer getDataSqueezer()
public abstract ValueConverter getValueConverter()
public abstract ListenerInvoker getListenerInvoker()
protected boolean getCanTakeFocus()
getCanTakeFocus in class AbstractFormComponentpublic String getClientId()
AbstractComponentIFormComponent only binding but now applies to all components. The method
should check to see if any id parameter/property has been set already and use that
above all others, falling back to IComponent.getId() if nothing else is found.
getClientId in interface IFormComponentgetClientId in interface IComponentgetClientId in class AbstractComponentpublic String getDisplayName()
IFormComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||