|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.michab.mack.ActionManager
Manages an application's set of actions. The current main responsibility is to keep references to all existing application actions and to compute a popup menu and a menu bar.
ConfigurableAction
Constructor Summary | |
ActionManager()
|
Method Summary | |
static void |
addAction(ConfigurableAction ca)
Add an action to the ActionManager 's set of managed
actions. |
static void |
doPopup(java.awt.event.MouseEvent me)
Pops up a context menu on the component specified by the passed event. |
static java.awt.Component |
getDefaultActionRoot()
Returns the default root component for action driven dialogs. |
static javax.swing.JMenuBar |
getMenuBar()
Returns a reference to the menu bar holding the configured actions. |
static javax.swing.JToolBar |
getToolbar()
Returns a reference to the tool bar holding the configured actions. |
static void |
initMenuSetup(java.util.ResourceBundle rb)
Initiates initialisation of the ActionManager from the passed resources. |
static void |
setDefaultActionRoot(java.awt.Component ar)
Sets a default root component for action controlled dialogs. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionManager()
Method Detail |
public static void setDefaultActionRoot(java.awt.Component ar)
ar
- The default root component for action controlled dialogs.public static java.awt.Component getDefaultActionRoot()
setDefaultActionRoot()
. This is
also somewhere available in Swing, but I cannot find it again.
public static void addAction(ConfigurableAction ca)
ActionManager
's set of managed
actions.
ca
- The action to add.public static javax.swing.JMenuBar getMenuBar()
public static javax.swing.JToolBar getToolbar()
public static void initMenuSetup(java.util.ResourceBundle rb)
rb
- The resources to be used for initialisation.public static void doPopup(java.awt.event.MouseEvent me)
me
- The mouse event that was identified as a popup trigger.
java.lang.InternalError
- If not called on the event dispatch thread.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |