Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.treetable
Interface TreeTableModelAdapterIF

All Superinterfaces:
TableModel
All Known Subinterfaces:
OlapRowAdapter, PivotRowAdapter
All Known Implementing Classes:
DefaultPivotRowAdapter, TreeTableModelAdapter

public interface TreeTableModelAdapterIF
extends TableModel

TreeTableModelAdapterIF is an interface that the model of a TreeTable should implement.


Field Summary
static String TREE_PROPERTY
          a string that identifies that the tree has changed
static String TREE_TABLE_MODEL_PROPERTY
          a string that identifies that the tree tablemodel has changed
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Adds a PropertyChangeListener to the listener list to be notified when the TreeTableModel or the JTree changes.
 JTree getTree()
          Returns the associated tree.
 TreeTableModel getTreeTableModel()
          Returns the associated treetable model.
 void removePropertyChangeListener(PropertyChangeListener listener)
          Removes a PropertyChangeListener from the listener list that is notified when the TreeTableColumnModel or the JTree changes.
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Field Detail

TREE_TABLE_MODEL_PROPERTY

static final String TREE_TABLE_MODEL_PROPERTY
a string that identifies that the tree tablemodel has changed

See Also:
Constant Field Values

TREE_PROPERTY

static final String TREE_PROPERTY
a string that identifies that the tree has changed

See Also:
Constant Field Values
Method Detail

addPropertyChangeListener

void addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list to be notified when the TreeTableModel or the JTree changes. The listener should check for TREE_TABLE_MODEL_PROPERTY and TREE_PROPERTY property events respectively.

Parameters:
listener - the listener to add.

getTree

JTree getTree()
Returns the associated tree.

Returns:
the tree.

getTreeTableModel

TreeTableModel getTreeTableModel()
Returns the associated treetable model.

Returns:
the treetable model.

removePropertyChangeListener

void removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list that is notified when the TreeTableColumnModel or the JTree changes. The listener should check for TREE_TABLE_COLUMN_MODEL_PROPERTY and TREE_PROPERTY property events respectively.

Parameters:
listener - the listener to remove.

Copyright © 2011 Citra Technologies. All Rights Reserved.