system
Class JDControl

java.lang.Object
  |
  +--system.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.

Version:
1
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.
private  void addAttributeTag()
          Adds the entered attribute tag to the list of attribute tags.
private  void addClassTag()
          Adds the entered class tag to the list of class tags.
private  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.
private  void moveDownAttributeTag()
          Moves the selected attribute tag down one in the list of attribute tags.
private  void moveDownClassTag()
          Moves the selected class tag down one in the list of class tags.
private  void moveDownMethodTag()
          Moves the selected method tag down one in the list of method tags.
private  void moveUpAttributeTag()
          Moves the selected method tag up one in the list of method tags.
private  void moveUpClassTag()
          Moves the selected class tag up one in the list of class tags.
private  void moveUpMethodTag()
          Moves the selected method tag up one in the list of method tags.
private  void removeAttributeTag()
          Removes the selected attribute tag from the list of attribute tags.
private  void removeClassTag()
          Removes the selected class tag from the list of class tags.
private  void removeMethodTag()
          Removes the selected method tag from the list of method tags.
private  void selectAll()
          Selects all the files in the file list in gui.
private  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

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


selectNone

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


addClassTag

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


removeClassTag

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


moveUpClassTag

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


moveDownClassTag

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


addMethodTag

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


removeMethodTag

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


moveUpMethodTag

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


moveDownMethodTag

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


addAttributeTag

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


removeAttributeTag

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


moveUpAttributeTag

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


moveDownAttributeTag

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