Package NTNU.IDATT1002.controllers
Class ViewAlbum
java.lang.Object
NTNU.IDATT1002.controllers.NavBarController
NTNU.IDATT1002.controllers.ViewAlbum
- All Implemented Interfaces:
javafx.fxml.Initializable
public class ViewAlbum extends NavBarController implements javafx.fxml.Initializable
Controls the buttons and changeable elements on view_album.fxml,
a page where get a more detailed view of an album
- Version:
- 1.0 22.03.2020
-
Field Summary
Fields Modifier and Type Field Description javafx.scene.layout.HBoxalbumImagesContainerjavafx.scene.layout.VBoxalbumTextContainerjavafx.scene.control.ButtoncreateAlbumPdfjavafx.scene.image.ImageViewmainImageContainerjavafx.scene.text.TextmainImageTagsjavafx.scene.text.TextmainImageTitlejavafx.scene.text.TextmetadataTextjavafx.scene.layout.VBoxmetadataVBoxjavafx.scene.control.ButtonviewOnMapBtnFields inherited from class NTNU.IDATT1002.controllers.NavBarController
navBarAlbums, navBarExplore, navBarLogo, navBarLogOut, navBarMap, navBarSearch, navBarSearchBtn, navBarUpload, returnButton -
Constructor Summary
Constructors Constructor Description ViewAlbum() -
Method Summary
Modifier and Type Method Description voidcreatePdf(javafx.event.ActionEvent actionEvent)Retrieve and display album document.voidinitialize(java.net.URL url, java.util.ResourceBundle resourceBundle)Generates content on the page based on the current album id inDataExchange.voidopenPopUpImage(javafx.scene.input.MouseEvent mouseEvent)Makes a new stage and display the clicked image in max sizevoidopenPopUpMetadata(javafx.scene.input.MouseEvent mouseEvent)Makes a new stage and displays ALL metadata of the clicked imagevoidviewOnMap(javafx.event.ActionEvent actionEvent)View image on the mapMethods inherited from class NTNU.IDATT1002.controllers.NavBarController
doBeforePageExit, enterSearch, goToPrevious, logOut, search, switchToAlbums, switchToExplore, switchToMain, switchToMap, switchToSearch, switchToUpload
-
Field Details
-
createAlbumPdf
public javafx.scene.control.Button createAlbumPdf -
mainImageContainer
public javafx.scene.image.ImageView mainImageContainer -
mainImageTitle
public javafx.scene.text.Text mainImageTitle -
mainImageTags
public javafx.scene.text.Text mainImageTags -
albumTextContainer
public javafx.scene.layout.VBox albumTextContainer -
viewOnMapBtn
public javafx.scene.control.Button viewOnMapBtn -
albumImagesContainer
public javafx.scene.layout.HBox albumImagesContainer -
metadataVBox
public javafx.scene.layout.VBox metadataVBox -
metadataText
public javafx.scene.text.Text metadataText
-
-
Constructor Details
-
ViewAlbum
public ViewAlbum()
-
-
Method Details
-
initialize
public void initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)Generates content on the page based on the current album id inDataExchange.- Specified by:
initializein interfacejavafx.fxml.Initializable- Parameters:
url-resourceBundle-
-
openPopUpImage
public void openPopUpImage(javafx.scene.input.MouseEvent mouseEvent)Makes a new stage and display the clicked image in max size- Parameters:
mouseEvent-
-
openPopUpMetadata
public void openPopUpMetadata(javafx.scene.input.MouseEvent mouseEvent)Makes a new stage and displays ALL metadata of the clicked image- Parameters:
mouseEvent-
-
createPdf
public void createPdf(javafx.event.ActionEvent actionEvent)Retrieve and display album document.- Parameters:
actionEvent-
-
viewOnMap
public void viewOnMap(javafx.event.ActionEvent actionEvent) throws java.io.IOExceptionView image on the map- Parameters:
actionEvent-- Throws:
java.io.IOException
-