jwo.vfc.hubclient
Class HubSend

java.lang.Object
  |
  +--jwo.vfc.hubclient.HubSend
All Implemented Interfaces:
ActionListener, EventListener, KeyListener

public class HubSend
extends Object
implements ActionListener, KeyListener

Establishes a connection with the VFC hub and submits a request.

Version:
1.2.3, 27th November, 1999
Author:
Jo Wood

Constructor Summary
HubSend(String[] request)
          Initialises the Hub client and either submits a given request or creates a graphical front end if no request supplied.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Checks for button press and submits the appropriate message to the server.
 void keyPressed(KeyEvent e)
          Submits request if the 'return' key is pressed.
 void keyReleased(KeyEvent e)
          Responds to a key being released, but does nothing in this case.
 void keyTyped(KeyEvent e)
          Responds to a key being typed, but does nothing in this case.
static void main(String[] argv)
          Creates a client and reads the configuration file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HubSend

public HubSend(String[] request)
Initialises the Hub client and either submits a given request or creates a graphical front end if no request supplied.

Parameters:
request - Command line request for hub.
Method Detail

main

public static void main(String[] argv)
Creates a client and reads the configuration file

Parameters:
argv - Command line request to pass to the hub.

actionPerformed

public void actionPerformed(ActionEvent event)
Checks for button press and submits the appropriate message to the server. Implements interface method.

Specified by:
actionPerformed in interface ActionListener
Parameters:
event - Action event (button press).

keyPressed

public void keyPressed(KeyEvent e)
Submits request if the 'return' key is pressed.

Specified by:
keyPressed in interface KeyListener
Parameters:
e - Key event storing key pressed.

keyTyped

public void keyTyped(KeyEvent e)
Responds to a key being typed, but does nothing in this case.

Specified by:
keyTyped in interface KeyListener
Parameters:
e - Key event storing key typed.

keyReleased

public void keyReleased(KeyEvent e)
Responds to a key being released, but does nothing in this case.

Specified by:
keyReleased in interface KeyListener
Parameters:
e - Key event storing key released.