Package fim

Class TrActView

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Runnable, Accessible, RootPaneContainer, WindowConstants

public class TrActView extends JFrame implements Runnable
Class for a transaction viewer.
Since:
2007.06.06
See Also:
  • Field Details

    • VERSION

      public static final String VERSION
      the version string
      See Also:
    • PROGRAM

      public static final int PROGRAM
      mode flag: the viewer is a stand-alone program
      See Also:
    • LOAD_ITEMS

      public static final int LOAD_ITEMS
      mode flag: add menu items for loading trees
      See Also:
    • SAVE_ITEMS

      public static final int SAVE_ITEMS
      mode flag: add menu items for saving trees
      See Also:
    • FILE_ITEMS

      public static final int FILE_ITEMS
      mode flag: add menu items for loading and saving trees
      See Also:
    • ALL_ITEMS

      public static final int ALL_ITEMS
      mode flag: add all menu items
      See Also:
  • Constructor Details

    • TrActView

      public TrActView(int mode)
      Create a transactions viewer.
      Parameters:
      mode - the mode flags
      Since:
      2007.06.06 (Christian Borgelt)
    • TrActView

      public TrActView(Component owner, int mode)
      Create a transactions viewer.
      Parameters:
      owner - the component that is to own this viewer
      mode - the mode flags
      Since:
      2007.06.06 (Christian Borgelt)
  • Method Details

    • run

      public void run()
      Create the user interface.

      Following the recommendations in the Java tutorial, the user interface is created in the "run" method, which is invoked from the event queue, in order to avoid problems with threads.

      Specified by:
      run in interface Runnable
      Since:
      2007.06.06 (Christian Borgelt)
    • getFormatDlg

      public dialog.FormatDialog getFormatDlg()
      Get the data format dialog (create if necessary).
      Returns:
      the data format dialog
      Since:
      2007.02.12 (Christian Borgelt)
    • setMessage

      public void setMessage(String msg)
      Set the message to display in the status line.
      Parameters:
      msg - the message to display
      Since:
      2007.06.06 (Christian Borgelt)
    • setTrActs

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

      public TrActBag getTrActs()
      Get the currently displayed set of transactions.
      Returns:
      the currently displayed set of transactions
      Since:
      2007.06.06 (Christian Borgelt)
    • loadTrActs

      public boolean loadTrActs(File file)
      Load a set of transactions.
      Parameters:
      file - the file to load the transactions from
      Returns:
      whether the file was successfully loaded
      Since:
      2007.06.06 (Christian Borgelt)
    • saveTrActs

      public boolean saveTrActs(File file)
      Save the displayed set of transactions.
      Parameters:
      file - the file to save the transactions to
      Returns:
      whether the file was successfully saved
      Since:
      2007.06.06 (Christian Borgelt)
    • main

      public static void main(String[] args)
      Main function for command line invocation.
      Parameters:
      args - the command line arguments
      Since:
      2004.07.06 (Christian Borgelt)