tp.controllers
Class ActionControl

java.lang.Object
  extended by tp.controllers.ActionControl
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ItemListener, java.util.EventListener, javax.swing.event.ChangeListener
Direct Known Subclasses:
LoaderControl, MenuControl, ResultsControl, SaveControl, SettingsControl

public abstract class ActionControl
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.ItemListener, javax.swing.event.ChangeListener

Abstract class to process events by the application controller. Component application controllers inherit properties of this class and process events, which belong to them.


Field Summary
protected  java.util.EventObject event
           
 
Constructor Summary
ActionControl()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          A method, which is called, if some event happens
 void invokeMethod(java.lang.String action)
          Calls a method, which name is given as a parameter
 void itemStateChanged(java.awt.event.ItemEvent evt)
          A method, which is called, if some checkbox is changed
 void stateChanged(javax.swing.event.ChangeEvent evt)
          A method, which is called, if a value of some spinner is changed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

event

protected java.util.EventObject event
Constructor Detail

ActionControl

public ActionControl()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
A method, which is called, if some event happens

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
evt - object of the event

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent evt)
A method, which is called, if some checkbox is changed

Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Parameters:
evt - object of the event

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent evt)
A method, which is called, if a value of some spinner is changed

Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
evt - object of the event

invokeMethod

public void invokeMethod(java.lang.String action)
Calls a method, which name is given as a parameter

Parameters:
action - name of the method