|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.gui.ComponentFactory
org.openpermis.editor.policy.gui.ButtonFactory
org.openpermis.editor.policy.gui.ToolBarFactory
public final class ToolBarFactory
Factory for tool bars.
The factory creates tool bars from a resource description.
Constructor Summary | |
---|---|
ToolBarFactory(ActionMap actionMap,
org.jdesktop.application.ResourceMap resourceMap)
Creates a tool bar factory that operates on the specified action and resource map. |
Method Summary | |
---|---|
private void |
addToolBarEntries(JToolBar toolBar,
String toolBarName,
String[] entries)
Recursively adds all entries to the tool bar specified. |
private boolean |
addToolBarEntries(JToolBar toolBar,
String toolBarName,
String[] entries,
boolean addStrut)
Primitive to add tool bar entries. |
static JToolBar |
createToolBar(ActionMap actionMap,
org.jdesktop.application.ResourceMap resourceMap,
String key)
Convenience method to create a tool bar. |
JToolBar |
createToolBar(String key)
Creates a tool bar from the specfied resource key. |
Methods inherited from class org.openpermis.editor.policy.gui.ButtonFactory |
---|
createToolButton |
Methods inherited from class org.openpermis.editor.policy.gui.ComponentFactory |
---|
getAction, getActionMap, getEntries, getResourceMap, isComposite, isGlue, isPlaceholder, isSeparator, unmaskComposite |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToolBarFactory(ActionMap actionMap, org.jdesktop.application.ResourceMap resourceMap)
actionMap
- the action map this factory operates on.resourceMap
- the resource map this factory operates on.Method Detail |
---|
public static JToolBar createToolBar(ActionMap actionMap, org.jdesktop.application.ResourceMap resourceMap, String key)
Except for performance this convenience method is equivalent to creating a tool bar factory for the specfied action and resource map and then creating the tool bar using the newly created factory.
actionMap
- the action map this factory operates on.resourceMap
- the resource map this factory operates on.key
- the resource key for the tool bar.
private void addToolBarEntries(JToolBar toolBar, String toolBarName, String[] entries)
toolBar
- the tool bar to add entries to.toolBarName
- the resource key of the tool bar.entries
- the entries to add.private boolean addToolBarEntries(JToolBar toolBar, String toolBarName, String[] entries, boolean addStrut)
Struts are added between non-separator tool bar entries.
toolBar
- the tool bar to add entries to.toolBarName
- the resource key of the tool bar.entries
- the entries to add.addStrut
- true
if a strut should be added before adding an entry.
true
if a strut should be added before adding the next entry.public JToolBar createToolBar(String key)
key
- the resource key from which to create tool bar.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:48
Copyright (c) 2002-2007 Ergon Informatik AG