Class EncryptionTool

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

public class EncryptionTool extends JFrame implements Tool
This provides a GUI for encrypting and decrypting XMLControls.
Version:
1.0
Author:
Douglas Brown
See Also:
  • Constructor Details

    • EncryptionTool

      public EncryptionTool()
      Constructs a blank EncryptionTool.
    • EncryptionTool

      public EncryptionTool(String fileName)
      Constructs a EncryptionTool and opens the specified xml file.
      Parameters:
      fileName - the name of the xml file
  • Method Details

    • getTool

      public static EncryptionTool getTool()
      Gets the shared EncryptionTool.
      Returns:
      the shared EncryptionTool
    • open

      public String open(String fileName)
      Opens an xml file specified by name.
      Parameters:
      fileName - the file name
      Returns:
      the file name, if successfully opened
    • send

      public void send(Job job, Tool replyTo)
      Sends a job to this tool and specifies a tool to reply to.
      Specified by:
      send in interface Tool
      Parameters:
      job - the Job
      replyTo - the tool to notify when the job is complete (may be null)
    • refreshGUI

      public void refreshGUI()
      Refreshes the GUI.
    • main

      public static void main(String[] args)
      Main entry point when used as application.
      Parameters:
      args - ignored