de.matthiasmann.twl.model
Class AbstractTreeTableModel

java.lang.Object
  extended by de.matthiasmann.twl.model.AbstractTableColumnHeaderModel
      extended by de.matthiasmann.twl.model.AbstractTreeTableModel
All Implemented Interfaces:
TableColumnHeaderModel, TreeTableModel, TreeTableNode
Direct Known Subclasses:
FileSystemTreeModel

public abstract class AbstractTreeTableModel
extends AbstractTableColumnHeaderModel
implements TreeTableModel


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.matthiasmann.twl.model.TreeTableModel
TreeTableModel.ChangeListener
 
Nested classes/interfaces inherited from interface de.matthiasmann.twl.model.TableColumnHeaderModel
TableColumnHeaderModel.ColumnHeaderChangeListener
 
Constructor Summary
AbstractTreeTableModel()
           
 
Method Summary
 void addChangeListener(TreeTableModel.ChangeListener listener)
           
protected  void fireColumnDeleted(int idx, int count)
           
protected  void fireColumnHeaderChanged(int column)
           
protected  void fireColumnInserted(int idx, int count)
           
protected  void fireNodesAdded(TreeTableNode parent, int idx, int count)
           
protected  void fireNodesChanged(TreeTableNode parent, int idx, int count)
           
protected  void fireNodesRemoved(TreeTableNode parent, int idx, int count)
           
 TreeTableNode getChild(int idx)
           
 int getChildIndex(TreeTableNode child)
           
 java.lang.Object getData(int column)
           
 int getNumChildren()
           
 TreeTableNode getParent()
           
 java.lang.Object getTooltipContent(int column)
           
protected  void insertChild(TreeTableNode node, int idx)
           
 boolean isLeaf()
           
protected  void removeAllChildren()
           
 void removeChangeListener(TreeTableModel.ChangeListener listener)
           
protected  void removeChild(int idx)
           
 
Methods inherited from class de.matthiasmann.twl.model.AbstractTableColumnHeaderModel
getColumnHeaderState, getColumnHeaderStates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.matthiasmann.twl.model.TableColumnHeaderModel
getColumnHeaderState, getColumnHeaderStates, getColumnHeaderText, getNumColumns
 

Constructor Detail

AbstractTreeTableModel

public AbstractTreeTableModel()
Method Detail

addChangeListener

public void addChangeListener(TreeTableModel.ChangeListener listener)
Specified by:
addChangeListener in interface TreeTableModel

removeChangeListener

public void removeChangeListener(TreeTableModel.ChangeListener listener)
Specified by:
removeChangeListener in interface TreeTableModel

getData

public java.lang.Object getData(int column)
Specified by:
getData in interface TreeTableNode

getTooltipContent

public java.lang.Object getTooltipContent(int column)
Specified by:
getTooltipContent in interface TreeTableNode

getParent

public final TreeTableNode getParent()
Specified by:
getParent in interface TreeTableNode

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in interface TreeTableNode

getNumChildren

public int getNumChildren()
Specified by:
getNumChildren in interface TreeTableNode

getChild

public TreeTableNode getChild(int idx)
Specified by:
getChild in interface TreeTableNode

getChildIndex

public int getChildIndex(TreeTableNode child)
Specified by:
getChildIndex in interface TreeTableNode

insertChild

protected void insertChild(TreeTableNode node,
                           int idx)

removeChild

protected void removeChild(int idx)

removeAllChildren

protected void removeAllChildren()

fireNodesAdded

protected void fireNodesAdded(TreeTableNode parent,
                              int idx,
                              int count)

fireNodesRemoved

protected void fireNodesRemoved(TreeTableNode parent,
                                int idx,
                                int count)

fireNodesChanged

protected void fireNodesChanged(TreeTableNode parent,
                                int idx,
                                int count)

fireColumnInserted

protected void fireColumnInserted(int idx,
                                  int count)

fireColumnDeleted

protected void fireColumnDeleted(int idx,
                                 int count)

fireColumnHeaderChanged

protected void fireColumnHeaderChanged(int column)