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