|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.param.AbstractParameterConnector
public abstract class AbstractParameterConnector
Standard implementation of IParameterConnector
.
Subclasses add in the ability to clear parameters.
Constructor Summary | |
---|---|
protected |
AbstractParameterConnector(IComponent component,
String parameterName,
IBinding binding)
Creates a connector. |
Method Summary | |
---|---|
protected IBinding |
getBinding()
|
protected Object |
getBindingValue(Class requiredType)
Gets the value of the binding. |
void |
resetParameter(IRequestCycle cycle)
Restores the property to its default value. |
protected void |
setPropertyValue(Object value)
Sets the property of the component to the specified value. |
protected boolean |
shouldSetPropertyValue(IRequestCycle cycle)
Returns true if the connector should update the property value from the binding. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.tapestry.param.IParameterConnector |
---|
setParameter |
Constructor Detail |
---|
protected AbstractParameterConnector(IComponent component, String parameterName, IBinding binding)
Method Detail |
---|
protected void setPropertyValue(Object value)
protected Object getBindingValue(Class requiredType)
requiredType
- if not null, the expected type of the value object.IBinding.getObject()
,
IBinding.getObject(String, Class)
protected IBinding getBinding()
public String toString()
toString
in class Object
public void resetParameter(IRequestCycle cycle)
Direction.FORM
parameters, extracts the
property value and sets the binding form it
(when appropriate).
resetParameter
in interface IParameterConnector
protected boolean shouldSetPropertyValue(IRequestCycle cycle)
Direction.IN
, this
always returns true. For Direction.FORM
,
this returns true only if the request cycle and the active form
are rewinding.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |