kiwi.event
Class ActionSupport

java.lang.Object
  |
  +--kiwi.event.ActionSupport

public class ActionSupport
extends Object

A support object for generating ActionEvents.

Version:
1.0 (11/98)
Author:
Mark Lindner, PING Software Group
See Also:
ActionEvent, ActionListener

Constructor Summary
ActionSupport(Object source)
          Construct a new ActionSupport object.
 
Method Summary
 void addActionListener(ActionListener listener)
          Add an ActionListener to this object's list of listeners.
 void fireActionEvent()
          Fire an ActionEvent with an ID of ACTION_PERFORMED, a null command string, and an empty modifier mask.
 void fireActionEvent(int id, String command)
          Fire an ActionEvent with the given ID and command string, and an empty modifier mask.
 void fireActionEvent(int id, String command, int modifiers)
          Fire an ActionEvent with the given ID, command string, and modifier mask.
 void fireActionEvent(String command)
          Fire an ActionEvent with an ID of ACTION_PERFORMED, the given command string, and an empty modifier mask.
 void removeActionListener(ActionListener listener)
          Remove an ActionListener from this object's list of listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionSupport

public ActionSupport(Object source)
Construct a new ActionSupport object.
Parameters:
source - The owner of this object (and the source of the events that will be generated by it).
Method Detail

addActionListener

public void addActionListener(ActionListener listener)
Add an ActionListener to this object's list of listeners.
Parameters:
listener - The listener to add.

removeActionListener

public void removeActionListener(ActionListener listener)
Remove an ActionListener from this object's list of listeners.
Parameters:
listener - The listener to remove.

fireActionEvent

public void fireActionEvent()
Fire an ActionEvent with an ID of ACTION_PERFORMED, a null command string, and an empty modifier mask.

fireActionEvent

public void fireActionEvent(String command)
Fire an ActionEvent with an ID of ACTION_PERFORMED, the given command string, and an empty modifier mask.
Parameters:
command - The command string for the event.

fireActionEvent

public void fireActionEvent(int id,
                            String command)
Fire an ActionEvent with the given ID and command string, and an empty modifier mask.
Parameters:
id - The ID for the event.
command - The command string for the event.

fireActionEvent

public void fireActionEvent(int id,
                            String command,
                            int modifiers)
Fire an ActionEvent with the given ID, command string, and modifier mask.
Parameters:
id - The ID for the event.
command - The command string for the event.
modifiers - The modifier mask for the event.