de.jppietsch.prefedit
Class PreferencesTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
de.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
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 |
name
private final String name
- The name of this tree node.
preferences
private final Preferences preferences
- Preferences which are represented by this tree node.
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.
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