Package fim

Class TrActTable

All Implemented Interfaces:
Serializable, TableModel

public class TrActTable extends AbstractTableModel implements Serializable
Class for a tabular representation of a set of transactions.
Since:
2007.06.06
See Also:
  • Field Details

    • taset

      protected TrActBag taset
      the set of transactions
  • Constructor Details

    • TrActTable

      public TrActTable(TrActBag taset)
      Create a transaction table.
      Parameters:
      taset - the set of transactions
      Since:
      2007.06.06 (Christian Borgelt)
  • Method Details

    • getTrActs

      public TrActBag getTrActs()
      Get the transactions.
      Returns:
      the transaction set
      Since:
      2007.06.06 (Christian Borgelt)
    • setTrActs

      public void setTrActs(TrActBag taset)
      Set the transactions.
      Parameters:
      taset - the new transaction set
      Since:
      2007.06.06 (Christian Borgelt)
    • getRowCount

      public int getRowCount()
      Get the number of rows of the table.
      Specified by:
      getRowCount in interface TableModel
      Returns:
      the number of rows of the table
      Since:
      2007.06.06 (Christian Borgelt)
    • getColumnCount

      public int getColumnCount()
      Get the number of columns of the table.
      Specified by:
      getColumnCount in interface TableModel
      Returns:
      the number of columns of the table
      Since:
      2007.06.06 (Christian Borgelt)
    • getColumnName

      public String getColumnName(int i)
      Get the name of a column.
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
      Parameters:
      i - the index of the column
      Returns:
      the name of the column with index i
      Since:
      2005.07.06 (Christian Borgelt)
    • getValueAt

      public Object getValueAt(int row, int col)
      Get the value in a table cell.
      Specified by:
      getValueAt in interface TableModel
      Parameters:
      row - the row index of the table cell
      col - the column index of the table cell
      Returns:
      an object representing the contents of the table cell
      Since:
      2007.06.06 (Christian Borgelt)
    • main

      public static void main(String[] args)
      Main function for testing some basic functionality.

      It is tried to parse the file that is given as the first command line argument as a set of transactions.

      Parameters:
      args - the command line arguments
      Since:
      2005.07.06 (Christian Borgelt)