Class JTServerAction

java.lang.Object
  extended byJTServerAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class JTServerAction
extends java.lang.Object
implements java.awt.event.ActionListener

JTServerAction - Menu and button action listener for JTServerConnect.

 SerialPort - serial connections for Java
 Copyright (C) 2005  Martin C Gregorie
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 

Contact Martin Gregorie at martin@gregorie.org.
Read the GNU General Public License.


Constructor Summary
JTServerAction(JTerm theApp, JTServerConnect display, int type, int debug)
          ActionListener constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Handle all actions associated with menu items and action buttons.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTServerAction

public JTServerAction(JTerm theApp,
                      JTServerConnect display,
                      int type,
                      int debug)
ActionListener constructor. A separate instance is created for each menu item and action button defined in the window. The type set by the constructor defines the action to be taken when the controlling object is clicked.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Handle all actions associated with menu items and action buttons. The ActionEvent is ignored; the private type variable set by the constructor selects the action to be taken when the menu item is selected or the action button is clicked.

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