Class TableDataSource

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

    public class TableDataSource
    extends javax.swing.table.AbstractTableModel
    Processor that has data for a table in a jasper report.
    See Also:
    Serialized Form
    • Field Summary

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

        listenerList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumnCount()  
      java.lang.String getColumnName​(int columnIndex)  
      java.lang.String[] getColumnNames()  
      int getRowCount()  
      java.lang.Object getValueAt​(int rowIndex, int columnIndex)  
      • Methods inherited from class javax.swing.table.AbstractTableModel

        addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
      • Methods inherited from class java.lang.Object

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

      • TableDataSource

        public TableDataSource​(PJsonObject table)
        Constructor.
        Parameters:
        table - the table data.
      • TableDataSource

        public TableDataSource​(java.lang.String[] columnNames,
                               java.lang.Object[][] data)
        Constructor.
        Parameters:
        columnNames - the names of each column in the table
        data - the table data.
    • Method Detail

      • getColumnCount

        public final int getColumnCount()
      • getColumnName

        public final java.lang.String getColumnName​(int columnIndex)
        Specified by:
        getColumnName in interface javax.swing.table.TableModel
        Overrides:
        getColumnName in class javax.swing.table.AbstractTableModel
      • getColumnNames

        public final java.lang.String[] getColumnNames()
      • getRowCount

        public final int getRowCount()
      • getValueAt

        public final java.lang.Object getValueAt​(int rowIndex,
                                                 int columnIndex)