fri.gui.swing.polytreetable
Interface PolyTreeTableModel

All Known Implementing Classes:
AbstractPolyTreeTableModel

public interface PolyTreeTableModel

The data model for PolyTreeTable that holds a polyhierarchy.
The TreeModel interface is rewritten here because of following reasons:

Nevertheless most method names of PolyTreeTableModel match those of TreeModel and implement the same semantics.

Author:
Ritzberger Fritz
See Also:
AbstractPolyTreeTableModel

Method Summary
 PolyTreeNode getChild(PolyTreeNode node, int index)
          Returns the child of node at index index.
 int getChildCount(PolyTreeNode node)
          Returns the number of children of node.
 java.lang.Class getColumnClass(int column)
          Returns the type for column number column.
 int getColumnCount()
          Returns the number ofs availible column.
 java.lang.String getColumnName(int column)
          Returns the name for column number column.
 int getIndexOfChild(PolyTreeNode node, PolyTreeNode child)
          Returns the index of child in node.
 int getIndexOfParent(PolyTreeNode node, PolyTreeNode parent)
          Returns the index of parent in node.
 PolyTreeNode getParent(PolyTreeNode node, int index)
          Returns the parent of node at index index.
 int getParentCount(PolyTreeNode node)
          Returns the number of parents of node.
 PolyTreeNode getStartNode()
          Returns the first start node that is never changed (entry point into polyhierarchy).
 java.lang.Object getValueAt(PolyTreeNode node, int column)
          Returns the value to be displayed for node node, at column number column.
 boolean isCellEditable(PolyTreeNode node, int column)
          Indicates whether the the value for node node, at column number column is editable.
 boolean isChildLeaf(PolyTreeNode node)
          Returns true if the passed node has no children or does not allow children.
 boolean isParentLeaf(PolyTreeNode node)
          Returns true if the passed node has no parents or does not allow parents.
 void setValueAt(java.lang.Object aValue, MutablePolyTreeNode node, int column)
          Sets the value for node node, at column number column.
 

Method Detail

getStartNode

public PolyTreeNode getStartNode()
Returns the first start node that is never changed (entry point into polyhierarchy).


getColumnCount

public int getColumnCount()
Returns the number ofs availible column.


getColumnName

public java.lang.String getColumnName(int column)
Returns the name for column number column.


getColumnClass

public java.lang.Class getColumnClass(int column)
Returns the type for column number column.


getValueAt

public java.lang.Object getValueAt(PolyTreeNode node,
                                   int column)
Returns the value to be displayed for node node, at column number column.


isCellEditable

public boolean isCellEditable(PolyTreeNode node,
                              int column)
Indicates whether the the value for node node, at column number column is editable.


setValueAt

public void setValueAt(java.lang.Object aValue,
                       MutablePolyTreeNode node,
                       int column)
Sets the value for node node, at column number column.


getParent

public PolyTreeNode getParent(PolyTreeNode node,
                              int index)
Returns the parent of node at index index.


getParentCount

public int getParentCount(PolyTreeNode node)
Returns the number of parents of node. Returns 0 if the node has no parents.


getIndexOfParent

public int getIndexOfParent(PolyTreeNode node,
                            PolyTreeNode parent)
Returns the index of parent in node.


isParentLeaf

public boolean isParentLeaf(PolyTreeNode node)
Returns true if the passed node has no parents or does not allow parents.


getChild

public PolyTreeNode getChild(PolyTreeNode node,
                             int index)
Returns the child of node at index index.


getChildCount

public int getChildCount(PolyTreeNode node)
Returns the number of children of node. Returns 0 if the node has no children.


getIndexOfChild

public int getIndexOfChild(PolyTreeNode node,
                           PolyTreeNode child)
Returns the index of child in node.


isChildLeaf

public boolean isChildLeaf(PolyTreeNode node)
Returns true if the passed node has no children or does not allow children.