com.fruitioninc.jwc
Interface TableModel

All Superinterfaces:
Model
All Known Implementing Classes:
AbstractTableModel

public interface TableModel
extends Model

Responsible for the state of a Table component.

See Also:
Table

Method Summary
 java.lang.Class getColumnClass(int column)
          Returns the type of data in the column of a given index.
 int getColumnCount()
          Returns the number of columns in the table.
 java.lang.String getColumnName(int column)
          Returns the name of the column of a given index.
 java.lang.String getColumnTitle(int column)
          Returns title of the column of a given index.
 int getRowCount()
          Returns the number of rows in the table.
 java.lang.Object getValueAt(int row, int column)
          Returns value of the cell in the given row and column.
 boolean isEditable(int row, int column)
          Returns true if the cell is editable.
 void setValueAt(int row, int column, java.lang.Object value)
          Sets the value of the cell in the given row and column.
 
Methods inherited from interface com.fruitioninc.jwc.Model
_getStatefull, _setStatefull
 

Method Detail

getColumnCount

public int getColumnCount()
Returns the number of columns in the table.


getColumnName

public java.lang.String getColumnName(int column)
Returns the name of the column of a given index.


getColumnTitle

public java.lang.String getColumnTitle(int column)
Returns title of the column of a given index. This is the text displayed in the column's header.


getColumnClass

public java.lang.Class getColumnClass(int column)
Returns the type of data in the column of a given index.


getRowCount

public int getRowCount()
Returns the number of rows in the table.


getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Returns value of the cell in the given row and column.


setValueAt

public void setValueAt(int row,
                       int column,
                       java.lang.Object value)
Sets the value of the cell in the given row and column.


isEditable

public boolean isEditable(int row,
                          int column)
Returns true if the cell is editable.