Class VTable
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.kopi.vkopi.lib.ui.swing.report.VTable
-
- All Implemented Interfaces:
java.io.Serializable,javax.swing.table.TableModel
public class VTable extends javax.swing.table.AbstractTableModel- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VTable(org.kopi.galite.visual.report.MReport model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnCount()Returns the number of columns managed by the data source object.java.lang.StringgetColumnName(int column)Returns the name of a column.intgetRowCount()Returns the number of records managed by the data source object.java.lang.ObjectgetValueAt(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
-
-
-
-
Method Detail
-
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
public java.lang.Object getValueAt(int rowIndex, int columnIndex)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 interfacejavax.swing.table.TableModel- Overrides:
isCellEditablein classjavax.swing.table.AbstractTableModel- 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
public java.lang.String getColumnName(int column)
Returns the name of a column. Note, this name does not need to be unique.- Specified by:
getColumnNamein interfacejavax.swing.table.TableModel- Overrides:
getColumnNamein classjavax.swing.table.AbstractTableModel- Parameters:
column- the index of the column- Returns:
- the name of the column
-
-