net.sf.click.util
Class ActionListenerAdaptor

java.lang.Object
  extended bynet.sf.click.util.ActionListenerAdaptor
All Implemented Interfaces:
ActionListener, Serializable

public class ActionListenerAdaptor
extends Object
implements ActionListener, Serializable

Provides an ActionListener adaptor instance.

Author:
Malcolm Edgar
See Also:
Serialized Form

Field Summary
protected  Object listener
          The target listener object.
protected  String method
          The target listener method name.
 
Constructor Summary
ActionListenerAdaptor(Object target, String method)
          Create an ActionListener adaptor instance for the given listener target object and listener method.
 
Method Summary
 boolean onAction(Control source)
          Return true if the control and page processing should continue, or false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

protected final Object listener
The target listener object.


method

protected final String method
The target listener method name.

Constructor Detail

ActionListenerAdaptor

public ActionListenerAdaptor(Object target,
                             String method)
Create an ActionListener adaptor instance for the given listener target object and listener method.

Parameters:
target - the listener object
method - the target listener method name
Method Detail

onAction

public boolean onAction(Control source)
Description copied from interface: ActionListener
Return true if the control and page processing should continue, or false otherwise.

Specified by:
onAction in interface ActionListener
Parameters:
source - the source of the action event
Returns:
true if control and page processing should continue or false otherwise.
See Also:
ActionListener.onAction(Control)