public class EZActionManager extends Object implements PropertyChangeListener
Modifier and Type | Class and Description |
---|---|
class |
EZActionManager.MyEZDefaultActionHandler |
Constructor and Description |
---|
EZActionManager(ResourceBundle bundle)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionMenuListener(PropertyChangeListener listener) |
JMenuBar |
createMenubar()
Creates a JMenuBar.
|
JToolBar |
createToolbar()
Creates a JToolBar.
|
EZBasicAction |
getAction(String name)
Returns an action by name.
|
ActionMap |
getActionMap()
Returns the ActionMap obtained from the resource bundle.
|
EZDefaultActionHandler |
getDefaultActionHandler() |
void |
propertyChange(PropertyChangeEvent evt)
Implementation of java.beans.PropertyChangeListener interface.
|
void |
removeActionMenuListener(PropertyChangeListener listener) |
void |
setDefaultActionHandler(EZDefaultActionHandler handler) |
void |
setUserObject(Object obj)
Utility method to pass a user object to all Actions.
|
void |
update()
Updates all Actions.
|
public EZActionManager(ResourceBundle bundle) throws Exception
bundle
- the resource bundle 'file' containing
the definition of the menu/tool bars.Exception
- if the resource bundle cannot be located or if this
bundle contains wrongly formatted information.public JMenuBar createMenubar()
public JToolBar createToolbar()
public void update()
public void setUserObject(Object obj)
public ActionMap getActionMap()
public EZBasicAction getAction(String name)
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public void addActionMenuListener(PropertyChangeListener listener)
public void removeActionMenuListener(PropertyChangeListener listener)
public EZDefaultActionHandler getDefaultActionHandler()
public void setDefaultActionHandler(EZDefaultActionHandler handler)
Plealog Software - 2003-2017