public class ListenerMethodBinding extends AbstractBinding implements IActionListener
Constructor and Description |
---|
ListenerMethodBinding(java.lang.String description,
ValueConverter valueConverter,
org.apache.hivemind.Location location,
IComponent component,
java.lang.String methodName) |
Modifier and Type | Method and Description |
---|---|
void |
actionTriggered(IComponent component,
IRequestCycle cycle)
Method invoked by the component (an
ActionLink or
Form , when its URL is triggered. |
protected void |
extendDescription(java.lang.StringBuffer buffer)
Does nothing, subclasses may override to add additional information.
|
java.lang.Object |
getComponent()
Returns the component to which this binding is connected; this is currently only used when
building certain exceptions.
|
java.lang.Object |
getObject()
Returns this binding object; the binding object delegates to the actual listener.
|
createReadOnlyBindingException, getDescription, getLocation, getObject, getValueConverter, isInvariant, setObject, toString
public ListenerMethodBinding(java.lang.String description, ValueConverter valueConverter, org.apache.hivemind.Location location, IComponent component, java.lang.String methodName)
public java.lang.Object getComponent()
AbstractBinding
getComponent
in class AbstractBinding
public java.lang.Object getObject()
public void actionTriggered(IComponent component, IRequestCycle cycle)
IActionListener
ActionLink
or
Form
, when its URL is triggered.actionTriggered
in interface IActionListener
component
- The component which was "triggered".cycle
- The request cycle in which the component was triggered.protected void extendDescription(java.lang.StringBuffer buffer)
AbstractBinding
extendDescription
in class AbstractBinding