system
Class GPLdControl

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

public class GPLdControl
extends Object
implements ActionListener

This class provides the coupling between the "see" and the "do".

Since:
1.00
Version:
1.00
Author:
Berend "Kirk" Wouda

Field Summary
protected  GPLdFrame gui
          The GUI this control class is coupled with.
 
Constructor Summary
GPLdControl(GPLdFrame gui)
          Constructs a new control class.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Gets called when the user interacts with the GUI.
protected  void GPL(File folder)
          This method does the actual work, it adds the correctly formatted GPL to the source files.
protected  void start()
          Starts the adding process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gui

protected GPLdFrame gui
The GUI this control class is coupled with.

Constructor Detail

GPLdControl

public GPLdControl(GPLdFrame gui)
Constructs a new control class.

Parameters:
gui - The GUI this contorl class is coupled with.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Gets called when the user interacts with the GUI.

Specified by:
actionPerformed in interface ActionListener
Parameters:
event - The ActionEvent object for this event.
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

start

protected void start()
Starts the adding process.


GPL

protected void GPL(File folder)
            throws IOException,
                   kirk.io.WriteNotAllowedException

This method does the actual work, it adds the correctly formatted GPL to the source files. Of course, FileLineList does all the actual work :^P

This method is recursive.

Precondition is that the passed File exists, and is a folder.

Parameters:
folder - The folder to go through.
Throws:
IOException - When IO stuff goes wrong.
kirk.io.WriteNotAllowedException - When writing is not allowed.