|
SandMark version 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sandmark.gui.ObfTree.ObfTreeNode
The nodes in an ObfTree's model are instances of classes that extend ObfTreeNode. Each node stores its name, a Vector of its children, a reference to its parent, and an ObfuscationConfigInfo object that represents the information currently chosen by the user for the node.
Field Summary | |
protected ObfuscationConfigInfo |
m_info
Stores the info chosen by the user for this node in the tree. |
protected java.util.Vector |
m_kids
Stores this node's children. |
protected java.lang.String |
m_name
The "name" of the node, returned by toString(). |
protected ObfTree.ObfTreeNode |
m_parent
The parent node, or null for the root. |
Constructor Summary | |
ObfTree.ObfTreeNode()
|
Method Summary | |
java.util.Enumeration |
children()
Returns an Enumeration of this node's children. |
boolean |
getAllowsChildren()
Since there's already isLeaf() and getChildCount(), I don't get why TreeNode has a getAllowsChildren()... |
javax.swing.tree.TreeNode |
getChildAt(int i)
Return the ith child. |
int |
getChildCount()
Get the number of children. |
int |
getIndex(javax.swing.tree.TreeNode node)
Find a child. |
ObfuscationConfigInfo |
getInfo()
Public accessor for m_info. |
abstract java.lang.String |
getKey()
Returns the key on which the information for this node should be hashed in an ObfuscationConfigMap. |
javax.swing.tree.TreeNode |
getParent()
Public accessor for m_parent. |
boolean |
isLeaf()
Returns true or false depending on whether this node is a leaf. |
protected boolean |
loadCurrentSettings(ObfuscationConfigMap map)
Retrieves the settings for this node from the current ObfuscationConfigMap, and initializes m_info to a deep (cloned) temporary copy. |
void |
storeCurrentSettings()
Updates the current ObfuscationConfigMap with the latest information for this node. |
java.lang.String |
toString()
Returns the string used to display this node in the tree. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected ObfuscationConfigInfo m_info
protected java.util.Vector m_kids
protected ObfTree.ObfTreeNode m_parent
protected java.lang.String m_name
Constructor Detail |
public ObfTree.ObfTreeNode()
Method Detail |
public ObfuscationConfigInfo getInfo()
public java.util.Enumeration children()
children
in interface javax.swing.tree.TreeNode
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getChildAt(int i)
getChildAt
in interface javax.swing.tree.TreeNode
i
- The index of the child to retrieve.
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public int getIndex(javax.swing.tree.TreeNode node)
getIndex
in interface javax.swing.tree.TreeNode
node
- The child to locate.
public javax.swing.tree.TreeNode getParent()
getParent
in interface javax.swing.tree.TreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
public abstract java.lang.String getKey()
protected boolean loadCurrentSettings(ObfuscationConfigMap map)
public void storeCurrentSettings()
public java.lang.String toString()
toString
in class java.lang.Object
|
SandMark version 3.0 Wed Jan 29 10:30:05 MST 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |