Package NTNU.IDATT1002.controllers
Class CreateAlbum
java.lang.Object
NTNU.IDATT1002.controllers.NavBarController
NTNU.IDATT1002.controllers.CreateAlbum
- All Implemented Interfaces:
javafx.fxml.Initializable
public class CreateAlbum extends NavBarController implements javafx.fxml.Initializable
Controls the buttons and changeable elements on create_album.fxml,
a page where you create albums
- Version:
- 1.0 22.03.2020
-
Field Summary
Fields Modifier and Type Field Description javafx.scene.control.TextAreaalbum_desc_fieldjavafx.scene.control.TextFieldalbum_tag_fieldjavafx.scene.control.TextFieldalbum_title_fieldjavafx.scene.control.Buttoncreate_album_buttonjavafx.scene.layout.VBoxfileContainerjavafx.scene.layout.Panemetadata_paneFields inherited from class NTNU.IDATT1002.controllers.NavBarController
navBarAlbums, navBarExplore, navBarLogo, navBarLogOut, navBarMap, navBarSearch, navBarSearchBtn, navBarUpload, returnButton -
Constructor Summary
Constructors Constructor Description CreateAlbum()TellsDataExchangethat create album page was visited. -
Method Summary
Modifier and Type Method Description voidcreateAlbum(javafx.event.ActionEvent actionEvent)Method that creates album based on the user input and checked imagesvoidinitialize(java.net.URL url, java.util.ResourceBundle resourceBundle)Generates container for all images of current user with a checkbox.Methods inherited from class NTNU.IDATT1002.controllers.NavBarController
doBeforePageExit, enterSearch, goToPrevious, logOut, search, switchToAlbums, switchToExplore, switchToMain, switchToMap, switchToSearch, switchToUpload
-
Field Details
-
album_title_field
public javafx.scene.control.TextField album_title_field -
album_tag_field
public javafx.scene.control.TextField album_tag_field -
album_desc_field
public javafx.scene.control.TextArea album_desc_field -
metadata_pane
public javafx.scene.layout.Pane metadata_pane -
create_album_button
public javafx.scene.control.Button create_album_button -
fileContainer
public javafx.scene.layout.VBox fileContainer
-
-
Constructor Details
-
CreateAlbum
public CreateAlbum()TellsDataExchangethat create album page was visited.
-
-
Method Details
-
initialize
public void initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)Generates container for all images of current user with a checkbox. These can be added to the album. Add text fields for user to fill- Specified by:
initializein interfacejavafx.fxml.Initializable- Parameters:
url-resourceBundle-
-
createAlbum
public void createAlbum(javafx.event.ActionEvent actionEvent)Method that creates album based on the user input and checked images- Parameters:
actionEvent-
-