java.lang.Object
editor.AbstractTree<T,N>
- All Implemented Interfaces:
MutableTreeNode,TreeNode
- Direct Known Subclasses:
MessageTree,SearchTree
public abstract class AbstractTree<T extends AbstractTree<T,N>,N extends ITreeNode>
extends Object
implements MutableTreeNode
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTree(NodeKind kind, N node) AbstractTree(String text, NodeKind kind, N node) AbstractTree(JTree tree) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddViaModel(MutableTreeNode child) children()intdepth()booleangetChildAt(int childIndex) intabstract IcongetIcon()intgetKind()getNode()getPath()getRoot()getText()getTree()getUserData(String name) booleanbooleanbooleanvoidinsert(MutableTreeNode child, int index) voidinsertViaModel(MutableTreeNode child, int index) booleanisLeaf()booleanvoidputUserData(String name, Object value) voidremove(int index) voidremove(MutableTreeNode node) voidvoidselect()voidsetParent(MutableTreeNode newParent) voidvoidsetUserObject(Object object) toString()
-
Field Details
-
_text
-
_kind
-
_node
-
_userData
-
_parent
-
_children
-
-
Constructor Details
-
AbstractTree
-
AbstractTree
-
AbstractTree
-
-
Method Details
-
getIcon
-
getTree
-
getRoot
-
getText
-
setText
-
getKind
-
getNode
-
isTerminal
public boolean isTerminal() -
getChildren
-
insert
- Specified by:
insertin interfaceMutableTreeNode
-
addViaModel
-
insertViaModel
-
remove
public void remove(int index) - Specified by:
removein interfaceMutableTreeNode
-
remove
- Specified by:
removein interfaceMutableTreeNode
-
setUserObject
- Specified by:
setUserObjectin interfaceMutableTreeNode
-
putUserData
-
getUserData
-
removeFromParent
public void removeFromParent()- Specified by:
removeFromParentin interfaceMutableTreeNode
-
setParent
- Specified by:
setParentin interfaceMutableTreeNode
-
getChildAt
- Specified by:
getChildAtin interfaceTreeNode
-
getChildCount
public int getChildCount()- Specified by:
getChildCountin interfaceTreeNode
-
getParent
-
getIndex
-
getAllowsChildren
public boolean getAllowsChildren()- Specified by:
getAllowsChildrenin interfaceTreeNode
-
isLeaf
public boolean isLeaf() -
children
-
toString
-
select
public void select() -
getPath
-
makePath
-
hasFailures
public boolean hasFailures() -
hasErrors
public boolean hasErrors() -
hasWarnings
public boolean hasWarnings() -
depth
public int depth()
-