Skip to content
Snippets Groups Projects

Javadoc for controllers

Merged Simon Jensen requested to merge javadoc-controllers into dev
18 files
+ 461
206
Compare changes
  • Side-by-side
  • Inline
Files
18
@@ -12,6 +12,11 @@ import javafx.scene.layout.Pane;
import java.io.IOException;
/**
* Controls the buttons and changeable elements on create_album.fxml,
* a page where you create albums
* @version 1.0 22.03.2020
*/
public class CreateAlbum {
public TextField tbar_search;
public ImageView tbar_logo;
@@ -28,27 +33,61 @@ public class CreateAlbum {
public Button tbar_albums;
public Button tbar_searchBtn;
public void switchToSearch(ActionEvent actionEvent) throws IOException {
App.setRoot("search");
}
public void switchToUpload(ActionEvent actionEvent) throws IOException {
App.setRoot("upload");
/**
* Method that changes stage to Main page
* @param mouseEvent
* @throws IOException
*/
public void switchToMain(MouseEvent mouseEvent) throws IOException {
App.setRoot("main");
}
public void switchToMap(ActionEvent actionEvent) throws IOException {
App.setRoot("map");
/**
* Method that changes stage to Search page. It reads the value of the search
* field and if not empty it is passed to dataexchange
* @param actionEvent
* @throws IOException
*/
public void switchToSearch(ActionEvent actionEvent) throws IOException {
if (!tbar_search.getText().isEmpty()){
App.ex.setSearchField(tbar_search.getText());
}
App.setRoot("search");
}
/**
* Method that changes stage to Explore page
* @param actionEvent
* @throws IOException
*/
public void switchToExplore(ActionEvent actionEvent) throws IOException {
App.setRoot("explore");
}
public void switchToMain(MouseEvent mouseEvent) throws IOException {
App.setRoot("main");
}
/**
* Method that changes stage to Albums page
* @param actionEvent
* @throws IOException
*/
public void switchToAlbums(ActionEvent actionEvent) throws IOException {
App.setRoot("explore_albums");
}
/**
* Method that changes stage to Map page
* @param actionEvent
* @throws IOException
*/
public void switchToMap(ActionEvent actionEvent) throws IOException {
App.setRoot("map");
}
/**
* Method that changes stage to Upload page
* @param actionEvent the mouse has done something
* @throws IOException this page does not exist
*/
public void switchToUpload(ActionEvent actionEvent) throws IOException {
App.setRoot("upload");
}
}
Loading