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 voidchangeScene()Change the scenevoidmain(String[] args)voidonDisconnection()Used for disconnectionvoidreStart()Restartvoidrun()Run client's GUIvoidstart(Stage primaryStage)Start GUIvoidupdate(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:
startin 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:
onDisconnectionin interfaceAppInterface
-
-