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 TypeMethodDescriptionvoid
addViaModel
(MutableTreeNode child) children()
int
depth()
boolean
getChildAt
(int childIndex) int
abstract Icon
getIcon()
int
getKind()
getNode()
getPath()
getRoot()
getText()
getTree()
getUserData
(String name) boolean
boolean
boolean
void
insert
(MutableTreeNode child, int index) void
insertViaModel
(MutableTreeNode child, int index) boolean
isLeaf()
boolean
void
putUserData
(String name, Object value) void
remove
(int index) void
remove
(MutableTreeNode node) void
void
select()
void
setParent
(MutableTreeNode newParent) void
void
setUserObject
(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:
insert
in interfaceMutableTreeNode
-
addViaModel
-
insertViaModel
-
remove
public void remove(int index) - Specified by:
remove
in interfaceMutableTreeNode
-
remove
- Specified by:
remove
in interfaceMutableTreeNode
-
setUserObject
- Specified by:
setUserObject
in interfaceMutableTreeNode
-
putUserData
-
getUserData
-
removeFromParent
public void removeFromParent()- Specified by:
removeFromParent
in interfaceMutableTreeNode
-
setParent
- Specified by:
setParent
in interfaceMutableTreeNode
-
getChildAt
- Specified by:
getChildAt
in interfaceTreeNode
-
getChildCount
public int getChildCount()- Specified by:
getChildCount
in interfaceTreeNode
-
getParent
-
getIndex
-
getAllowsChildren
public boolean getAllowsChildren()- Specified by:
getAllowsChildren
in 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()
-