public class IlvActionHandlerArray extends Object implements ActionHandler
Constructor and Description |
---|
IlvActionHandlerArray()
Constructs a new
IlvActionHandlerArray . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs.
|
void |
addActionHandler(ActionHandler actionHandler)
Adds the specified
actionHandler to the list of action handlers
of this object. |
ActionHandler |
getActionHandler(String command)
Retrieves the action handler of this object that is able to process the
action with the specified
command key. |
boolean |
isProcessingAction(String command)
Determines whether the action handler is able to perform the action
with the specified
command key in its
ActionListener.actionPerformed(java.awt.event.ActionEvent) method. |
boolean |
removeActionHandler(ActionHandler actionHandler)
Removes the specified
actionHandler from the list of action
handlers of this object. |
boolean |
updateAction(Action action)
Invoked by the application to update the state of the specified
action . |
public IlvActionHandlerArray()
IlvActionHandlerArray
.public boolean isProcessingAction(String command)
command
key in its
ActionListener.actionPerformed(java.awt.event.ActionEvent)
method.isProcessingAction
in interface ActionHandler
command
- The command key of the action.true
if one of the action handlers added to the
object can process the action;
false
otherwise.getActionHandler(java.lang.String)
public ActionHandler getActionHandler(String command)
command
key.command
- The command key of the action to retrieve an action handler
from.ActionHandler.isProcessingAction(java.lang.String)
method that returns true
for the specified action command or
null
if there is no action handler that can process this
action.isProcessingAction(java.lang.String)
public void actionPerformed(ActionEvent e)
getActionHandler(java.lang.String)
method
has its actionPerformed
method called with the specified
action event parameter.actionPerformed
in interface ActionListener
e
- The action event to process.public boolean updateAction(Action action)
action
.updateAction
in interface ActionHandler
action
- The action to update.true
if one of the action handlers of this object
could update the state of the action; false
otherwise.public void addActionHandler(ActionHandler actionHandler)
actionHandler
to the list of action handlers
of this object.actionHandler
- The new action handler to add.removeActionHandler(ilog.views.appframe.event.ActionHandler)
public boolean removeActionHandler(ActionHandler actionHandler)
actionHandler
from the list of action
handlers of this object.actionHandler
- The action handler to remove.true
if the action handler was previously added to
this object; false
otherwise.addActionHandler(ilog.views.appframe.event.ActionHandler)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.