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.
-
ActionListenerControl()
- Create an ActionListenerControl
-
ActionListenerControl(Controller)
- Create an ActionListenerControl and associate it
with a Controller.
-
addControlListener(EventListener)
-
Add control semantics to this Control.
-
removeControlListener(EventListener)
- Add control semantics to this Control.
-
setComponent(AbstractButton)
- Type-way to set Control Component.
-
setComponentAndListener(AbstractButton, ActionListener)
- Type-way to set Control Component and control listener.
-
setControlListener(ActionListener)
- Type-way to set Control listener.
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.
ActionListenerControl
protected ActionListenerControl()
- Create an ActionListenerControl
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
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
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.
setControlListener
public void setControlListener(ActionListener listener)
- Type-way to set Control listener.
- Parameters:
- listener - An ActionListener that implements
Control semantics.
setComponent
public void setComponent(AbstractButton button)
- Type-way to set Control Component.
All Packages Class Hierarchy This Package Previous Next Index