|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.gui.AbstractComponentFactory
public abstract class AbstractComponentFactory
Abstract factory for user interface components based on resource and action map keys.
Constructor Summary | |
---|---|
protected |
AbstractComponentFactory(ActionMap actionMap,
org.jdesktop.application.ResourceMap resourceMap)
Creates an abstract factory that operates on the specified action and resource map. |
Method Summary | |
---|---|
protected Action |
getAction(ActionMap customActionMap,
String name)
Returns a swing action with the specified name. |
protected Action |
getAction(String name)
Returns a swing action with the specified name. |
protected ActionMap |
getActionMap()
Returns the action map this factory operates on. |
protected String[] |
getEntries(String name)
Returns the entries of a collection resource key. |
protected org.jdesktop.application.ResourceMap |
getResourceMap()
Returns the resource map this factory operates on. |
protected boolean |
isComposite(String name)
Checks if the resource entry is a special composite entry. |
protected boolean |
isGlue(String name)
Checks if a resource entry is a glue entry. |
protected boolean |
isPlaceholder(String name)
Checks if the resource entry is a special placeholder entry. |
protected boolean |
isSeparator(String name)
Checks if a resource entry is a separator entry. |
protected String |
unmaskComposite(String name)
Unmasks a name composite name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractComponentFactory(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 |
---|
protected ActionMap getActionMap()
protected org.jdesktop.application.ResourceMap getResourceMap()
protected Action getAction(String name)
Uses the action map of this component factory for the lookup.
name
- the name of the swing action as it appears in the resource map.
IllegalStateException
- if the action cannot be found.protected Action getAction(ActionMap customActionMap, String name)
customActionMap
- the custom action map to use for the lookup.name
- the name of the swing action as it appears in the resource map.
IllegalStateException
- if the action cannot be found.protected String[] getEntries(String name)
Collection resource keys always have the suffix .Entries
.
name
- the name of the collection resource.
null
.protected boolean isPlaceholder(String name)
Special entries are placeholder replaced at a later stage.
name
- the name to check.
true
if the entry is a placeholder.protected String unmaskComposite(String name)
name
- the name to unmask if it is a isComposite(String)
name.
protected boolean isComposite(String name)
Special entries are placeholder replaced at a later stage.
name
- the name to check.
true
if the entry is a placeholder.protected boolean isGlue(String name)
name
- the resource entry to check.
true
if the entry denotes a glue entry,
false
otherwise.protected boolean isSeparator(String name)
name
- the resource entry to check.
true
if the entry denotes a separator,
false
otherwise.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG