gr.teicrete.mta.midi.gui
Class SetupHandler

java.lang.Object
  extended by gr.teicrete.mta.midi.gui.SetupHandler
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, javax.swing.event.ChangeListener, javax.swing.event.ListSelectionListener

public class SetupHandler
extends java.lang.Object
implements java.awt.event.ActionListener, javax.swing.event.ListSelectionListener, javax.swing.event.ChangeListener

Event handler class for the events that are fired by the user from class SetupWindow.

Author:
zavi

Constructor Summary
SetupHandler(SetupWindow setupWindow, Mapper mapper)
          The constructor for the SetupHandler class
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          This method is called whenever an ActionEvent is fired from the GUI objects.
 void closeDevice()
          This method is called to close the midi device
 void stateChanged(javax.swing.event.ChangeEvent evt)
          This method is called whenever a ChangeEvent is fired from the GUI objects
 void valueChanged(javax.swing.event.ListSelectionEvent evt)
          This method is called whenever a ListSelectionEvent is fired from the GUI objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetupHandler

public SetupHandler(SetupWindow setupWindow,
                    Mapper mapper)
The constructor for the SetupHandler class

Parameters:
setupWindow - The instance of the SetupWindow class from where the events are fired.
mapper - The instance of the Mapper class that manipulates the mappings
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
This method is called whenever an ActionEvent is fired from the GUI objects.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent evt)
This method is called whenever a ListSelectionEvent is fired from the GUI objects.

Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent evt)
This method is called whenever a ChangeEvent is fired from the GUI objects

Specified by:
stateChanged in interface javax.swing.event.ChangeListener

closeDevice

public void closeDevice()
This method is called to close the midi device