Modularize all components
This commit is contained in:
@@ -1,10 +1,28 @@
|
||||
package app;
|
||||
|
||||
/**
|
||||
* MainController
|
||||
* Might not be needed. Not sure yet.
|
||||
*/
|
||||
public class MainController {
|
||||
import java.net.URL;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
|
||||
import app.model.Model;
|
||||
import javafx.fxml.Initializable;
|
||||
|
||||
public class MainController implements Initializable {
|
||||
|
||||
private Model model;
|
||||
|
||||
/**
|
||||
* Links the controller to the global model
|
||||
* @param model The model to be linked
|
||||
*/
|
||||
public void setModel(Model model) {
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes and customizes the properties of the javafx objects.
|
||||
*/
|
||||
@Override
|
||||
public void initialize(URL url, ResourceBundle resourceBundle) {
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package app.controllers;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.TreeView;
|
||||
|
||||
public class FileTreeController {
|
||||
|
||||
}
|
||||
34
src/main/java/app/controllers/FiletreeController.java
Normal file
34
src/main/java/app/controllers/FiletreeController.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package app.controllers;
|
||||
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.TreeView;
|
||||
|
||||
import java.net.URL;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import app.model.Model;
|
||||
import javafx.fxml.Initializable;
|
||||
|
||||
public class FiletreeController implements Initializable {
|
||||
|
||||
// TODO: Add component references, and event handlers
|
||||
|
||||
private Model model;
|
||||
|
||||
/**
|
||||
* Links the controller to the global model
|
||||
* @param model The model to be linked
|
||||
*/
|
||||
public void setModel(Model model) {
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes and customizes the properties of the javafx objects.
|
||||
*/
|
||||
@Override
|
||||
public void initialize(URL url, ResourceBundle resourceBundle) {
|
||||
// TODO: implement
|
||||
}
|
||||
|
||||
}
|
||||
31
src/main/java/app/controllers/MenubarController.java
Normal file
31
src/main/java/app/controllers/MenubarController.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package app.controllers;
|
||||
|
||||
import java.net.URL;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import app.model.Model;
|
||||
import javafx.fxml.Initializable;
|
||||
|
||||
public class MenubarController implements Initializable {
|
||||
|
||||
// TODO: Add component references, and event handlers
|
||||
|
||||
private Model model;
|
||||
|
||||
/**
|
||||
* Links the controller to the global model
|
||||
* @param model The model to be linked
|
||||
*/
|
||||
public void setModel(Model model) {
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes and customizes the properties of the javafx objects.
|
||||
*/
|
||||
@Override
|
||||
public void initialize(URL url, ResourceBundle resourceBundle) {
|
||||
// TODO: implement
|
||||
}
|
||||
|
||||
}
|
||||
31
src/main/java/app/controllers/ModelineController.java
Normal file
31
src/main/java/app/controllers/ModelineController.java
Normal file
@@ -0,0 +1,31 @@
|
||||
package app.controllers;
|
||||
|
||||
import java.net.URL;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
import app.model.Model;
|
||||
import javafx.fxml.Initializable;
|
||||
|
||||
public class ModelineController implements Initializable {
|
||||
|
||||
// TODO: Add component references, and event handlers
|
||||
|
||||
private Model model;
|
||||
|
||||
/**
|
||||
* Links the controller to the global model
|
||||
* @param model The model to be linked
|
||||
*/
|
||||
public void setModel(Model model) {
|
||||
this.model = model;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes and customizes the properties of the javafx objects.
|
||||
*/
|
||||
@Override
|
||||
public void initialize(URL url, ResourceBundle resourceBundle) {
|
||||
// TODO: implement
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user