Class VTable

java.lang.Object
javax.swing.table.AbstractTableModel
org.kopi.vkopi.lib.ui.swing.report.VTable
All Implemented Interfaces:
Serializable, TableModel

public class VTable extends AbstractTableModel
See Also:
  • 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

      public 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 up
      columnIndex - 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:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class AbstractTableModel
      Parameters:
      row - the index of the row whose value is to be looked up
      column - the index of the column whose value is to be looked up
      Returns:
      true if the cell is editable.
    • getColumnName

      public String getColumnName(int column)
      Returns the name of a column. Note, this name does not need to be unique.
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
      Parameters:
      column - the index of the column
      Returns:
      the name of the column