|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.arcade.VoogaGUI
public class VoogaGUI
View for the Class's VOOGA program. Contains constructor to build full pane with components and methods to show messages.
Constructor Summary | |
---|---|
VoogaGUI()
The "controller" class for the arcade. |
Method Summary | |
---|---|
void |
addArcadeEventListener(IArcadeEventListener listener)
This method is used to add a listener to all of the arcade's events. |
boolean |
canGameRun()
Returns a boolean saying whether a game can run or not. |
int |
createNewFrame(java.lang.String frameTitle)
This method will open a new window with the given title and place the component in the center panel with the given tab title. |
void |
fireArcadeEvent(ArcadeEvent e)
Allows others to fire an arcade event. |
ArcadeFrame |
getFrame(int frameID)
Get the ArcadeFrame given its ID. |
VoogaUser |
getUser()
Returns the current user |
void |
hideArcade()
This method is called to log a user out. |
void |
removeFrame(int ID)
This method removes the frame with the given title. |
void |
setGameRunningStatus(boolean isGameRunning)
Used to store whether or not a game is running. |
void |
showArcade(VoogaUser user)
This method is called after a user is verified. |
void |
showErrorMessage(java.lang.String s)
This method will show the error message in a popup box to the user. |
java.lang.String |
showInputDialog(java.lang.String message)
This method will show a popup box where you can propt a user for input. |
void |
showMessage(java.lang.String s)
This method will show the message in a popup box to the user. |
void |
startLoginProcess()
Fires the event to start the login process |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VoogaGUI()
Method Detail |
---|
public void addArcadeEventListener(IArcadeEventListener listener)
IVoogaGUI
addArcadeEventListener
in interface IVoogaGUI
listener
- is a listener which extends the IArcadeListener interfacepublic void fireArcadeEvent(ArcadeEvent e)
IVoogaGUI
fireArcadeEvent
in interface IVoogaGUI
public void showArcade(VoogaUser user)
IVoogaGUI
showArcade
in interface IVoogaGUI
public void hideArcade()
IVoogaGUI
hideArcade
in interface IVoogaGUI
public int createNewFrame(java.lang.String frameTitle)
IVoogaGUI
createNewFrame
in interface IVoogaGUI
public void removeFrame(int ID)
IVoogaGUI
removeFrame
in interface IVoogaGUI
public void showMessage(java.lang.String s)
IVoogaGUI
showMessage
in interface IVoogaGUI
public void showErrorMessage(java.lang.String s)
IVoogaGUI
showErrorMessage
in interface IVoogaGUI
public ArcadeFrame getFrame(int frameID)
IVoogaGUI
getFrame
in interface IVoogaGUI
public java.lang.String showInputDialog(java.lang.String message)
IVoogaGUI
showInputDialog
in interface IVoogaGUI
public void startLoginProcess()
public void setGameRunningStatus(boolean isGameRunning)
isGameRunning
- public boolean canGameRun()
public VoogaUser getUser()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |