Initial commit for Session
This commit is contained in:
@@ -2,6 +2,7 @@ package seng202.group9.Controller;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import javafx.application.Application;
|
import javafx.application.Application;
|
||||||
@@ -113,6 +114,12 @@ public class App extends Application
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Serialize the exiting session
|
||||||
|
*/
|
||||||
|
public void stop(){
|
||||||
|
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Replace Scene Content with fxml file code from oracle.
|
* Replace Scene Content with fxml file code from oracle.
|
||||||
* @param fxml
|
* @param fxml
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package seng202.group9.Controller;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by fwy13 on 16/09/16.
|
||||||
|
*/
|
||||||
|
public enum SceneCode {
|
||||||
|
INITIAL, AIRLINE_SUMMARY, AIRLINE_RAW_DATA, AIRPORT_SUMMARY, AIRPORT_RAW_DATA,
|
||||||
|
ROUTE_SUMMARY, ROUTE_RAW_DATA, FLIGHT_SUMMARY, FLIGHT_RAW_DATA
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package seng202.group9.Controller;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by fwy13 on 16/09/16.
|
||||||
|
*/
|
||||||
|
public class Session implements Serializable {
|
||||||
|
private SceneCode sceneDisplayed = SceneCode.INITIAL;
|
||||||
|
|
||||||
|
public void setSceneDisplayed(SceneCode sceneDisplayed) {
|
||||||
|
this.sceneDisplayed = sceneDisplayed;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user