public static class IlvDiagrammerAction.Handler
extends ilog.views.util.swing.context.ComponentAction.Handler
| Constructor and Description |
|---|
Handler()
Creates a new
IlvDiagrammerAction.Handler. |
| Modifier and Type | Method and Description |
|---|---|
void |
perform(ilog.views.util.swing.context.ComponentAction action,
Component target,
ActionEvent event)
Performs the action on the target component.
|
void |
perform(IlvDiagrammerAction action,
IlvDiagrammer diagrammer,
ActionEvent event)
This method is called when an
IlvDiagrammerAction
is performed. |
void |
update(ilog.views.util.swing.context.ComponentAction action,
Component target)
Updates the action with respect to the target component.
|
void |
update(IlvDiagrammerAction action,
IlvDiagrammer diagrammer)
This method is called when the state (enabled/disabled, selected/unselected)
of an
IlvDiagrammerAction is queried. |
public void perform(IlvDiagrammerAction action, IlvDiagrammer diagrammer, ActionEvent event) throws Exception
IlvDiagrammerAction
is performed.
The default implementation calls the perform(IlvDiagrammerAction, IlvDiagrammer, ActionEvent)
method of the action.
action - The action that is being performed.diagrammer - The diagram component on which the action is being performed.event - The AWT action event that causes the action to be performed.Exceptionpublic void update(IlvDiagrammerAction action, IlvDiagrammer diagrammer) throws Exception
IlvDiagrammerAction is queried. The implementation of this method
should call the AbstractAction.setEnabled(boolean) and ComponentAction.setSelected(boolean)
methods of the action.
The default implementation calls the update(IlvDiagrammerAction, IlvDiagrammer)
method of the action.
action - The action that is being updated.diagrammer - The diagram component for which the action is being updated.Exceptionpublic final void perform(ilog.views.util.swing.context.ComponentAction action,
Component target,
ActionEvent event)
throws Exception
perform(IlvDiagrammerAction, IlvDiagrammer, ActionEvent)
if the input is a diagrammer action with a diagrammer component.perform in class ilog.views.util.swing.context.ComponentAction.Handleraction - The action that is being performed.target - The component on which the action is being performed.event - The AWT action event that causes the action to be performed.Exceptionpublic final void update(ilog.views.util.swing.context.ComponentAction action,
Component target)
throws Exception
update(IlvDiagrammerAction, IlvDiagrammer)
if the input is a diagrammer action with a diagrammer component.update in class ilog.views.util.swing.context.ComponentAction.Handleraction - The action that is being updated.target - The component for which the action is being updated.Exception© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.