ucot.ui.gui.tree.analyzemodeltree
Class AbstractEntityTreeItem

java.lang.Object
  extended by ucot.ui.gui.tree.analyzemodeltree.TreeItem
      extended by ucot.ui.gui.tree.analyzemodeltree.AbstractEntityTreeItem
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
AttributeTreeItem, ChildTreeItem, EntityTreeItem

public abstract class AbstractEntityTreeItem
extends TreeItem

This class represents all TreeItems in the AnalyzeModelTrre. It gathers common functionality shared among TreeItemss that represents entities in different levels in the tree.

Author:
UCOT

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 TreeItems 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 TreeItems for the entity's childs.
abstract  javax.swing.Icon getIcon()
          Returns Icon for this TreeItem.
protected  java.util.List<MethodTreeItem> getMethodTreeItems()
          Returns the TreeItems 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

expand

protected boolean expand
Should this tree node be expandaple (should it show its childs).

Constructor Detail

AbstractEntityTreeItem

public AbstractEntityTreeItem(java.lang.String name,
                              AnalyzeTreeModel model,
                              TreeItem parent)
Constructor for the class.

Parameters:
name - The name of the entity.
model - The model where the entity resides.
parent - The parent node of this TreeItem.
Method Detail

getChildren

public java.util.List<TreeItem> getChildren()
Description copied from class: TreeItem
Returns the child items of this item.

Overrides:
getChildren in class TreeItem
Returns:
The childs.

getMethodTreeItems

protected java.util.List<MethodTreeItem> getMethodTreeItems()
Returns the TreeItems for the entity's methods.

Returns:
List of MethodTreeItems representing entity's method.

getAttributeTreeItems

protected java.util.List<AttributeTreeItem> getAttributeTreeItems()
Returns the TreeItems for the entity's attributes.

Returns:
List of AttributeTreeItems representing entity's attributes.

getChildTreeItems

protected java.util.List<ChildTreeItem> getChildTreeItems()
Returns the TreeItems for the entity's childs.

Returns:
List of ChildTreeItems representing entity's childs.

getIcon

public abstract javax.swing.Icon getIcon()
Description copied from class: TreeItem
Returns Icon for this TreeItem.

Specified by:
getIcon in class TreeItem
Returns:
Icon for this TreeItem.