com.metamatrix.toolbox.ui.widget.table
Interface EnhancedTableModel

All Superinterfaces:
javax.swing.table.TableModel
All Known Implementing Classes:
DefaultTableModel, EntitlementsTableModel, ExtensionSourcesTableModel, GroupsAccumulatorPanel.GroupsTableModel, QueryTableModel, SessionTableModel, TransactionTableModel

public interface EnhancedTableModel
extends javax.swing.table.TableModel

This is the type of TableModel required by a TableWidget.

Since:
Golden Gate
Version:
Golden Gate
Author:
John P. A. Verhaeg

Method Summary
 java.util.Vector getDataVector()
           
 boolean isColumnEditable(int columnIndex)
           
 boolean isEditable()
           
 boolean isRowEditable(int rowIndex)
           
 void setCellEditable(int rowIndex, int columnIndex, boolean isCellEditable)
          Sets the specified cell to the specified editability.
 void setColumnEditable(int columnIndex, boolean isEditable)
          Sets all cells within the specified column to the specified editability.
 void setColumnIdentifiers(java.util.Vector columnNames)
           
 void setEditable(boolean isEditable)
          Sets all cells within the model to the specified editability.
 void setRowEditable(int rowIndex, boolean isEditable)
          Sets all cells within the specified row to the specified editability.
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

getDataVector

java.util.Vector getDataVector()
Since:
Golden Gate

isColumnEditable

boolean isColumnEditable(int columnIndex)
Parameters:
columnIndex - The column's index
Returns:
True if any cell in the specified column is editable
Since:
Golden Gate

isEditable

boolean isEditable()
Returns:
True if any cell within the model is editable.
Since:
Golden Gate

isRowEditable

boolean isRowEditable(int rowIndex)
Parameters:
rowIndex - The cell's row index
Returns:
True if any cell in the specified row is editable
Since:
Golden Gate

setCellEditable

void setCellEditable(int rowIndex,
                     int columnIndex,
                     boolean isCellEditable)
Sets the specified cell to the specified editability.

Parameters:
rowIndex - The cell's row index
columnIndex - The cell's column index
isEditable - True if the cell is to be set to editable
Since:
Golden Gate

setColumnEditable

void setColumnEditable(int columnIndex,
                       boolean isEditable)
Sets all cells within the specified column to the specified editability.

Parameters:
columnIndex - The column's index
isEditable - True if the column's cells are to be set to editable
Since:
Golden Gate

setColumnIdentifiers

void setColumnIdentifiers(java.util.Vector columnNames)
Since:
Golden Gate

setEditable

void setEditable(boolean isEditable)
Sets all cells within the model to the specified editability.

Parameters:
isEditable - True if the cells are to be set to editable
Since:
Golden Gate

setRowEditable

void setRowEditable(int rowIndex,
                    boolean isEditable)
Sets all cells within the specified row to the specified editability.

Parameters:
rowIndex - The row's index
isEditable - True if the row's cells are to be set to editable
Since:
Golden Gate


Copyright © 2009. All Rights Reserved.