Preferences Editor

de.jppietsch.prefedit
Class PreferencesTreeNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byde.jppietsch.prefedit.PreferencesTreeNode
All Implemented Interfaces:
Cloneable, MutableTreeNode, Serializable, TreeNode

public class PreferencesTreeNode
extends DefaultMutableTreeNode

A tree node model of a Preferences object.

Version:
$Revision: 1.5 $
Author:
Jan-Peter Pietsch
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
private  String name
          The name of this tree node.
private  Preferences preferences
          Preferences which are represented by this tree node.
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
PreferencesTreeNode(Preferences somePreferences, String aDefaultNameKey)
          Constructs a tree node for a given Preferences object.
 
Method Summary
 Preferences getPreferences()
          Returns the preferences node which is represented by this tree node.
 String toString()
          Description of the Method
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private final String name
The name of this tree node.


preferences

private final Preferences preferences
Preferences which are represented by this tree node.

Constructor Detail

PreferencesTreeNode

public PreferencesTreeNode(Preferences somePreferences,
                           String aDefaultNameKey)
                    throws BackingStoreException
Constructs a tree node for a given Preferences object.

Parameters:
somePreferences - To be viewen as tree node.
aDefaultNameKey - which is used to retrieve a name from Rsc that is displayed if the preferences name is empty.
Throws:
BackingStoreException - If something goes wrong.
Method Detail

getPreferences

public Preferences getPreferences()
Returns the preferences node which is represented by this tree node.

Returns:
Preferences which are represented by this tree node.

toString

public String toString()
Description of the Method

Returns:
Description of the Returned Value

Preferences Editor