org.base.apps.beans.prefs.view
Class PrefNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by org.base.apps.beans.prefs.view.PrefNode
All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode, Nameable, Named

public class PrefNode
extends DefaultMutableTreeNode
implements Nameable

Author:
Kevan Simpson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
PrefNode(String name)
          Constructs a PrefNode with the given name.
PrefNode(String name, BasePreferences userObject)
          Constructs a PrefNode with the given name and BasePreferences.
PrefNode(String name, Property userObject)
          Constructs a PrefNode with the given name and Property.
 
Method Summary
 String getName()
          Fetches the name of this instance.
 BasePreferences getPreferences()
           
 Property getProperty()
           
 boolean isProperty()
           
 void setName(String name)
          Sets the name of this instance.
 void setPreferences(BasePreferences pref)
           
 void setProperty(Property prop)
           
 void setUserObject(Object userObject)
           
 
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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrefNode

public PrefNode(String name)
Constructs a PrefNode with the given name.

Parameters:
name - The given name.

PrefNode

public PrefNode(String name,
                Property userObject)
Constructs a PrefNode with the given name and Property.

Parameters:
name - The given name.
userObject - The given Property.

PrefNode

public PrefNode(String name,
                BasePreferences userObject)
Constructs a PrefNode with the given name and BasePreferences.

Parameters:
name - The given name.
userObject - The given BasePreferences.
Method Detail

getPreferences

public BasePreferences getPreferences()

setUserObject

public void setUserObject(Object userObject)
Specified by:
setUserObject in interface MutableTreeNode
Overrides:
setUserObject in class DefaultMutableTreeNode
See Also:
DefaultMutableTreeNode.setUserObject(java.lang.Object)

setPreferences

public void setPreferences(BasePreferences pref)

isProperty

public boolean isProperty()

getProperty

public Property getProperty()

setProperty

public void setProperty(Property prop)

getName

public String getName()
Description copied from interface: Named
Fetches the name of this instance.

Specified by:
getName in interface Named
Returns:
the name of this instance.
See Also:
Named.getName()

setName

public void setName(String name)
Description copied from interface: Nameable
Sets the name of this instance.

Specified by:
setName in interface Nameable
Parameters:
name - The new name.
See Also:
Nameable.setName(java.lang.String)

Please visit Base Apps, hosted on Sourceforge.net.

Copyright 2011, Blue Agate Software Entity (BASE)