|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.kosi.AbstractClient | +--de.kosi.gui.Client
The main application class.
ChangeLog:
$Log: Client.java,v $ Revision 1.37 2001/08/30 08:48:12 madmanmoon Waiting for hide of MainWindow realized with wait/notify now. Revision 1.35 2001/08/28 10:06:17 madmanmoon SplitFoyerView heisst jetzt FoyerView. Revision 1.34 2001/08/23 12:58:30 madmanmoon BiddingHistory works but PlayHistory doesn't. Revision 1.33 2001/07/24 12:45:18 madmanmoon MainWindow extends CWindow instead of CDialog now. Revision 1.32 2001/07/19 11:42:12 jiriki - Fixed Bug in TrickPane. - Started implementation of tournament. Revision 1.31 2001/07/16 12:58:15 jiriki (Probably) Fixed 440331. Revision 1.30 2001/07/11 10:06:01 jiriki Fixed Bug 440025. Revision 1.29 2001/07/04 12:34:29 uid30828 - Rubber score implemented - Inviting now working Revision 1.28 2001/07/02 17:37:18 jiriki - New Implementation of SSL Authorization - Implemented Client-Side Persistence Revision 1.27 2001/06/27 19:09:18 jiriki Resolved minor bugs. Updated docs.
Field Summary | |
static int |
STATUS_CREATE_ACCOUNT
Client Status while creating a new account |
static int |
STATUS_EXIT
Client Status while exiting. |
static int |
STATUS_LOGIN
Client Status while logging into the server |
static int |
STATUS_MAINFRAME
Client Status while showing the main window |
static int |
STATUS_RECONNECT
Client Status while trying to reconnect |
Constructor Summary | |
Client()
An empty constructor. |
Method Summary | |
void |
abortConnection(java.lang.String messageName)
Display a message and reconnect or exit. |
void |
disconnect()
Called by the server, when disconnected |
CResourceBundle |
getResourceBundle()
Gets this application's resourceBundle . |
void |
init(java.lang.String[] args)
Initializes the client. |
void |
invite(Table table,
User byUser,
int direction)
This method will be called if another user invites the user who registered this listener to take a seat at a specific table. |
void |
invite(Tournament tournament)
This method will be called if another user invites the user who registered this listener to take part in a specific tournament. |
static void |
main(java.lang.String[] args)
The application's entry point. |
void |
notify(Game game)
A call of this method notifies the user who registered this listener that he is currently playing the given game. |
void |
notify(Table table)
A call of this method notifies the user who registered this listener that he is currently sitting at the given table. |
void |
notify(Tournament tournament)
A call of this method notifies the user who registered this listener that he is currently taking part in the given tournament. |
void |
run()
Run the client. |
Methods inherited from class de.kosi.AbstractClient |
connect, disconnectFromServer, getFoyer, login, logout, ping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int STATUS_EXIT
public static final int STATUS_LOGIN
public static final int STATUS_MAINFRAME
public static final int STATUS_CREATE_ACCOUNT
public static final int STATUS_RECONNECT
Constructor Detail |
public Client()
Method Detail |
public static void main(java.lang.String[] args) throws java.lang.Exception
init
method.args
- the command line arguments.public void init(java.lang.String[] args)
Applet.init()
signature in future.args
- the argument strings.public void run()
public void disconnect()
disconnect
in class AbstractClient
de.kosi.model.FoyerListener
java.rmi.RemoteException
- If the remote call of this method
fails.public CResourceBundle getResourceBundle()
resourceBundle
.resourceBundle
field.public void invite(Table table, User byUser, int direction)
table
- The table the user gets invited to.public void invite(Tournament tournament)
tournament
- The tournament the user gets invited to.public void notify(Game game)
game
- The game the user is currently playing.public void notify(Table table)
table
- The table the user is currently sitting at.public void notify(Tournament tournament)
tournament
- The tournament the user is currently taking
part in.public void abortConnection(java.lang.String messageName)
messageName
- Name of the message displayed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |