Package rma.util

Class DBFFileViewer

All Implemented Interfaces:
AsciiSerializableConstants, ActionListener, ComponentListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, Modifiable

public class DBFFileViewer extends RmaJFrame implements AsciiSerializableConstants, ActionListener
See Also:
  • Constructor Details

    • DBFFileViewer

      public DBFFileViewer()
      Create a new DBFFileViewer object
  • Method Details

    • reloadFile

      public void reloadFile()
      Method Description
    • openFile

      public void openFile()
      Method Description
    • fillTable

      public void fillTable()
      Method Description
    • exitApp

      public void exitApp()
      Method Description
    • packFile

      public void packFile()
      Method Description
    • closeFile

      public void closeFile()
      Method Description
    • saveRecord

      public boolean saveRecord(double recNumber, String serializedTxt)
      save the serialized text to record recNumber
      Parameters:
      recNumber - the record number to save to
      serializedTxt - the serialized text to save
      Returns:
      true if the record was updated.
    • findObject

      public boolean findObject(String tag, String key)
      Finds an object in the database for the given tag and contains the given key. All fields are updated to the record that is found.
      Parameters:
      tag - Description
      key - Description
      Returns:
      Description
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Method Description
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      e - Description
    • getMenuItemname

      protected String getMenuItemname(String pathname)
      Return the itemname (abbreviated itemname if necessary) * to be shown in the file menu open item list. * A maximum of MAX_ITEM_LEN characters is used for the * itemname because we do not want to make the JMenuItem * entry too wide. *
      Parameters:
      pathname - Description
      Returns:
      The MenuItemname value
    • main

      public static void main(String[] args)
      The main program for the DBFFileViewer class
      Parameters:
      args - The command line arguments