|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.refractions.udig.style.sld.editor.EditorPageManager
public class EditorPageManager
| Field Summary | |
|---|---|
static java.lang.String |
ATT_CLASS
|
static java.lang.String |
ATT_ID
|
static java.lang.String |
ATT_LABEL
|
static java.lang.String |
ATT_NAME
|
static java.lang.String |
PL_KEYWORDS
|
static int |
POST_ORDER
Post-order means visit the children, and then the root. |
static int |
PRE_ORDER
Pre-order traversal means visit the root first, then the children. |
| Constructor Summary | |
|---|---|
EditorPageManager()
Creates a new preference manager. |
|
EditorPageManager(char separatorChar)
Create a new instance of the receiver with the specified seperatorChar |
|
| Method Summary | |
|---|---|
void |
addExtension(IExtensionTracker tracker,
IExtension extension)
|
void |
addPages(java.util.Collection<?> pageContributions)
Add the pages and the groups to the receiver. |
boolean |
addTo(java.lang.String path,
EditorNode node)
Adds the given preference node as a subnode of the node at the given path. |
void |
addToRoot(EditorNode node)
Adds the given preference node as a subnode of the root. |
protected void |
buildSequence(EditorNode node,
java.util.List<EditorNode> sequence,
int order)
Recursively enumerates all nodes at or below the given node and adds them to the given list in the given order. |
EditorNode |
find(java.lang.String path)
Finds and returns the contribution node at the given path. |
protected EditorNode |
find(java.lang.String path,
EditorNode top)
Finds and returns the preference node directly below the top at the given path. |
java.lang.String |
getClassValue(IConfigurationElement configElement,
java.lang.String classAttributeName)
|
java.util.List<?> |
getElements(int order)
Returns all preference nodes managed by this manager. |
EditorNode |
getRoot()
Returns the root node. |
EditorNode[] |
getRootSubNodes()
|
boolean |
hasNode(java.lang.String nodeId)
Returns true if the specified node exists in the manager. |
static EditorPageManager |
loadManager(Plugin plugin,
ILayer selectedLayer)
Creates the default EditorPageManager implementation and loads the style pages for the layer into
the manager. |
void |
registerNode(EditorNode node)
Register a node with the extension tracker. |
boolean |
remove(EditorNode node)
Removes the given prefreence node if it is managed by this contribution manager. |
EditorNode |
remove(java.lang.String path)
Removes the prefernece node at the given path. |
void |
removeAll()
Removes all contribution nodes known to this manager. |
void |
removeExtension(IExtension extension,
java.lang.Object[] objects)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATT_ID
public static final java.lang.String ATT_CLASS
public static final java.lang.String ATT_NAME
public static final java.lang.String ATT_LABEL
public static final java.lang.String PL_KEYWORDS
public static final int PRE_ORDER
public static final int POST_ORDER
| Constructor Detail |
|---|
public EditorPageManager()
public EditorPageManager(char separatorChar)
separatorChar - | Method Detail |
|---|
public void addPages(java.util.Collection<?> pageContributions)
pageContributions - public void registerNode(EditorNode node)
node - register the given node and its subnodes with the extension
tracker
public void addExtension(IExtensionTracker tracker,
IExtension extension)
public java.lang.String getClassValue(IConfigurationElement configElement,
java.lang.String classAttributeName)
public void removeExtension(IExtension extension,
java.lang.Object[] objects)
public boolean addTo(java.lang.String path,
EditorNode node)
path - the pathnode - the node to add
true if the add was successful,
and false if there is no contribution at
the given pathpublic void addToRoot(EditorNode node)
node - the node to add, which must implement
SLDEditorPageNode
protected void buildSequence(EditorNode node,
java.util.List<EditorNode> sequence,
int order)
node - the starting nodesequence - a read-write list of preference nodes
(element type: SLDEditorPageNode)
in the given orderorder - the traversal order, one of
PRE_ORDER and POST_ORDERpublic EditorNode find(java.lang.String path)
path - the path
null if none
protected EditorNode find(java.lang.String path,
EditorNode top)
path - the path
null if nonepublic java.util.List<?> getElements(int order)
order - the traversal order, one of
PRE_ORDER and POST_ORDER
SLDEditorPageNode)
in the given orderpublic EditorNode getRoot()
public EditorNode remove(java.lang.String path)
path - the path
null
if there was no node at the given pathpublic boolean remove(EditorNode node)
node - the node to remove
true if the node was removed,
and false otherwisepublic void removeAll()
public EditorNode[] getRootSubNodes()
public boolean hasNode(java.lang.String nodeId)
nodeId - Unique identified for a node
public static EditorPageManager loadManager(Plugin plugin,
ILayer selectedLayer)
EditorPageManager implementation and loads the style pages for the layer into
the manager.
plugin - the plug-in to send error messages to.selectedLayer - the layer to use to filter the style pages
EditorPageManager implementation and loads the style pages for the layer into
the manager.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||