Class VTable
java.lang.Object
javax.swing.table.AbstractTableModel
org.kopi.vkopi.lib.ui.swing.report.VTable
- All Implemented Interfaces:
Serializable,TableModel
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of columns managed by the data source object.getColumnName(int column) Returns the name of a column.intReturns the number of records managed by the data source object.getValueAt(int rowIndex, int columnIndex) Returns an attribute value for a cell.booleanisCellEditable(int row, int column) Returns always false since report cells are never editable.Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
-
Constructor Details
-
VTable
public VTable(org.kopi.galite.visual.report.MReport model)
-
-
Method Details
-
getRowCount
public int getRowCount()Returns the number of records managed by the data source object.- Returns:
- the number or rows in the model
-
getColumnCount
public int getColumnCount()Returns the number of columns managed by the data source object.- Returns:
- the number or columns to display
-
getValueAt
Returns an attribute value for a cell.- Parameters:
rowIndex- the index of the row whose value is to be looked upcolumnIndex- the index of the column whose value is to be looked up (column of the model)- Returns:
- the value Object at the specified cell
-
isCellEditable
public boolean isCellEditable(int row, int column) Returns always false since report cells are never editable.- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel- Parameters:
row- the index of the row whose value is to be looked upcolumn- the index of the column whose value is to be looked up- Returns:
- true if the cell is editable.
-
getColumnName
Returns the name of a column. Note, this name does not need to be unique.- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel- Parameters:
column- the index of the column- Returns:
- the name of the column
-