public class ActionUtil
extends java.lang.Object
Constructor and Description |
---|
ActionUtil() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.JMenuItem |
addAction(javax.swing.JMenu menu,
ilog.views.gantt.action.IlvAction action) |
static javax.swing.JButton |
addAction(javax.swing.JToolBar toolbar,
ilog.views.gantt.action.IlvAction action)
Adds the specified action to a toolbar and returns the created
JButton . |
static javax.swing.AbstractButton |
addAction(javax.swing.JToolBar toolbar,
ViewerAbstractAction action,
boolean toggle)
Adds the specified action to a toolbar using
ViewerAbstractAction and returns the created
AbstractButton . |
public static javax.swing.JMenuItem addAction(javax.swing.JMenu menu, ilog.views.gantt.action.IlvAction action)
public static javax.swing.JButton addAction(javax.swing.JToolBar toolbar, ilog.views.gantt.action.IlvAction action)
JButton
.toolbar
- The toolbar.action
- The action.public static javax.swing.AbstractButton addAction(javax.swing.JToolBar toolbar, ViewerAbstractAction action, boolean toggle)
ViewerAbstractAction
and returns the created
AbstractButton
.toolbar
- The toolbar.action
- The action.toggle
- toggle flag