net.sf.jzeno.echo.databinding
Class BoundTableModel

java.lang.Object
  extended by nextapp.echo.table.AbstractTableModel
      extended by net.sf.jzeno.echo.databinding.BoundTableModel
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, ActionListener, TableModel, ThreadSafeTableModel
Direct Known Subclasses:
EditableBoundTableModel, HighlightSuccessModel

public class BoundTableModel
extends AbstractTableModel
implements java.io.Serializable, ActionListener, ThreadSafeTableModel

Implementation of the TableModel interface that provides the databinding capabilities of DynaTable.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class nextapp.echo.table.AbstractTableModel
listenerList
 
Constructor Summary
BoundTableModel(DynaTable table, ConstructionList constructionList)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          Invoked when an action occurs.
 void clearComponentCaches()
          Clear any cached component that you may have.
 java.lang.Class getColumnClass(int column)
          Returns Object.class.
 int getColumnCount()
          Returns the number of columns in the table.
 java.lang.String getColumnName(int column)
          Returns the value found at the given coordinate within the table.
 ConstructionList getConstructionList()
           
 java.lang.Object getCopiedValueAt(int column, int row)
           
 int getRowCount()
          Returns the number of rows in the table.
 DynaTable getTable()
           
 java.lang.Object getValueAt(int column, int row)
          Returns the value found at the given coordinate within the table.
 boolean hasCopiedValueAt(int column, int row)
           
 void markValid()
           
 void setConstructionList(ConstructionList cl)
           
 void updateComponentCaches()
          This method allows you to update any cached component when the data being visualized in this table changes (i.e. setList() is executed on the DynaTable)
protected  void updateTable()
           
 
Methods inherited from class nextapp.echo.table.AbstractTableModel
addTableModelListener, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, isRowEditable, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundTableModel

public BoundTableModel(DynaTable table,
                       ConstructionList constructionList)
Method Detail

getColumnClass

public java.lang.Class getColumnClass(int column)
Description copied from class: AbstractTableModel
Returns Object.class.

Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel
Parameters:
column - The column number whose class is to be returned.
Returns:
The most-specific class found in the given table column.
See Also:
TableModel.getColumnClass(int)

getColumnCount

public int getColumnCount()
Description copied from interface: TableModel
Returns the number of columns in the table.

Specified by:
getColumnCount in interface TableModel
Returns:
The number of columns in the table.
See Also:
TableModel.getColumnCount()

getColumnName

public java.lang.String getColumnName(int column)
Description copied from class: AbstractTableModel
Returns the value found at the given coordinate within the table. This method returns a column name using the same notation as a spreadsheet (A, B, C ... Y, Z, AA, AB, AC ...)

Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel
Parameters:
column - The column of the value to return.
Returns:
The name of the specified column number.
See Also:
TableModel.getColumnName(int)

getRowCount

public int getRowCount()
Description copied from interface: TableModel
Returns the number of rows in the table.

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

getValueAt

public java.lang.Object getValueAt(int column,
                                   int row)
Description copied from interface: TableModel
Returns the value found at the given coordinate within the table.

Specified by:
getValueAt in interface TableModel
Parameters:
column - The column of the value to return.
row - The row of the value to return.
See Also:
TableModel.getValueAt(int, int)

getTable

public DynaTable getTable()

updateComponentCaches

public void updateComponentCaches()
This method allows you to update any cached component when the data being visualized in this table changes (i.e. setList() is executed on the DynaTable)


clearComponentCaches

public void clearComponentCaches()
Clear any cached component that you may have.


actionPerformed

public void actionPerformed(ActionEvent e)
Description copied from interface: ActionListener
Invoked when an action occurs.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - The event describing the action.

markValid

public void markValid()

getCopiedValueAt

public java.lang.Object getCopiedValueAt(int column,
                                         int row)

hasCopiedValueAt

public boolean hasCopiedValueAt(int column,
                                int row)

updateTable

protected void updateTable()

setConstructionList

public void setConstructionList(ConstructionList cl)

getConstructionList

public ConstructionList getConstructionList()