suncertify.swingClient
Class SwingClient

java.lang.Object
  |
  +--suncertify.swingClient.SwingClient

public class SwingClient
extends java.lang.Object

The class that implements the Swing GUI for the Fly By Nights Reservations System.

Version:
1.0 08/14/1999

Constructor Summary
SwingClient(javax.swing.JFrame frameArg, java.lang.String host)
          Class Constructor.
 
Method Summary
protected  javax.swing.JTable clientDetTab(ClientTableModel myModel)
          The Method is used to create a Table that will represent the Client's Details.
protected  javax.swing.JPanel createBookingPane()
          Creates the Panel to contain the booking details.
protected  javax.swing.JPanel createCancellationPane()
          Creates the Panel to contain the Flights Cancellation.
protected  javax.swing.JPanel createFlightsPane()
          Creates the Panel to contain the Flights details.
protected  javax.swing.JPanel createReservationsPane()
          Creates the Panel to contain the Flights Reservation details.
protected  javax.swing.JTable fltsDetTab(FltsTableModel myModel)
          The Method is used to create a Table that will represent the Flights Details.
static void main(java.lang.String[] args)
          The main method that creates an instance of SwingClient.
protected  javax.swing.JTable reserDetTab(ReserTableModel myModel)
          The Method is used to create a Table that will represent the Flights Reservation Details.
protected  javax.swing.JTable scheDetTab(ScheTableModel myModel)
          The Method is used to create a Table that will represent the Flights Schedules Details.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingClient

public SwingClient(javax.swing.JFrame frameArg,
                   java.lang.String host)
Class Constructor.

The constructor creates a main panel which contains a TabbedPane. The TabbedPane contains 4 panes:

Method Detail

createBookingPane

protected javax.swing.JPanel createBookingPane()
Creates the Panel to contain the booking details. The Panel contains a heading,requirements panel, query button,flights info in a table,client's detail panel, and buttons to book/cancel ticket booking.
Returns:
JPanel The Panel to contain the Booking information.

createFlightsPane

protected javax.swing.JPanel createFlightsPane()
Creates the Panel to contain the Flights details. The Panel contains a heading,query criteria panel, Query and Cancel button,flights info in a table.
Returns:
JPanel The Panel to contain the Flights information.

createReservationsPane

protected javax.swing.JPanel createReservationsPane()
Creates the Panel to contain the Flights Reservation details. The Panel contains a heading,query Criteria panel, Query and Cancel buttons,flights info in a table
Returns:
JPanel The Panel to contain the Flights Reservation Details.

createCancellationPane

protected javax.swing.JPanel createCancellationPane()
Creates the Panel to contain the Flights Cancellation. The Panel contains a heading,query Criteria panel, Query and Cancel-Query buttons,Reservation info in a table, and a Reservation Cancellation Button.
Returns:
JPanel The Panel to contain the Flights Cancellation Option.

fltsDetTab

protected javax.swing.JTable fltsDetTab(FltsTableModel myModel)
The Method is used to create a Table that will represent the Flights Details. The Table returned has the following important properties:
Returns:
A Table with the above features.

scheDetTab

protected javax.swing.JTable scheDetTab(ScheTableModel myModel)
The Method is used to create a Table that will represent the Flights Schedules Details. The Table returned has the following important properties:
Returns:
A Table with the above features.

reserDetTab

protected javax.swing.JTable reserDetTab(ReserTableModel myModel)
The Method is used to create a Table that will represent the Flights Reservation Details. The Table returned has the following important properties:
Returns:
A Table with the above features.

clientDetTab

protected javax.swing.JTable clientDetTab(ClientTableModel myModel)
The Method is used to create a Table that will represent the Client's Details. The Table returned has the following important properties:
Returns:
A Table with the above features.

main

public static void main(java.lang.String[] args)
The main method that creates an instance of SwingClient.