Class ResultTableModel

java.lang.Object
javax.swing.table.AbstractTableModel
org.compiere.report.core.ResultTableModel
All Implemented Interfaces:
Serializable, TableModel

public class ResultTableModel extends AbstractTableModel
The TableModel for RModel information
Version:
$Id: ResultTableModel.java,v 1.2 2006/07/30 00:51:06 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • ResultTableModel

      public ResultTableModel(RModel reportModel)
      Create a Table Model from ReportModel
      Parameters:
      reportModel -
  • Method Details

    • getRowCount

      public int getRowCount()
      Get Row Count
      Returns:
      row count
    • getColumnCount

      public int getColumnCount()
      Get ColumnCount
      Returns:
      column count
    • getColumnName

      public String getColumnName(int columnIndex)
      Get Column Name
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
      Parameters:
      columnIndex -
      Returns:
      Column Name
    • getColumnClass

      public Class<?> getColumnClass(int columnIndex)
      Get Column Class
      Specified by:
      getColumnClass in interface TableModel
      Overrides:
      getColumnClass in class AbstractTableModel
      Parameters:
      columnIndex -
      Returns:
      Column Class
    • isCellEditable

      public boolean isCellEditable(int rowIndex, int columnIndex)
      Is Cell Editable
      Specified by:
      isCellEditable in interface TableModel
      Overrides:
      isCellEditable in class AbstractTableModel
      Parameters:
      rowIndex -
      columnIndex -
      Returns:
      true, if editable
    • getValueAt

      public Object getValueAt(int row, int col)
      Get Value At
      Parameters:
      row -
      col -
      Returns:
      value
    • setValueAt

      public void setValueAt(Object aValue, int row, int col)
      Set Value At
      Specified by:
      setValueAt in interface TableModel
      Overrides:
      setValueAt in class AbstractTableModel
      Parameters:
      aValue -
      row -
      col -
    • moveRow

      public void moveRow(int from, int to)
      Move Row
      Parameters:
      from - index
      to - index
    • getDataList

      protected ArrayList<ArrayList<Object>> getDataList()
      Get the ArrayList of ArrayLists that contains the table's data values.
      The outer array list is rows and the inner array list is the columns of a row.
      Returns:
      the ArrayList of ArrayLists containing the tables data values