|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.util.swing.context.ComponentAction.Handler
ilog.views.diagrammer.application.IlvDiagrammerAction.Handler
public static class IlvDiagrammerAction.Handler
This class can be used to redefine the behavior of a predefined action.
IlvDiagrammerAction.setHandler(ilog.views.diagrammer.application.IlvDiagrammerAction.Handler)| Constructor Summary | |
|---|---|
IlvDiagrammerAction.Handler()
|
|
| Method Summary | |
|---|---|
void |
perform(ilog.views.util.swing.context.ComponentAction action,
Component target,
ActionEvent event)
This method is called when an ComponentAction
is performed. |
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)
This method is called when the state (enabled/disabled, selected/unselected) of an ComponentAction is queried. |
void |
update(IlvDiagrammerAction action,
IlvDiagrammer diagrammer)
This method is called when the state (enabled/disabled, selected/unselected) of an IlvDiagrammerAction is queried. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvDiagrammerAction.Handler()
| Method Detail |
|---|
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.
Exception
public 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.
Exception
public final void perform(ilog.views.util.swing.context.ComponentAction action,
Component target,
ActionEvent event)
throws Exception
ilog.views.util.swing.context.ComponentAction.HandlerComponentAction
is performed.
The default implementation calls the ComponentAction.perform(java.awt.event.ActionEvent, java.awt.Component)
method of the action.
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.
Exception
public final void update(ilog.views.util.swing.context.ComponentAction action,
Component target)
throws Exception
ilog.views.util.swing.context.ComponentAction.HandlerComponentAction 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 ComponentAction.update(java.awt.Component)
method of the action.
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
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||