Package it.polimi.ingsw.view.GUI
Class AppGUI
- java.lang.Object
-
- javafx.application.Application
-
- it.polimi.ingsw.view.GUI.AppGUI
-
- All Implemented Interfaces:
Observer<ArrayList<Command>>
,AppInterface
,Runnable
public class AppGUI extends Application implements Runnable, Observer<ArrayList<Command>>, AppInterface
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javafx.application.Application
Application.Parameters
-
-
Field Summary
-
Fields inherited from class javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA
-
-
Constructor Summary
Constructors Constructor Description AppGUI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changeScene()
Change the scenevoid
main(String[] args)
void
onDisconnection()
Used for disconnectionvoid
reStart()
Restartvoid
run()
Run client's GUIvoid
start(Stage primaryStage)
Start GUIvoid
update(ArrayList<Command> message)
Update messages and/or commands-
Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
-
-
-
Method Detail
-
main
public void main(String[] args)
-
start
public void start(Stage primaryStage) throws Exception
Start GUI- Specified by:
start
in classApplication
- Parameters:
primaryStage
- Client's window- Throws:
Exception
- init fail
-
changeScene
public void changeScene()
Change the scene
-
reStart
public void reStart()
Restart
-
onDisconnection
public void onDisconnection()
Used for disconnection- Specified by:
onDisconnection
in interfaceAppInterface
-
-