Added in some comment for the functions and classes that didnt have them
This commit is contained in:
@@ -61,6 +61,10 @@ public class FlightRawDataController implements Initializable {
|
|||||||
final ObservableList<String> flightList = FXCollections.observableArrayList();
|
final ObservableList<String> flightList = FXCollections.observableArrayList();
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loads the Flight paths into the List View and waits for a mouse clicked event for which it will update the table
|
||||||
|
* to display the selected Flight paths points. Called from the MenuController.
|
||||||
|
*/
|
||||||
public void flightPathListView() {
|
public void flightPathListView() {
|
||||||
try {
|
try {
|
||||||
ArrayList<FlightPath> flightPaths = new ArrayList();
|
ArrayList<FlightPath> flightPaths = new ArrayList();
|
||||||
@@ -92,6 +96,9 @@ public class FlightRawDataController implements Initializable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function used to load the table for the Flight points initially from the MenuController
|
||||||
|
*/
|
||||||
public void loadTables() {
|
public void loadTables() {
|
||||||
flightIdCol.setCellValueFactory(new PropertyValueFactory<FlightPoint, String>("ID"));
|
flightIdCol.setCellValueFactory(new PropertyValueFactory<FlightPoint, String>("ID"));
|
||||||
flightNameCol.setCellValueFactory(new PropertyValueFactory<FlightPoint, String>("Name"));
|
flightNameCol.setCellValueFactory(new PropertyValueFactory<FlightPoint, String>("Name"));
|
||||||
@@ -113,11 +120,6 @@ public class FlightRawDataController implements Initializable {
|
|||||||
flightTableView.setItems(FXCollections.observableArrayList(flightPoints));
|
flightTableView.setItems(FXCollections.observableArrayList(flightPoints));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void updateTable(int pathID) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Controller for the Flights Summary Scene.
|
||||||
* Created by Liam Beckett on 13/09/2016.
|
* Created by Liam Beckett on 13/09/2016.
|
||||||
*/
|
*/
|
||||||
public class FlightSummaryController implements Initializable {
|
public class FlightSummaryController implements Initializable {
|
||||||
@@ -25,11 +26,13 @@ public class FlightSummaryController implements Initializable {
|
|||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
ListView<String> flightPathListView;
|
ListView<String> flightPathListView;
|
||||||
final ObservableList<String> flightList = FXCollections.observableArrayList();
|
final ObservableList<String> flightList = FXCollections.observableArrayList();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loads the Flight paths into the List View and is called from the MenuController.
|
||||||
|
*/
|
||||||
public void flightPathListView() {
|
public void flightPathListView() {
|
||||||
try {
|
try {
|
||||||
theDataSet = this.parent.getCurrentDataset();
|
theDataSet = this.parent.getCurrentDataset();
|
||||||
|
|||||||
Reference in New Issue
Block a user