|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sun.jaf.ui.UIFactory
Creates user interface elements based on action-lists managed in an ActionManagaer.
ActionManager| Method Summary | |
protected void |
configureButton(AbstractButton button,
Action action)
This method will be called after buttons created from an action. |
protected static void |
configureMenuItem(JMenuItem menuItem,
Action action)
This method will be called after menu items are created. |
protected void |
configureToggleButton(JToggleButton button,
Action action)
This method will be called after toggle buttons are created. |
protected static void |
configureToggleMenuItem(JMenuItem menuItem,
Action action)
This method will be called after toggle type menu items (like JRadioButtonMenuItem and JCheckBoxMenuItem) are created. |
JMenu |
createMenu(Object id)
Creates and returns a menu from an action-list id. |
JMenuBar |
createMenuBar(Object id)
Constructs a menu tree from an action-list id. |
JPopupMenu |
createPopup(Object id)
Constructs a popup menu from an action-list id. |
JToolBar |
createToolBar(Object id)
Constructs a toolbar from an action-list id. |
static com.sun.jaf.ui.ActionManager |
getActionManager()
Gets the ActionManager instance. |
static com.sun.jaf.ui.UIFactory |
getInstance()
Return the instance of the UIFactory if this will be used as a singleton. |
static void |
setActionManager(com.sun.jaf.ui.ActionManager manager)
Sets the ActionManager instance that will be used by this UIFactory |
static void |
setInstance(com.sun.jaf.ui.UIFactory factory)
Sets the UIFactory instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static com.sun.jaf.ui.UIFactory getInstance()
setInstance(com.sun.jaf.ui.UIFactory)public static void setInstance(com.sun.jaf.ui.UIFactory factory)
public static com.sun.jaf.ui.ActionManager getActionManager()
setActionManager(com.sun.jaf.ui.ActionManager)public static void setActionManager(com.sun.jaf.ui.ActionManager manager)
public JToolBar createToolBar(Object id)
id - action-list id which should be used to construct the toolbar.
public JPopupMenu createPopup(Object id)
id - action-list id which should be used to construct the popup.
public JMenuBar createMenuBar(Object id)
id - the action-list id which represents the root item
public JMenu createMenu(Object id)
id - the action-list id that may represents a menu.
protected void configureToggleButton(JToggleButton button,
Action action)
button - the button to be configuredaction - the action used to construct the menu item.
protected void configureButton(AbstractButton button,
Action action)
button - the button to be configuredaction - the action used to construct the menu item.
protected static void configureToggleMenuItem(JMenuItem menuItem,
Action action)
menuItem - the menu item to be configuredaction - the action used to construct the menu item.
protected static void configureMenuItem(JMenuItem menuItem,
Action action)
menuItem - the menu item to be configuredaction - the action used to construct the menu item.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||