Class ControllerConfigListener

java.lang.Object
  |
  +--ControllerConfigListener

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


Field Summary
protected  int array_mode
           
protected  ControllerConfigCommand controller_config_cmd
           
protected  int derived_size_x
           
protected  int derived_size_y
           
private  java.lang.String message
           
private  ControllerConfigDialog parent
           
private  int selectedIndex
           
 
Constructor Summary
ControllerConfigListener(ControllerConfigDialog parent)
          Class constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          This method handles all the Listener events.
 void itemStateChanged(java.awt.event.ItemEvent ie)
          This method handles item selection events from the Contoller Config Dialog window.
private  void set_selected_configuration(int selected)
          This method sets selected configuration to apply.
 void stateChanged(javax.swing.event.ChangeEvent ce)
          Controls the switching of the "tabbed panes".
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

controller_config_cmd

protected ControllerConfigCommand controller_config_cmd

derived_size_x

protected int derived_size_x

derived_size_y

protected int derived_size_y

array_mode

protected int array_mode

parent

private ControllerConfigDialog parent

selectedIndex

private int selectedIndex

message

private java.lang.String message
Constructor Detail

ControllerConfigListener

public ControllerConfigListener(ControllerConfigDialog parent)
Class constructor.
Parameters:
parent - The dialog window that this class listens for.
Method Detail

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent ie)
This method handles item selection events from the Contoller Config Dialog window.
Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Parameters:
ie - The selection event.
See Also:
ItemListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
This method handles all the Listener events.
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
evt - The event.
See Also:
ActionListener

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent ce)
Controls the switching of the "tabbed panes". This method overides the same method in the ChangeListener interface.
Specified by:
stateChanged in interface javax.swing.event.ChangeListener
See Also:
ChangeListener

set_selected_configuration

private void set_selected_configuration(int selected)
                                 throws java.lang.NumberFormatException,
                                        java.lang.Exception
This method sets selected configuration to apply. It also sets all necessary textfields.
Parameters:
selected_config - The JTabbedPane index of the configuration to apply.
Throws:
java.lang.NumberFormatException - If any textfield cannot be parsed.
java.lang.Exception - If any textfield contains invalid data.
See Also:
JTabbedPane