java.lang.Objectucot.ui.gui.tree.analyzemodeltree.TreeItem
ucot.ui.gui.tree.analyzemodeltree.AbstractEntityTreeItem
public abstract class AbstractEntityTreeItem
This class represents all TreeItems in the AnalyzeModelTrre. It gathers common functionality shared among TreeItemss that represents entities in different levels in the tree.
Field Summary | |
---|---|
protected boolean |
expand
Should this tree node be expandaple (should it show its childs). |
Constructor Summary | |
---|---|
AbstractEntityTreeItem(java.lang.String name,
AnalyzeTreeModel model,
TreeItem parent)
Constructor for the class. |
Method Summary | |
---|---|
protected java.util.List<AttributeTreeItem> |
getAttributeTreeItems()
Returns the TreeItem s for the entity's attributes. |
java.util.List<TreeItem> |
getChildren()
Returns the child items of this item. |
protected java.util.List<ChildTreeItem> |
getChildTreeItems()
Returns the TreeItem s for the entity's childs. |
abstract javax.swing.Icon |
getIcon()
Returns Icon for this TreeItem . |
protected java.util.List<MethodTreeItem> |
getMethodTreeItems()
Returns the TreeItem s for the entity's methods. |
Methods inherited from class ucot.ui.gui.tree.analyzemodeltree.TreeItem |
---|
compareTo, getAnalyzeModel, getName, getParent, getPath, getTreeModel, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean expand
Constructor Detail |
---|
public AbstractEntityTreeItem(java.lang.String name, AnalyzeTreeModel model, TreeItem parent)
name
- The name of the entity.model
- The model where the entity resides.parent
- The parent node of this TreeItem
.Method Detail |
---|
public java.util.List<TreeItem> getChildren()
TreeItem
getChildren
in class TreeItem
protected java.util.List<MethodTreeItem> getMethodTreeItems()
TreeItem
s for the entity's methods.
MethodTreeItem
s representing entity's method.protected java.util.List<AttributeTreeItem> getAttributeTreeItems()
TreeItem
s for the entity's attributes.
AttributeTreeItem
s representing entity's attributes.protected java.util.List<ChildTreeItem> getChildTreeItems()
TreeItem
s for the entity's childs.
ChildTreeItem
s representing entity's childs.public abstract javax.swing.Icon getIcon()
TreeItem
Icon
for this TreeItem
.
getIcon
in class TreeItem
Icon
for this TreeItem
.