| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectspellcast.client.Client
public class Client
The Client class for Spellcast. This is a Facade View. It accepts user input
 via property change events and forwards the corresponding network event to
 the ClientConnectionHandler. All network input is received by the
 ClientConnectionHandler and dispatched to this class via
 SpellcastView calls. If a gui has been installed then the gui
 is notified of all SpellcastView calls.
| Field Summary | |
|---|---|
static VersionDetails | 
programVersionDetails
 | 
| Constructor Summary | |
|---|---|
Client()
 | 
|
| Method Summary | |
|---|---|
 void | 
addMessage(java.lang.String message)
Add a message to the view.  | 
 void | 
addQuery(Question query)
Add a query to the view.  | 
 void | 
addWizard(IWizard w)
Add a wizard to the view.  | 
 void | 
connected(boolean success)
Indicate that the system has connected to a Spellcast server.  | 
 void | 
createGUI()
 | 
 void | 
disconnected()
Indicate that the system has disconnected from a Spellcast server.  | 
 void | 
propertyChange(java.beans.PropertyChangeEvent evt)
Listen for property changes from the GUI  | 
 void | 
removeWizard(IWizard w)
Remove a wizard from the view.  | 
 void | 
setGame(Game v)
Set the value of the current Game.  | 
 void | 
setID(Id v)
Set the value of id.  | 
 void | 
setVisible(boolean visible)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final VersionDetails programVersionDetails
| Constructor Detail | 
|---|
public Client()
| Method Detail | 
|---|
public void createGUI()
public void setVisible(boolean visible)
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic void addMessage(java.lang.String message)
addMessage in interface SpellcastViewpublic void addQuery(Question query)
addQuery in interface SpellcastViewpublic void addWizard(IWizard w)
addWizard in interface SpellcastViewpublic void removeWizard(IWizard w)
removeWizard in interface SpellcastViewpublic void connected(boolean success)
connected in interface SpellcastViewsuccess - indicates whether the connection was success (true), or
            unsuccessful (false)public void disconnected()
disconnected in interface SpellcastViewpublic void setID(Id v)
setID in interface SpellcastViewv - Value to assign to id.public void setGame(Game v)
setGame in interface SpellcastViewv - Value to assign to game.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||