All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ejmf.toolkit.controls.ActionListenerControl

java.lang.Object
   |
   +----ejmf.toolkit.controls.AbstractListenerControl
           |
           +----ejmf.toolkit.controls.ActionListenerControl

public abstract class ActionListenerControl
extends AbstractListenerControl
All button controls extends from ActionListenerControl. ActionListenerControl supplies public methods for manipulating a control's EventListener as an ActionListener thereby providing type-safety.


Constructor Index

 o ActionListenerControl()
Create an ActionListenerControl
 o ActionListenerControl(Controller)
Create an ActionListenerControl and associate it with a Controller.

Method Index

 o addControlListener(EventListener)
Add control semantics to this Control.
 o removeControlListener(EventListener)
Add control semantics to this Control.
 o setComponent(AbstractButton)
Type-way to set Control Component.
 o setComponentAndListener(AbstractButton, ActionListener)
Type-way to set Control Component and control listener.
 o setControlListener(ActionListener)
Type-way to set Control listener.

Constructors

 o ActionListenerControl
 protected ActionListenerControl(Controller controller) throws ClassCastException
Create an ActionListenerControl and associate it with a Controller.

Parameters:
controller - A Controller with which listener is associated.
 o ActionListenerControl
 protected ActionListenerControl()
Create an ActionListenerControl

Methods

 o removeControlListener
 protected void removeControlListener(EventListener listener)
Add control semantics to this Control. Remove the listener named by the listener argument.

Parameters:
listener - java.util.EventListener representing control semantics to be removed.
Overrides:
removeControlListener in class AbstractListenerControl
 o addControlListener
 protected void addControlListener(EventListener listener)
Add control semantics to this Control.

Parameters:
listener - java.util.EventListener representing control semantics to be added.
Overrides:
addControlListener in class AbstractListenerControl
 o setComponentAndListener
 public void setComponentAndListener(AbstractButton button,
                                     ActionListener listener)
Type-way to set Control Component and control listener.

Parameters:
button - An AbstractButton that serves as Control component.
listener - An ActionListener that implements Control semantics.
 o setControlListener
 public void setControlListener(ActionListener listener)
Type-way to set Control listener.

Parameters:
listener - An ActionListener that implements Control semantics.
 o setComponent
 public void setComponent(AbstractButton button)
Type-way to set Control Component.


All Packages  Class Hierarchy  This Package  Previous  Next  Index