system
Class WDYSControl

java.lang.Object
  extended bysystem.WDYSControl
All Implemented Interfaces:
ActionListener, EventListener

public class WDYSControl
extends Object
implements ActionListener

This class processes all the user events.

Version:
1
Author:
Berend "Kirk" Wouda

Field Summary
protected  WDYSFrame gui
          The GUI that this control class processes events for.
 
Constructor Summary
WDYSControl(WDYSFrame gui)
          Constructs a new control class that processes events from the passed GUI.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Processes an event caused by the GUI.
protected  void decrypt(String in, String out)
          Decrypts the input file into the output file.
protected  void encrypt(String in, String out)
          Encrypts the input file into the output file.
 void setInputFilename()
          Asks the user to browse and select the input file.
 void setOutputFilename()
          Asks the user to browse and select the input file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gui

protected WDYSFrame gui
The GUI that this control class processes events for.

Constructor Detail

WDYSControl

public WDYSControl(WDYSFrame gui)
Constructs a new control class that processes events from the passed GUI.

Parameters:
gui - The GUI this control class works for.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Processes an event caused by the GUI.

Specified by:
actionPerformed in interface ActionListener
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

decrypt

protected void decrypt(String in,
                       String out)
Decrypts the input file into the output file.

Parameters:
in - The input file.
out - The output file.

encrypt

protected void encrypt(String in,
                       String out)
Encrypts the input file into the output file.

Parameters:
in - The input file.
out - The output file.

setInputFilename

public void setInputFilename()
Asks the user to browse and select the input file.


setOutputFilename

public void setOutputFilename()
Asks the user to browse and select the input file.