|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.action.swing.DefaultActionFactory
public class DefaultActionFactory
Default action factory used in the Doolin GUI framework. It can be replaced
by declaring in the Spring configuration a bean that implements the
ActionFactory interface.
| Field Summary | |
|---|---|
static DefaultActionFactory |
INSTANCE
Default instance |
| Constructor Summary | |
|---|---|
DefaultActionFactory()
|
|
| Method Summary | |
|---|---|
Action |
createAction(ActionContext actionContext,
GUIAction action,
IconSize iconSize)
Creates a Swing Action from a GUIAction. |
JButtonBar |
createButtonBar(ActionBarContext actionBarContext)
Creates a button bar from a list of actions |
JMenuBar |
createMenuBar(ActionContextPathList menuBarContext)
Creates a menu bar |
JPopupMenu |
createPopupMenu(ActionBarContext actionBarContext)
Creates a pop-up menu from an action group. |
JToolBar |
createToolBar(ActionBarContext actionBarContext)
Creates a tool bar from an action group. |
void |
installAction(MenuBuilder menuBuilder,
ActionPath actionPath,
ActionContext actionContext)
Installs an action path |
protected void |
installAction(MenuBuilder menuBuilder,
Stack<String> pathStack,
ActionPath actionPath,
ActionContext actionContext)
Installs an action defined by its path into a MenuBuilder. |
protected void |
installActionPaths(MenuBuilder menuBuilder,
ActionBarContext actionBarContext)
Installs the actions defined by an ActionBarContext into the
MenuBuilder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DefaultActionFactory INSTANCE
| Constructor Detail |
|---|
public DefaultActionFactory()
| Method Detail |
|---|
public Action createAction(ActionContext actionContext,
GUIAction action,
IconSize iconSize)
ActionFactoryAction from a GUIAction.
createAction in interface ActionFactoryactionContext - Action contextaction - Associated GUIActioniconSize - Desired icon size
Actionpublic JMenuBar createMenuBar(ActionContextPathList menuBarContext)
ActionFactory
createMenuBar in interface ActionFactorymenuBarContext - Menu bar description
protected void installActionPaths(MenuBuilder menuBuilder,
ActionBarContext actionBarContext)
ActionBarContext into the
MenuBuilder.
menuBuilder - Menu builder to callactionBarContext - Definition of the action bar
public void installAction(MenuBuilder menuBuilder,
ActionPath actionPath,
ActionContext actionContext)
ActionFactory
installAction in interface ActionFactorymenuBuilder - Menu builderactionPath - Action path to installactionContext - Action context
protected void installAction(MenuBuilder menuBuilder,
Stack<String> pathStack,
ActionPath actionPath,
ActionContext actionContext)
MenuBuilder.
menuBuilder - Menu builder to callpathStack - Path to the actionactionPath - Definition to the actionactionContext - Action contextActionPath.install(MenuBuilder, ActionFactory, ActionContext)public JToolBar createToolBar(ActionBarContext actionBarContext)
ActionFactory
createToolBar in interface ActionFactoryactionBarContext - The action bar context
public JButtonBar createButtonBar(ActionBarContext actionBarContext)
ActionFactory
createButtonBar in interface ActionFactoryactionBarContext - The action bar context
public JPopupMenu createPopupMenu(ActionBarContext actionBarContext)
ActionFactory
createPopupMenu in interface ActionFactoryactionBarContext - The action bar context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||