system
Class JDControl

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

public class JDControl
extends Object
implements ActionListener

This class does all the internal work that the GUI asks for. It acts as the event listener for button pressing.

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

Field Summary
protected  JDFrame gui
          The associated GUI.
 
Constructor Summary
JDControl(JDFrame frame)
          Constructs a new JDControl and associates it with the passed GUI.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Gets called when an ActionEvent is generated.
protected  void addAttributeTag()
          Adds the entered attribute tag to the list of attribute tags.
protected  void addClassTag()
          Adds the entered class tag to the list of class tags.
protected  void addMethodTag()
          Adds the entered method tag to the list of method tags.
protected  void convert()
          Converts the comments in the selected files into Javadoc comments.
protected  void listFiles()
          Lists all the files in the input folder in the file list of gui.
protected  void moveDownAttributeTag()
          Moves the selected attribute tag down one in the list of attribute tags.
protected  void moveDownClassTag()
          Moves the selected class tag down one in the list of class tags.
protected  void moveDownMethodTag()
          Moves the selected method tag down one in the list of method tags.
protected  void moveUpAttributeTag()
          Moves the selected method tag up one in the list of method tags.
protected  void moveUpClassTag()
          Moves the selected class tag up one in the list of class tags.
protected  void moveUpMethodTag()
          Moves the selected method tag up one in the list of method tags.
protected  void removeAttributeTag()
          Removes the selected attribute tag from the list of attribute tags.
protected  void removeClassTag()
          Removes the selected class tag from the list of class tags.
protected  void removeMethodTag()
          Removes the selected method tag from the list of method tags.
protected  void selectAll()
          Selects all the files in the file list in gui.
protected  void selectNone()
          Deselects all the files in the file list in gui.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gui

protected JDFrame gui
The associated GUI.

Constructor Detail

JDControl

public JDControl(JDFrame frame)
Constructs a new JDControl and associates it with the passed GUI.

Parameters:
frame - The GUI to associate with.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Gets called when an ActionEvent is generated.

Specified by:
actionPerformed in interface ActionListener
Parameters:
event - The generated event.

listFiles

protected void listFiles()
Lists all the files in the input folder in the file list of gui.


convert

protected void convert()
Converts the comments in the selected files into Javadoc comments.


selectAll

protected void selectAll()
Selects all the files in the file list in gui.


selectNone

protected void selectNone()
Deselects all the files in the file list in gui.


addClassTag

protected void addClassTag()
Adds the entered class tag to the list of class tags.


removeClassTag

protected void removeClassTag()
Removes the selected class tag from the list of class tags.


moveUpClassTag

protected void moveUpClassTag()
Moves the selected class tag up one in the list of class tags.


moveDownClassTag

protected void moveDownClassTag()
Moves the selected class tag down one in the list of class tags.


addMethodTag

protected void addMethodTag()
Adds the entered method tag to the list of method tags.


removeMethodTag

protected void removeMethodTag()
Removes the selected method tag from the list of method tags.


moveUpMethodTag

protected void moveUpMethodTag()
Moves the selected method tag up one in the list of method tags.


moveDownMethodTag

protected void moveDownMethodTag()
Moves the selected method tag down one in the list of method tags.


addAttributeTag

protected void addAttributeTag()
Adds the entered attribute tag to the list of attribute tags.


removeAttributeTag

protected void removeAttributeTag()
Removes the selected attribute tag from the list of attribute tags.


moveUpAttributeTag

protected void moveUpAttributeTag()
Moves the selected method tag up one in the list of method tags.


moveDownAttributeTag

protected void moveDownAttributeTag()
Moves the selected attribute tag down one in the list of attribute tags.