Class VTable

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.table.TableModel

    public class VTable
    extends javax.swing.table.AbstractTableModel
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.table.AbstractTableModel

        listenerList
    • 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
      int getColumnCount()
      Returns the number of columns managed by the data source object.
      java.lang.String getColumnName​(int column)
      Returns the name of a column.
      int getRowCount()
      Returns the number of records managed by the data source object.
      java.lang.Object getValueAt​(int rowIndex, int columnIndex)
      Returns an attribute value for a cell.
      boolean isCellEditable​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VTable

        public VTable​(org.kopi.galite.visual.report.MReport model)
    • 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 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 javax.swing.table.TableModel
        Overrides:
        isCellEditable in class javax.swing.table.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 java.lang.String getColumnName​(int column)
        Returns the name of a column. Note, this name does not need to be unique.
        Specified by:
        getColumnName in interface javax.swing.table.TableModel
        Overrides:
        getColumnName in class javax.swing.table.AbstractTableModel
        Parameters:
        column - the index of the column
        Returns:
        the name of the column