org.knime.core.node.tableview
Interface TableContentInterface

All Known Implementing Classes:
TableContentModel

public interface TableContentInterface

Interface used by the row header view of a table. It allows to retrieve information regarding the row keys in a table and their hilite status.

Author:
Bernd Wiswedel, University of Konstanz

Method Summary
 void addTableModelListener(TableModelListener l)
          Adds a listener to the list that is notified each time a change to the data model occurs.
 ColorAttr getColorAttr(int row)
          Get the color of a requested row, The color is shown as icon in front of the row key.
 int getRowCount()
          Get the number of rows that are in the table.
 RowKey getRowKey(int row)
          Get the row key for a given row index.
 boolean isHiLit(int row)
          Is the Row row hilited? The row with the index will be cached (if it hasn't been in there) and the hilite status of the row is returned.
 void removeTableModelListener(TableModelListener l)
          Removes a listener from the list that is notified each time a change to the data model occurs.
 

Method Detail

getRowCount

int getRowCount()
Get the number of rows that are in the table.

Returns:
The number of rows in the table.
See Also:
TableModel.getRowCount()

getRowKey

RowKey getRowKey(int row)
Get the row key for a given row index. The row key will be displayed in a separate (row header) table.

Parameters:
row - The row index.
Returns:
The key of that row.
Throws:
IndexOutOfBoundsException - If the index is out of range.

getColorAttr

ColorAttr getColorAttr(int row)
Get the color of a requested row, The color is shown as icon in front of the row key.

Parameters:
row - The row index.
Returns:
The color attribute for this row.
Throws:
IndexOutOfBoundsException - If the index is out of range.

isHiLit

boolean isHiLit(int row)
Is the Row row hilited? The row with the index will be cached (if it hasn't been in there) and the hilite status of the row is returned. This method may change the current cache content since it ensures row is in the cache.

Parameters:
row - The row index of interest
Returns:
true If that index is currently hilited

addTableModelListener

void addTableModelListener(TableModelListener l)
Adds a listener to the list that is notified each time a change to the data model occurs.

Parameters:
l - the TableModelListener

removeTableModelListener

void removeTableModelListener(TableModelListener l)
Removes a listener from the list that is notified each time a change to the data model occurs.

Parameters:
l - the TableModelListener


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.