|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
javax.swing.JApplet
org.jogre.client.awt.JogreClientApplet
Abstract JOGRE applet class. This must be extended to create a Swing applet.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JApplet |
JApplet.AccessibleJApplet |
| Nested classes inherited from class java.applet.Applet |
Applet.AccessibleApplet |
| Nested classes inherited from class java.awt.Panel |
Panel.AccessibleAWTPanel |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class javax.swing.JApplet |
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JogreClientApplet()
Constructor for a client frame. |
|
| Method Summary | |
void |
connectOK(ClientConnectionThread conn)
Method which is called when a client connects successfully. |
ChatPrivateDialog |
getChatPrivateDialog(String usernameTo,
ClientConnectionThread conn)
Method for returning the correct chat dialog. |
abstract JogreTableFrame |
getJogreTableFrame(TableConnectionThread conn)
This must be overwritten to get a handle on the correct table frame. |
void |
getPropertyDialog(ClientConnectionThread conn)
Delegate method for popping up a game property dialog box |
void |
getRulesDialog()
Delegate method for creating the rules dialog. |
void |
getUserDialog(User user)
Delegate method for create a user dialog. |
void |
init()
Initilise the applet. |
void |
receiveGameMessage(XMLElement message)
Delegate method for receiving a game message. |
void |
receiveTableMessage(XMLElement message)
Delegate method for receiving a table message. |
void |
setUITitle(String title)
Method for setting a title. |
void |
stop()
Stop the applet properly. |
void |
update(Observable o,
Object arg)
Delegate method for updating the GUI applet. |
| Methods inherited from class javax.swing.JApplet |
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
| Methods inherited from class java.applet.Applet |
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start |
| Methods inherited from class java.awt.Panel |
addNotify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JogreClientApplet()
| Method Detail |
public abstract JogreTableFrame getJogreTableFrame(TableConnectionThread conn)
getJogreTableFrame in interface IJogreClientGUIconn - Connection to server.
public void init()
Applet.init()public void connectOK(ClientConnectionThread conn)
connectOK in interface IJogreClientGUIconn - Client connection thread.public void setUITitle(String title)
setUITitle in interface IJogreClientGUItitle - Title to set.IJogreClientGUI.setUITitle(java.lang.String)
public ChatPrivateDialog getChatPrivateDialog(String usernameTo,
ClientConnectionThread conn)
getChatPrivateDialog in interface IJogreClientGUIusernameTo - Username to talk to.conn - Connection to the server.
IJogreClientGUI.getChatPrivateDialog(java.lang.String, org.jogre.client.ClientConnectionThread)public void getPropertyDialog(ClientConnectionThread conn)
getPropertyDialog in interface IJogreClientGUIconn - Connection to server.org.jogre.client.awt.IJogreClientGUI#getPropertyDialog(org.jogre.client.ClientConnectionThread, org.jogre.common.util.GameProperties)public void getUserDialog(User user)
getUserDialog in interface IJogreClientGUIIJogreClientGUI.getUserDialog(org.jogre.common.User)public void getRulesDialog()
getRulesDialog in interface IJogreClientGUIpublic void receiveGameMessage(XMLElement message)
receiveGameMessage in interface IClientmessage - Game message from serverIClient.receiveGameMessage(nanoxml.XMLElement)public void receiveTableMessage(XMLElement message)
receiveTableMessage in interface ITablemessage - Message from server.ITable.receiveTableMessage(nanoxml.XMLElement)
public void update(Observable o,
Object arg)
update in interface ObserverObserver.update(java.util.Observable, java.lang.Object)public void stop()
Applet.stop()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||