suncertify.client
Class Client

java.lang.Object
  |
  +--suncertify.client.Client
All Implemented Interfaces:
ConfigChangeListener

public class Client
extends java.lang.Object
implements ConfigChangeListener

Client class represents a client that can access data base. It can work in two modes local and remote. The GUI is profiled according to the mode sepecified in constructor. It implementes ConfigChangeListener so it can handle the situation in which the program configuration changes

See Also:
QueryInterfaceWrapper, ConfigChangeListener

Field Summary
static int ALONE
          client mode ALONE
static int CLIENT
          client mode remote
 
Constructor Summary
Client(int mode)
          Constructor gets one parameter - the mode in which client have to work It creates frame, sets all requested componentes, display it and creates QueryInterfaceWrapper object for performing opertations on database.
 
Method Summary
 void configChanged()
          Method required by the ConfigCahngeListener interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALONE

public static final int ALONE
client mode ALONE

See Also:
Constant Field Values

CLIENT

public static final int CLIENT
client mode remote

See Also:
Constant Field Values
Constructor Detail

Client

public Client(int mode)
Constructor gets one parameter - the mode in which client have to work It creates frame, sets all requested componentes, display it and creates QueryInterfaceWrapper object for performing opertations on database.

Parameters:
mode - the mode in which client has to work
See Also:
ALONE, CLIENT, QueryInterfaceWrapper
Method Detail

configChanged

public void configChanged()
Method required by the ConfigCahngeListener interface. When configuration change, the record modification buttons are disable db connection is closed, new connection is make and if succeed the buttons are enbabled /connectino mode does not chanange - it remains local or remote as set in constructor/

Specified by:
configChanged in interface ConfigChangeListener
See Also:
ConfigChangeListener.configChanged()