public class TreasureTreeNode
extends javax.swing.tree.DefaultMutableTreeNode
TreasureObj
as content.Constructor and Description |
---|
TreasureTreeNode(TreasureObj content)
Construct tree node with specified content object.
|
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration<TreasureTreeNode> |
children() |
javax.swing.tree.MutableTreeNode |
getClone(boolean processSecondLinking,
java.util.List<TreasureTreeNode> needSecondLink)
Return a new cloned instance of this object.
|
TreasureObj |
getTreasureObj() |
void |
recalculateChances()
Recalculate the chances of objects in a treasureone list.
|
java.lang.String |
toString() |
add, breadthFirstEnumeration, 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
public TreasureTreeNode(@NotNull TreasureObj content)
content
- the treasure object of this nodepublic javax.swing.tree.MutableTreeNode getClone(boolean processSecondLinking, @Nullable java.util.List<TreasureTreeNode> needSecondLink)
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public TreasureObj getTreasureObj()
public void recalculateChances()
@NotNull public java.util.Enumeration<TreasureTreeNode> children()
children
in interface javax.swing.tree.TreeNode
children
in class javax.swing.tree.DefaultMutableTreeNode