public abstract class IlvDiagrammerAction
extends ilog.views.util.swing.context.ComponentAction
IlvDiagrammer
instance.
Typical Diagrammer applications will use the predefined actions that are provided
as static constants: copy
, paste
, etc. Here is a typical code
sample to use these actions in a menu bar:
// Create a menu: JMenuBar menuBar = new JMenuBar(); JMenu fileMenu = new JMenu("File"); menuBar.add(fileMenu); // Create a menu item for the "Open" action: fileMenu.add(IlvDiagrammerAction.open);
See also the IlvDiagrammerToolBar
class and its subclasses, and
the IlvDiagrammerMenu
class and its subclasses to easily create toolbars and menus
containing Diagrammer actions.
More advanced applications can create their own subclasses of IlvDiagrammerAction
.
The IlvDiagrammerAction
class has the following capabilities in addition to those
of the standard Swing Action
class:
IlvDiagrammer
instance). There is assumed to be only one active diagram component for each window
(that is to say, each JFrame or JDialog) of the application, but there may be several diagram
components contained in JDesktopPane
s or JTabbedPane
s.
setHandler(ilog.views.diagrammer.application.IlvDiagrammerAction.Handler)
).
IlvDiagrammerAction.ErrorHandler
interface (see
setErrorHandler(ilog.views.diagrammer.application.IlvDiagrammerAction.ErrorHandler)
).
Modifier and Type | Class and Description |
---|---|
static interface |
IlvDiagrammerAction.ErrorHandler
This interface is used to change the way Diagrammer actions handle exceptions.
|
static class |
IlvDiagrammerAction.FileAction
A base class for I/O actions
|
static class |
IlvDiagrammerAction.Handler
This class can be used to redefine the behavior of a predefined action.
|
static class |
IlvDiagrammerAction.StatusEvent
The event passed to the methods of
IlvDiagrammerAction.StatusListener objects. |
static interface |
IlvDiagrammerAction.StatusListener
This listener is typically used to display information related to Diagrammer
actions in a status bar.
|
static class |
IlvDiagrammerAction.ToggleAction
This subclass of IlvDiagrammerAction can be used as a base class for
custom selectable (or "toggle") actions.
|
Modifier and Type | Field and Description |
---|---|
static IlvDiagrammerAction |
_new
This action clears the diagram component.
|
static IlvDiagrammerAction |
about
This action shows a default "About" dialog.
|
static String |
ABOUT_APPLICATION_NAME
This key can be used to set the application name that will be
displayed by the
about action. |
static IlvDiagrammerAction |
alignBottom
This action calls the
IlvDiagrammer.alignBottom()
method. |
static IlvDiagrammerAction |
alignHorizontalCenter
This action calls the
IlvDiagrammer.alignHorizontalCenter()
method. |
static IlvDiagrammerAction |
alignLeft
This action calls the
IlvDiagrammer.alignLeft()
method. |
static IlvDiagrammerAction |
alignRight
This action calls the
IlvDiagrammer.alignRight()
method. |
static IlvDiagrammerAction |
alignTop
This action calls the
IlvDiagrammer.alignTop()
method. |
static IlvDiagrammerAction |
alignVerticalCenter
This action calls the
IlvDiagrammer.alignVerticalCenter()
method. |
static IlvDiagrammerAction |
autoEditLabel
This action toggles the "auto-edit-label" flag on or off.
|
static IlvDiagrammerAction |
autoLabelLayout
This action toggles automatic layout of labels on or off.
|
static IlvDiagrammerAction |
autoLinkLayout
This action toggles automatic layout of links on or off.
|
static IlvDiagrammerAction |
autoNodeLayout
This action toggles automatic layout of nodes on or off.
|
static IlvDiagrammerAction |
callBuilder
This action invokes the Diagrammer Designer application (if it is available).
|
static IlvDiagrammerAction |
clearPrintArea
This action calls the
IlvDiagrammer.clearPrintArea() method. |
static IlvDiagrammerAction |
close
This action does nothing by default: multi-document applications should
set a handler on this action to implement its actual behavior, for example
closing the internal frame containing the diagram.
|
static IlvDiagrammerAction |
copy
This action calls the
IlvDiagrammer.copy() method of the diagram component. |
static IlvDiagrammerAction |
createLink
This action prompts for a tag name (type) and creates a new link with this tag.
|
static IlvDiagrammerAction |
createNode
This action prompts for a tag name (type) and creates a new node with this tag.
|
static IlvDiagrammerAction |
cut
This action calls the
IlvDiagrammer.cut() method of the diagram component. |
static IlvDiagrammerAction |
delete
This action calls the
IlvDiagrammer.delete() method of the diagram component. |
static IlvDiagrammerAction |
distributeHorizontally
This action calls the
IlvDiagrammer.distributeHorizontally()
method. |
static IlvDiagrammerAction |
distributeVertically
This action calls the
IlvDiagrammer.distributeVertically()
method. |
static IlvDiagrammerAction |
duplicate
This action calls the
IlvDiagrammer.duplicate() method of the diagram component. |
static IlvDiagrammerAction |
editing
This action toggles editing mode on or off.
|
static IlvDiagrammerAction |
editLabel
This action toggles label editing mode on or off.
|
static IlvDiagrammerAction |
exit
This action calls
System.exit(0) . |
static IlvDiagrammerAction |
fitToContents
This action calls the
IlvDiagrammer.fitToContents() method of the diagram component. |
static IlvDiagrammerAction |
grid
This action shows or hides the grid.
|
static IlvDiagrammerAction |
gridSpacing
This action opens a dialog box to change the spacing of the grid.
|
static IlvDiagrammerAction |
group
This action calls the
IlvDiagrammer.group() method of the diagram component. |
static IlvDiagrammerAction |
help
This action shows a default "Help" dialog.
|
static IlvDiagrammerAction |
layoutAllNodes
This action calls the
IlvDiagrammer.layoutAllNodes() method of the diagram component. |
static IlvDiagrammerAction |
layoutSelectedNodes
This action calls the
IlvDiagrammer.layoutSelectedNodes() method of the diagram component. |
static IlvDiagrammerAction |
open
|
static IlvDiagrammerAction |
openStyleSheet
This action shows a file chooser, and applies the selected style sheet to the diagram component.
|
static IlvDiagrammerAction |
pageSetup
This action calls the
IlvDiagrammer.pageSetup() method. |
static IlvDiagrammerAction |
pan
This action toggles the "pan" mode of the diagram component.
|
static IlvDiagrammerAction |
paste
This action calls the
IlvDiagrammer.paste() method of the diagram component. |
static IlvDiagrammerAction |
printPreview
This action calls the
IlvDiagrammer.printPreview() method. |
static IlvDiagrammerAction |
printToBitmap
This action calls the
IlvDiagrammer.printToBitmap(java.io.File) method. |
static IlvDiagrammerAction |
printWithDialog
This action calls the
IlvDiagrammer.print(boolean, boolean, ilog.views.diagrammer.IlvDiagrammer.PrinterExceptionHandler) method
with showPrintDialog set to true . |
static IlvDiagrammerAction |
printWithoutDialog
This action calls the
IlvDiagrammer.print(boolean, boolean, ilog.views.diagrammer.IlvDiagrammer.PrinterExceptionHandler) method
with showPrintDialog set to false . |
static IlvDiagrammerAction |
read
This action shows a file chooser and reads the selected XML file into the diagram component.
|
static IlvDiagrammerAction |
redo
This action calls the
IlvDiagrammer.redo() method of the diagram component. |
static IlvDiagrammerAction |
refresh
This action reloads the current style sheet of the diagram component.
|
static IlvDiagrammerAction |
resetZoom
This action calls the
IlvDiagrammer.resetZoom() method of the diagram component. |
static IlvDiagrammerAction |
resizing
This action toggles resizing mode on or off.
|
static IlvDiagrammerAction |
save
This action saves the diagram to the currently loaded XML file.
|
static IlvDiagrammerAction |
saveAs
This action shows a file chooser and writes the diagram to the selected XML file.
|
static IlvDiagrammerAction |
select
This action toggles the "selection" mode of the diagram component.
|
static IlvDiagrammerAction |
selectAll
This action calls the
IlvDiagrammer.selectAll() method of the diagram component. |
static IlvDiagrammerAction |
setPrintArea
This action calls the
IlvDiagrammer.setPrintArea() method. |
static IlvDiagrammerAction |
stickyModes
This action toggles the "sticky modes" flag on or off.
|
static IlvDiagrammerAction |
undo
This action calls the
IlvDiagrammer.undo() method of the diagram component. |
static IlvDiagrammerAction |
ungroup
This action calls the
IlvDiagrammer.ungroup() method of the diagram component. |
static IlvDiagrammerAction |
zoom
This action toggles the "zoom" mode of the diagram component.
|
static IlvDiagrammerAction |
zoomIn
This action calls the
IlvDiagrammer.zoomIn() method of the diagram component. |
static IlvDiagrammerAction |
zoomOut
This action calls the
IlvDiagrammer.zoomOut() method of the diagram component. |
hideToolbarButtonBordersOnOceanTheme
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Modifier | Constructor and Description |
---|---|
protected |
IlvDiagrammerAction(String prefix)
Creates a new Diagrammer action.
|
protected |
IlvDiagrammerAction(String prefix,
ResourceBundle bundle)
Creates a new Diagrammer action.
|
Modifier and Type | Method and Description |
---|---|
static void |
addActionToUpdate(IlvDiagrammerAction action)
Adds an action that must be updated when the state of an
IlvDiagrammer component changes. |
static void |
addStatusListener(IlvDiagrammerAction.StatusListener listener)
Adds an action status listener.
|
void |
call(IlvDiagrammer diagrammer)
Calls an action explicitly on a specified diagram component.
|
static URL |
chooseFile(Component parent,
boolean save,
ResourceBundle bundle,
String titleKey,
String[] suffixes,
String[] descriptionKeys) |
static JFileChooser |
getActionFileChooser() |
protected ResourceBundle |
getDefaultResourceBundle()
Returns the default resource bundle used if no resource bundle
is specified in the constructor.
|
static File |
getDefaultSelectedFile()
Returns the default file selected by the file chooser.
|
static IlvDiagrammerAction.ErrorHandler |
getErrorHandler()
Returns the error handler for the Diagrammer actions.
|
static File |
getFileChooserDirectory()
Returns the current directory of the file chooser.
|
protected static String |
getString(ResourceBundle bundle,
String key) |
protected boolean |
isEnabled(Component target)
Returns whether the action is enabled with respect to the target
component.
|
protected abstract boolean |
isEnabled(IlvDiagrammer diagrammer)
This method is called to determine whether this action is currently enabled.
|
protected boolean |
isSelected(Component target)
Returns whether the action is selected with respect to the target
component.
|
protected boolean |
isSelected(IlvDiagrammer diagrammer)
This method is called to determine whether this action is currently selected.
|
void |
perform(ActionEvent e,
Component target)
Performs the action on the target component.
|
abstract void |
perform(ActionEvent e,
IlvDiagrammer diagrammer)
This method is called when the action is performed.
|
static void |
removeActionToUpdate(IlvDiagrammerAction action)
Removes an action from the list of actions that must be updated when the
state of an
IlvDiagrammer component changes. |
static void |
removeStatusListener(IlvDiagrammerAction.StatusListener listener)
Removes an action status listener.
|
static void |
setDefaultSelectedFile(File selectedFile)
Sets the default file to be selected by the file chooser.
|
static void |
setErrorHandler(IlvDiagrammerAction.ErrorHandler errorHandler)
Sets the error handler for the Diagrammer actions.
|
static void |
setFileChooserDirectory(File directory)
Changes the current directory of the file chooser.
|
void |
setHandler(IlvDiagrammerAction.Handler actionHandler)
Sets an action listener for this action.
|
protected void |
update(Component target)
Updates the state of this action with respect to the target component.
|
protected void |
update(IlvDiagrammer diagrammer)
Updates the state of this action.
|
static void |
updateActions(Component component,
IlvDiagrammer diagrammer)
Updates all the actions linked to buttons contained in the specified component
hierarchy.
|
actionPerformed, addActionToUpdate, addPropertyChangeListener, addStatusListener, call, clone, createMenuItem, createToolBarButton, delayedUpdateActions, error, fireActionFinished, fireActionStarted, getActionErrorHandler, getPrefix, getResourceBundle, getSmallIconSize, init, isSelectable, isSelected, removeActions, removeActionToUpdate, removeStatusListener, setActionErrorHandler, setHandler, setSelected, setSmallIconSize, updateActions
firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public static IlvDiagrammerAction select
IlvDiagrammer.setSelectMode(boolean)
public static final IlvDiagrammerAction cut
IlvDiagrammer.cut()
method of the diagram component.public static final IlvDiagrammerAction copy
IlvDiagrammer.copy()
method of the diagram component.public static final IlvDiagrammerAction delete
IlvDiagrammer.delete()
method of the diagram component.public static final IlvDiagrammerAction duplicate
IlvDiagrammer.duplicate()
method of the diagram component.public static final IlvDiagrammerAction paste
IlvDiagrammer.paste()
method of the diagram component.public static final IlvDiagrammerAction selectAll
IlvDiagrammer.selectAll()
method of the diagram component.public static final IlvDiagrammerAction undo
IlvDiagrammer.undo()
method of the diagram component.public static final IlvDiagrammerAction redo
IlvDiagrammer.redo()
method of the diagram component.public static final IlvDiagrammerAction group
IlvDiagrammer.group()
method of the diagram component.public static final IlvDiagrammerAction ungroup
IlvDiagrammer.ungroup()
method of the diagram component.public static final IlvDiagrammerAction zoomIn
IlvDiagrammer.zoomIn()
method of the diagram component.public static final IlvDiagrammerAction zoomOut
IlvDiagrammer.zoomOut()
method of the diagram component.public static final IlvDiagrammerAction resetZoom
IlvDiagrammer.resetZoom()
method of the diagram component.public static final IlvDiagrammerAction fitToContents
IlvDiagrammer.fitToContents()
method of the diagram component.public static final IlvDiagrammerAction zoom
IlvDiagrammer.setZoomMode(boolean)
public static final IlvDiagrammerAction pan
IlvDiagrammer.setPanMode(boolean)
public static final IlvDiagrammerAction layoutAllNodes
IlvDiagrammer.layoutAllNodes()
method of the diagram component.public static final IlvDiagrammerAction layoutSelectedNodes
IlvDiagrammer.layoutSelectedNodes()
method of the diagram component.public static final IlvDiagrammerAction autoNodeLayout
public static final IlvDiagrammerAction autoLinkLayout
public static final IlvDiagrammerAction autoLabelLayout
public static final IlvDiagrammerAction editLabel
IlvDiagrammer.setEditLabelMode(boolean)
public static final IlvDiagrammerAction editing
IlvDiagrammer.setEditingAllowed(boolean)
public static final IlvDiagrammerAction resizing
public static final IlvDiagrammerAction stickyModes
IlvDiagrammer.setStickyModes(boolean)
public static final IlvDiagrammerAction autoEditLabel
IlvDiagrammer.setAutoEditLabel(boolean)
public static final IlvDiagrammerAction _new
public static final IlvDiagrammerAction close
public static final IlvDiagrammerAction read
IlvDiagrammer.setDataFile(java.net.URL)
public static final IlvDiagrammerAction open
read
, except that if there is no current diagram component,
or if the current diagram component is not empty, the _new
action is called
before loading the data file.read
,
_new
,
IlvDiagrammer.setDataFile(java.net.URL)
public static final IlvDiagrammerAction saveAs
IlvDiagrammer.writeDataFile(String)
public static final IlvDiagrammerAction save
IlvDiagrammer.writeDataFile(String)
public static final IlvDiagrammerAction openStyleSheet
public static final IlvDiagrammerAction refresh
IlvDiagrammer.refresh()
public static final IlvDiagrammerAction exit
System.exit(0)
. You can override this simplistic
implementation by adding a listener to this action, using the
setHandler(ilog.views.diagrammer.application.IlvDiagrammerAction.Handler)
method.public static final IlvDiagrammerAction about
setHandler(ilog.views.diagrammer.application.IlvDiagrammerAction.Handler)
method.public static final String ABOUT_APPLICATION_NAME
about
action. For example:
IlvDiagrammerAction.about.putValue(ABOUT_APPLICATION_NAME, "My demo");The string
"My demo"
will be displayed in the "About" dialog.public static final IlvDiagrammerAction help
setHandler(ilog.views.diagrammer.application.IlvDiagrammerAction.Handler)
method.public static final IlvDiagrammerAction pageSetup
IlvDiagrammer.pageSetup()
method.public static final IlvDiagrammerAction printPreview
IlvDiagrammer.printPreview()
method.public static final IlvDiagrammerAction setPrintArea
IlvDiagrammer.setPrintArea()
method.public static final IlvDiagrammerAction clearPrintArea
IlvDiagrammer.clearPrintArea()
method.public static final IlvDiagrammerAction printWithDialog
IlvDiagrammer.print(boolean, boolean, ilog.views.diagrammer.IlvDiagrammer.PrinterExceptionHandler)
method
with showPrintDialog
set to true
.public static final IlvDiagrammerAction printWithoutDialog
IlvDiagrammer.print(boolean, boolean, ilog.views.diagrammer.IlvDiagrammer.PrinterExceptionHandler)
method
with showPrintDialog
set to false
.public static final IlvDiagrammerAction printToBitmap
IlvDiagrammer.printToBitmap(java.io.File)
method.public static final IlvDiagrammerAction callBuilder
public static final IlvDiagrammerAction grid
public static final IlvDiagrammerAction gridSpacing
public static final IlvDiagrammerAction alignLeft
IlvDiagrammer.alignLeft()
method.public static final IlvDiagrammerAction alignRight
IlvDiagrammer.alignRight()
method.public static final IlvDiagrammerAction alignTop
IlvDiagrammer.alignTop()
method.public static final IlvDiagrammerAction alignBottom
IlvDiagrammer.alignBottom()
method.public static final IlvDiagrammerAction alignHorizontalCenter
IlvDiagrammer.alignHorizontalCenter()
method.public static final IlvDiagrammerAction alignVerticalCenter
IlvDiagrammer.alignVerticalCenter()
method.public static final IlvDiagrammerAction distributeHorizontally
IlvDiagrammer.distributeHorizontally()
method.public static final IlvDiagrammerAction distributeVertically
IlvDiagrammer.distributeVertically()
method.public static final IlvDiagrammerAction createNode
public static final IlvDiagrammerAction createLink
protected IlvDiagrammerAction(String prefix, ResourceBundle bundle)
The action is designated by a key prefix. All the properties of
the action (name, short description, icon, and so on) will be retrieved
from a resource bundle using the key prefix concatenated with the
property name of the action ("Name"
, "ShortDescription"
,
and so on).
Here is an example of what the property file should contain for an action
with the prefix "Diagrammer.Action.Open"
:
Diagrammer.Action.Open.Name = Open... Diagrammer.Action.Open.ShortDescription = Open File Diagrammer.Action.Open.LongDescription = Opens a data file Diagrammer.Action.Open.SmallIcon = open.png Diagrammer.Action.Open.AcceleratorKey = control O Diagrammer.Action.Open.MnemonicKey = O
prefix
- The prefix key for the action, for example "Diagrammer.Action.Open"
.bundle
- The resource bundle that will be used to retrieve the properties of the action.
If this parameter is null, the default resource bundle is used.protected IlvDiagrammerAction(String prefix)
prefix
- The prefix key for the action, for example "Diagrammer.Action.Open"
.protected ResourceBundle getDefaultResourceBundle()
getDefaultResourceBundle
in class ilog.views.util.swing.context.ComponentAction
protected final boolean isEnabled(Component target) throws Exception
isEnabled(IlvDiagrammer)
if the
target component is a diagrammer.isEnabled
in class ilog.views.util.swing.context.ComponentAction
target
- The Component instance on which the action is to be performed (may
be null if there is no current component).Exception
- When an error occurs while getting the state of the action.protected final boolean isSelected(Component target) throws Exception
isSelected(IlvDiagrammer)
if the
target component is a diagrammer.isSelected
in class ilog.views.util.swing.context.ComponentAction
target
- The Component instance on which the action is to be performed (may
be null if there is no current component).Exception
- When an error occurs while getting the action's state.public final void perform(ActionEvent e, Component target) throws Exception
perform(ActionEvent, IlvDiagrammer)
if the
target component is a diagrammer.perform
in class ilog.views.util.swing.context.ComponentAction
e
- The action event that caused this action to be performed.target
- The Component instance on which the action is to be performed (may
be null if there is no current component).Exception
- When an error occurs while performing the action.protected final void update(Component target)
update(IlvDiagrammer)
if the
target component is a diagrammer.update
in class ilog.views.util.swing.context.ComponentAction
target
- The component on which the action is to be performed.public abstract void perform(ActionEvent e, IlvDiagrammer diagrammer) throws Exception
IlvDiagrammerAction
to implement the action.
This method should not be called directly. If you need to call an action
in your code, use the call(ilog.views.diagrammer.IlvDiagrammer)
method instead.
e
- The action event that caused this action to be performed.diagrammer
- The IlvDiagrammer
instance on which the action is to be performed
(may be null if there is no current diagram component).Exception
- When an error occurs while performing the action.public void call(IlvDiagrammer diagrammer)
This method can be used to "fake" the activation of the action by code.
The action is performed as if a toolbar button was pressed or a menu item associated with this action was selected while the specified diagram component was the current one in its hierarchy.
diagrammer
- The diagram component on which the action will be
performed.protected abstract boolean isEnabled(IlvDiagrammer diagrammer) throws Exception
diagrammer
- The IlvDiagrammer
instance on which the action is to be performed
(may be null if there is no current diagram component).Exception
- When an error occurs while getting the state of the action.protected boolean isSelected(IlvDiagrammer diagrammer) throws Exception
The default implementation returns false
.
diagrammer
- The IlvDiagrammer
instance on which the action is to be performed
(may be null if there is no current diagram component).Exception
- When an error occurs while getting the action's state.protected static String getString(ResourceBundle bundle, String key)
protected void update(IlvDiagrammer diagrammer)
isSelected(IlvDiagrammer)
and isEnabled(IlvDiagrammer)
methods.diagrammer
- The diagram component on which the action is to be performed.public void setHandler(IlvDiagrammerAction.Handler actionHandler)
perform(ActionEvent, IlvDiagrammer)
and update(IlvDiagrammer)
methods are not called: instead, the
IlvDiagrammerAction.Handler.perform(IlvDiagrammerAction, IlvDiagrammer, ActionEvent)
and IlvDiagrammerAction.Handler.update(IlvDiagrammerAction, IlvDiagrammer)
methods of its handler are called. Action handlers can choose whether or not to call the
original perform(ActionEvent, IlvDiagrammer)
or update(IlvDiagrammer)
method.
This mechanism is useful to modify or augment the behavior of an action, without
having to redefine the whole action or replace it in predefined toolbars.
It is also useful to define the behavior of "placeholder" actions such as exit
.
actionHandler
- The action handler to set for this action.public static JFileChooser getActionFileChooser()
public static File getFileChooserDirectory()
public static void setFileChooserDirectory(File directory)
directory
- The directory.public static File getDefaultSelectedFile()
public static void setDefaultSelectedFile(File selectedFile)
selectedFile
- The default file to be selected by the file
chooser.public static URL chooseFile(Component parent, boolean save, ResourceBundle bundle, String titleKey, String[] suffixes, String[] descriptionKeys) throws MalformedURLException
MalformedURLException
public static IlvDiagrammerAction.ErrorHandler getErrorHandler()
public static void setErrorHandler(IlvDiagrammerAction.ErrorHandler errorHandler)
JOptionPane
message dialog.errorHandler
- the new error handlerpublic static void addStatusListener(IlvDiagrammerAction.StatusListener listener)
listener
- The listener to add.removeStatusListener(ilog.views.diagrammer.application.IlvDiagrammerAction.StatusListener)
public static void removeStatusListener(IlvDiagrammerAction.StatusListener listener)
listener
- The listener to remove.addStatusListener(ilog.views.diagrammer.application.IlvDiagrammerAction.StatusListener)
public static void updateActions(Component component, IlvDiagrammer diagrammer)
This method is not used in normal operation, since Diagrammer actions are updated automatically. It may be necessary, though, to update the actions manually if the state of some actions depends on some special state of the GUI that is not known to the automatic mechanism.
component
- The root of the hierarchy in which the actions must be updated.diagrammer
- The diagram component according to which the actions must be updated.public static void addActionToUpdate(IlvDiagrammerAction action)
IlvDiagrammer
component changes.
This method is necessary only if you want to update an action that
is not associated with an AbstractButton
contained in a
visible Swing hierarchy. As soon as an action is associated with a Swing
button, it will be updated automatically.
action
- The action to update.removeActionToUpdate(ilog.views.diagrammer.application.IlvDiagrammerAction)
public static void removeActionToUpdate(IlvDiagrammerAction action)
IlvDiagrammer
component changes.action
- The action to update.addActionToUpdate(ilog.views.diagrammer.application.IlvDiagrammerAction)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.