|
||||||||||
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
net.sf.tacos.ajax.components.PartialForBean
public abstract class PartialForBean
Nested Class Summary | |
---|---|
protected class |
PartialForBean.CompleteRepSource
An implementation of RepSource that provides the string representation of the given value using all methods. |
protected class |
PartialForBean.KeyExpressionRepSource
An implementation of RepSource that provides the string representation of the given value using just the 'keyExpression' parameter. |
protected static interface |
PartialForBean.RepSource
An interface that provides the string representation of a given value |
Constructor Summary | |
---|---|
PartialForBean()
|
Method Summary | |
---|---|
protected Object |
findValueWithStringRep(String rep,
PartialForBean.RepSource repSource)
Attempt to find a value in 'source' or 'fullSource' that generates the provided string representation. |
protected Object |
findValueWithStringRepInIterator(String rep,
PartialForBean.RepSource repSource,
Iterator it)
Attempt to find a value in the provided collection that generates the required string representation. |
abstract AjaxWebRequest |
getAjaxWebRequest()
Injected ajax request |
protected boolean |
getCanTakeFocus()
For component can not take focus. |
String |
getClientId()
|
abstract org.apache.tapestry.components.IPrimaryKeyConverter |
getConverter()
|
protected Object |
getConverterFromValue(Object value)
Uses the 'converter' parameter to determine the primary key of the given value |
abstract org.apache.tapestry.services.DataSqueezer |
getDataSqueezer()
|
abstract Object |
getDefaultValue()
|
String |
getDisplayName()
|
abstract String |
getElement()
|
abstract org.apache.tapestry.bean.EvenOdd |
getEvenOdd()
|
abstract org.apache.tapestry.services.ExpressionEvaluator |
getExpressionEvaluator()
|
abstract Object |
getFullSource()
|
abstract Iterator |
getFullSourceIterator()
|
protected Iterator |
getFullSourceIteratorValue()
Returns the cached 'fullSource' iterator. |
int |
getIndex()
The index number, within the source , of the the
current value. |
abstract String |
getKeyExpression()
|
protected Object |
getKeyExpressionFromValue(Object value)
Uses the 'keyExpression' parameter to determine the primary key of the given value |
protected String |
getKeyId(Object value)
Gets the key id in the form of a string |
abstract IKeyProvider |
getKeyProvider()
|
abstract boolean |
getMatch()
|
abstract PartialRenderBlock |
getPartialBlock()
Optional render block that will provide IMarkupWriter instances
for logic not handled by traditional Part/PartialService semantics. |
protected Object |
getPrimaryKeyFromValue(Object value)
Returns the primary key of the given value. |
abstract Map |
getRepToValueMap()
|
abstract Object |
getSource()
|
abstract Iterator |
getSourceIterator()
|
protected Iterator |
getSourceIteratorValue()
Returns the cached 'source' iterator. |
protected Iterator |
getStoredData(org.apache.tapestry.IRequestCycle cycle,
String name)
Returns a list of the values stored as Hidden fields in the form. |
protected String |
getStringRepFromValue(Object value)
Returns the string representation of the value. |
Object |
getValue()
Returns the most recent value extracted from the source parameter. |
abstract org.apache.tapestry.coerce.ValueConverter |
getValueConverter()
|
protected Object |
getValueFromStringRep(String rep)
Determines the value that corresponds to the given string representation. |
abstract boolean |
getVolatile()
|
boolean |
isDisabled()
|
protected void |
renderComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
Gets the source binding and iterates through its values. |
protected void |
renderFormComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
|
protected void |
rewindFormComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
|
abstract void |
setFullSourceIterator(Iterator fullSourceIterator)
|
abstract void |
setRepToValueMap(Map repToValue)
|
abstract void |
setSourceIterator(Iterator sourceIterator)
|
protected Iterator |
storeSourceData(org.apache.tapestry.IForm form,
String name)
Stores the provided data in the form and then returns the data as an iterator. |
protected void |
updateOutputParameters()
Updates the index and value output parameters if bound. |
protected void |
updatePrimaryKeysParameter(String[] stringReps)
Updates the primaryKeys parameter if bound. |
Methods inherited from class org.apache.tapestry.form.AbstractFormComponent |
---|
getAlwaysRenderBodyOnRewind, getForm, getIdParameter, getName, isRequired, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, renderIdAttribute, setClientId, setForm, setName, setName |
Methods inherited from class org.apache.tapestry.AbstractComponent |
---|
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString |
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, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty |
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 PartialForBean()
Method Detail |
---|
public abstract Object getSource()
public abstract Object getFullSource()
public abstract String getElement()
public abstract String getKeyExpression()
public abstract org.apache.tapestry.components.IPrimaryKeyConverter getConverter()
public abstract Object getDefaultValue()
public abstract boolean getMatch()
public abstract boolean getVolatile()
public abstract Iterator getSourceIterator()
public abstract void setSourceIterator(Iterator sourceIterator)
public abstract Iterator getFullSourceIterator()
public abstract void setFullSourceIterator(Iterator fullSourceIterator)
public abstract Map getRepToValueMap()
public abstract void setRepToValueMap(Map repToValue)
public abstract org.apache.tapestry.bean.EvenOdd getEvenOdd()
public abstract IKeyProvider getKeyProvider()
public abstract org.apache.tapestry.services.DataSqueezer getDataSqueezer()
public abstract org.apache.tapestry.coerce.ValueConverter getValueConverter()
public abstract org.apache.tapestry.services.ExpressionEvaluator getExpressionEvaluator()
public abstract AjaxWebRequest getAjaxWebRequest()
public abstract PartialRenderBlock getPartialBlock()
IMarkupWriter
instances
for logic not handled by traditional Part/PartialService semantics.
protected void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
renderComponent
in class org.apache.tapestry.form.AbstractFormComponent
protected String getKeyId(Object value)
value
-
public final Object getValue()
public int getIndex()
source
, of the the
current value.
public boolean isDisabled()
protected void updateOutputParameters()
protected void updatePrimaryKeysParameter(String[] stringReps)
protected void renderFormComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
renderFormComponent
in class org.apache.tapestry.form.AbstractFormComponent
protected void rewindFormComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
rewindFormComponent
in class org.apache.tapestry.form.AbstractFormComponent
protected Iterator getStoredData(org.apache.tapestry.IRequestCycle cycle, String name)
cycle
- The current request cyclename
- The name of the HTTP parameter whether the values
protected Iterator storeSourceData(org.apache.tapestry.IForm form, String name)
form
- The form where the data will be storedname
- The name under which the data will be stored
protected String getStringRepFromValue(Object value)
value
-
protected Object getPrimaryKeyFromValue(Object value)
value
- The value from which the primary key should be extracted
protected Object getKeyExpressionFromValue(Object value)
value
- The value from which the primary key should be extracted
protected Object getConverterFromValue(Object value)
value
- The value from which the primary key should be extracted
protected Object getValueFromStringRep(String rep)
rep
- the string representation for which a value should be returned
protected Object findValueWithStringRep(String rep, PartialForBean.RepSource repSource)
rep
- the string representation for which a value should be returnedrepSource
- an interface providing the string representation of a given
value
protected Object findValueWithStringRepInIterator(String rep, PartialForBean.RepSource repSource, Iterator it)
rep
- the string representation for which a value should be returnedrepSource
- an interface providing the string representation of a given
valueit
- the iterator of the collection in which a value should be
searched
protected Iterator getSourceIteratorValue()
protected Iterator getFullSourceIteratorValue()
protected boolean getCanTakeFocus()
getCanTakeFocus
in class org.apache.tapestry.form.AbstractFormComponent
public String getClientId()
public String getDisplayName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |