Class ResultTableModel

  • All Implemented Interfaces:
    Serializable, TableModel

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

      • ResultTableModel

        public ResultTableModel​(RModel reportModel)
        Create a JTable Model from ReportModel
        Parameters:
        reportModel -
    • Method Detail

      • getRowCount

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

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

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

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

        protected ArrayList<ArrayList<Object>> getDataList()
        Returns the ArrayList of ArrayLists that contains the table's data values. The ArrayLists contained in the outer vector are each a single row of values.
        Returns:
        the ArrayList of ArrayLists containing the tables data values author Teo Sarca [ 1734327 ]