public class IstiTableModel extends java.lang.Object implements IstiColumnFilter, IstiRowFilter, javax.swing.table.TableModel, javax.swing.event.TableModelListener
| Constructor and Description | 
|---|
IstiTableModel(javax.swing.table.AbstractTableModel tableModel)
Creates a default instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addTableModelListener(javax.swing.event.TableModelListener listener)
Adds a listener to the model. 
 | 
void | 
fireTableStructureChanged()
Notifies all listeners that the table's structure has changed. 
 | 
int | 
getActualColumnIndex(int columnIndex)
Gets the actual column index. 
 | 
int | 
getActualRowIndex(int rowIndex)
Gets the actual row index. 
 | 
java.lang.Class | 
getColumnClass(int columnIndex)
Returns the  
Class for all Object instances in
 the specified column. | 
int | 
getColumnCount()
Returns the number of visible columns in the model. 
 | 
IstiColumnFilter | 
getColumnFilter()
Get the column filter. 
 | 
java.lang.String | 
getColumnName(int columnIndex)
Returns the name of a column in the model. 
 | 
int | 
getRowCount()
Returns the number of rows in the model. 
 | 
IstiRowFilter | 
getRowFilter()
Get the row filter. 
 | 
javax.swing.table.TableModel | 
getTableModel()
Gets the underlying table model. 
 | 
java.lang.Object | 
getValueAt(int rowIndex,
          int columnIndex)
Returns the value ( 
Object) at a particular cell in the
 table. | 
protected void | 
initColumnInfo()
Initializes the column information. 
 | 
protected void | 
initRowInfo()
Initializes the row information. 
 | 
boolean | 
isCellEditable(int rowIndex,
              int columnIndex)
Returns  
true if the cell is editable, and false
 otherwise. | 
boolean | 
isColumnVisible(int columnIndex)
Determines if the column is visible. 
 | 
boolean | 
isRowVisible(int rowIndex)
Determines if the row is visible. 
 | 
void | 
removeTableModelListener(javax.swing.event.TableModelListener listener)
Removes a listener from the model. 
 | 
void | 
setColumnFilter(IstiColumnFilter columnFilter)
Set the column filter. 
 | 
void | 
setColumnVisible(int columnIndex,
                boolean b)
Sets if the column is visible or not. 
 | 
void | 
setRowFilter(IstiRowFilter rowFilter)
Set the row filter. 
 | 
void | 
setRowVisible(int rowIndex,
             boolean b)
Sets if the row is visible or not. 
 | 
void | 
setValueAt(java.lang.Object aValue,
          int rowIndex,
          int columnIndex)
Sets the value at a particular cell in the table. 
 | 
void | 
tableChanged(javax.swing.event.TableModelEvent e)
This fine grain notification tells listeners the exact range of cells,
 rows, or columns that changed. 
 | 
protected void | 
updateColumnInfo()
Updates the column information. 
 | 
protected void | 
updateRowInfo()
Updates the row information. 
 | 
public IstiTableModel(javax.swing.table.AbstractTableModel tableModel)
tableModel - the table model.public void addTableModelListener(javax.swing.event.TableModelListener listener)
addTableModelListener in interface javax.swing.table.TableModellistener - the listener.public void fireTableStructureChanged()
public int getActualColumnIndex(int columnIndex)
columnIndex - the visible column index.public int getActualRowIndex(int rowIndex)
rowIndex - the visible row index.public java.lang.Class getColumnClass(int columnIndex)
Class for all Object instances in
 the specified column.getColumnClass in interface javax.swing.table.TableModelcolumnIndex - the visible column index.public int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelpublic IstiColumnFilter getColumnFilter()
public java.lang.String getColumnName(int columnIndex)
getColumnName in interface javax.swing.table.TableModelcolumnIndex - the visible column index.public int getRowCount()
getRowCount in interface javax.swing.table.TableModelpublic IstiRowFilter getRowFilter()
public javax.swing.table.TableModel getTableModel()
public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Object) at a particular cell in the
 table.getValueAt in interface javax.swing.table.TableModelrowIndex - the row index.columnIndex - the visible column index.protected void initColumnInfo()
protected void initRowInfo()
public boolean isCellEditable(int rowIndex,
                              int columnIndex)
true if the cell is editable, and false
 otherwise.isCellEditable in interface javax.swing.table.TableModelrowIndex - the row index.columnIndex - the visible column index.true if editable, false otherwise.public boolean isColumnVisible(int columnIndex)
isColumnVisible in interface IstiColumnFiltercolumnIndex - the actual column index.public boolean isRowVisible(int rowIndex)
isRowVisible in interface IstiRowFilterrowIndex - the actual row index.public void removeTableModelListener(javax.swing.event.TableModelListener listener)
removeTableModelListener in interface javax.swing.table.TableModellistener - the listener.public void setColumnFilter(IstiColumnFilter columnFilter)
columnFilter - the column filter or null if none.public void setColumnVisible(int columnIndex,
                             boolean b)
columnIndex - the actual column index.b - true for visible, false otherwise.public void setRowFilter(IstiRowFilter rowFilter)
rowFilter - the row filter or null if none.public void setRowVisible(int rowIndex,
                          boolean b)
rowIndex - the actual row index.b - true for visible, false otherwise.public void setValueAt(java.lang.Object aValue,
                       int rowIndex,
                       int columnIndex)
setValueAt in interface javax.swing.table.TableModelaValue - the value (null permitted).rowIndex - the row index.columnIndex - the visible column index.public void tableChanged(javax.swing.event.TableModelEvent e)
tableChanged in interface javax.swing.event.TableModelListenere - the table model event.protected void updateColumnInfo()
protected void updateRowInfo()