public class ActionSupport extends Object
ActionEvent
s.ActionEvent
,
ActionListener
Modifier and Type | Field and Description |
---|---|
private EventListenerList |
listeners |
private Object |
source |
Constructor and Description |
---|
ActionSupport(Object source)
Construct a new
ActionSupport object. |
Modifier and Type | Method and Description |
---|---|
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. |
private EventListenerList listeners
public ActionSupport(Object source)
ActionSupport
object.source
- The owner of this object (and the source of the events that
will be generated by it).public void addActionListener(ActionListener listener)
ActionListener
to this object's list of listeners.listener
- The listener to add.public void removeActionListener(ActionListener listener)
ActionListener
from this object's list of
listeners.listener
- The listener to remove.public void fireActionEvent()
ActionEvent
with an ID of
ACTION_PERFORMED
, a null command string, and an empty
modifier mask.public void fireActionEvent(String command)
ActionEvent
with an ID of
ACTION_PERFORMED
, the given command string, and an empty
modifier mask.command
- The command string for the event.public void fireActionEvent(int id, String command)
ActionEvent
with the given ID and command string,
and an empty modifier mask.id
- The ID for the event.command
- The command string for the event.public void fireActionEvent(int id, String command, int modifiers)
ActionEvent
with the given ID, command string, and
modifier mask.id
- The ID for the event.command
- The command string for the event.modifiers
- The modifier mask for the event.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses