All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class opg5.bioklient

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----opg5.bioklient

public class bioklient
extends Applet

Variable Index

 o clearbutton
 o operationpanel
 o resbutton
 o rowchoice
 o rowlabel
 o rowpanel
 o seatchoice
 o seatlabel
 o seatpanel
 o selectionpanel
 o serveroutput

Constructor Index

 o bioklient()

Method Index

 o contactServer(String)
This method takes care of actually talking to the server.
 o init()
This method initialises the applet.
 o reserver(String, String)
This is the method called when we want to make a reservation.

Variables

 o selectionpanel
 public Panel selectionpanel
 o rowpanel
 public Panel rowpanel
 o rowlabel
 public Label rowlabel
 o rowchoice
 public Choice rowchoice
 o seatpanel
 public Panel seatpanel
 o seatlabel
 public Label seatlabel
 o seatchoice
 public Choice seatchoice
 o serveroutput
 public TextArea serveroutput
 o operationpanel
 public Panel operationpanel
 o resbutton
 public Button resbutton
 o clearbutton
 public Button clearbutton

Constructors

 o bioklient
 public bioklient()

Methods

 o init
 public void init()
This method initialises the applet. It creates the GUI elements, puts them in their proper positions and finally sets up the interaction.

Overrides:
init in class Applet
 o reserver
 public String reserver(String row,
                        String seat)
This is the method called when we want to make a reservation. It is really stupid right now - it doesn't even remember what seats are taken!

Parameters:
row - the row number we want encoded as a string
seat - the seat number we want encoded as a string
Returns:
whatever the server returns
 o contactServer
 public String contactServer(String command)
This method takes care of actually talking to the server.

Parameters:
command - the String to be sent to the server
Returns:
whatever the server replies

All Packages  Class Hierarchy  This Package  Previous  Next  Index