|
UndoRedo V1.2 by Matthew Ford 2005/06/27 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
au.com.forward.undoRedo.UndoRedoTreeNode
au.com.forward.undoRedo.BranchDefaultMutableTreeNode
public class BranchDefaultMutableTreeNode
A mutable tree node to hold Redo branches.
Overrides toString() to indicate if any node in this branch have been redone.
Added updateDisplayMessage() to update the node display string to show the
deepest redo in this branch.
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
BranchDefaultMutableTreeNode(BranchUndoRedo userObject)
BranchDefaultMutableTreeNode constructor |
Method Summary | |
---|---|
void |
cancelGetDescription()
Cancels getDescription Forwards request to the deepest node |
UndoRedoTreeNode |
getDeepestNode()
|
void |
getDescription(IDisplayText textDisplay,
UndoRedoTreeNode undoRedoTreeNode)
Gets the Description of the UndoableEdit. |
int |
getMaxDepth()
Get the maximum depth of this branch. |
protected static int |
isFirstChildReDone(BranchDefaultMutableTreeNode node)
Checks the first child of this branch to see if it has been redone. |
void |
setDeepestNode(UndoRedoTreeNode deepestNode)
|
void |
setMaxDepth(int maxDepth)
Set the maximum depth of this branch |
java.lang.String |
toString()
Override toString() to indicate if any nodes in this branch have been redone |
void |
updateDisplayMessage()
Find the deepest presentation name and set it as this nodes presentation name |
Methods inherited from class au.com.forward.undoRedo.UndoRedoTreeNode |
---|
clone, getUndoableEdit, toFullString |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
add, breadthFirstEnumeration, children, 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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BranchDefaultMutableTreeNode(BranchUndoRedo userObject)
userObject
- the BranchUndoRedoMethod Detail |
---|
protected static int isFirstChildReDone(BranchDefaultMutableTreeNode node)
node
- the branch node to check
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public UndoRedoTreeNode getDeepestNode()
public void setDeepestNode(UndoRedoTreeNode deepestNode)
public int getMaxDepth()
public void setMaxDepth(int maxDepth)
maxDepth
- the maximum depthpublic void getDescription(IDisplayText textDisplay, UndoRedoTreeNode undoRedoTreeNode)
getDescription
in interface IHaveDescription
textDisplay
- - the callback component used to display the extended descriptionpublic void cancelGetDescription()
cancelGetDescription
in interface IHaveDescription
public void updateDisplayMessage()
|
©2005, Forward Computing and Control Pty. Ltd ACN 003 669 994 NSW Australia All Rights Reserved. |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |