Package Components

Class PhotoViewer


  • public final class PhotoViewer
    extends java.lang.Object
    Class that is used to display photo metadata
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Photo PHOTO  
      private javafx.stage.Stage STAGE  
      private javafx.scene.layout.FlowPane TAG_CONTAINER  
    • Constructor Summary

      Constructors 
      Constructor Description
      PhotoViewer​(Photo photo)  
    • Method Summary

      Modifier and Type Method Description
      void display()
      Displays the the stage created in the object
      private void setButtonFunctionality​(TagContainer tagContainerObject)
      Sets the up the buttons of a tag container
      private javafx.stage.Stage setup()
      Setup creates a new stage and then sets it up
      private void updateDatabaseAndClose()
      Updates the the tags of the photo in the database
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • TAG_CONTAINER

        private final javafx.scene.layout.FlowPane TAG_CONTAINER
      • PHOTO

        private final Photo PHOTO
      • STAGE

        private final javafx.stage.Stage STAGE
    • Constructor Detail

      • PhotoViewer

        public PhotoViewer​(Photo photo)
    • Method Detail

      • setup

        private javafx.stage.Stage setup()
        Setup creates a new stage and then sets it up
        Returns:
        stage, a new stage
      • setButtonFunctionality

        private void setButtonFunctionality​(TagContainer tagContainerObject)
        Sets the up the buttons of a tag container
        Parameters:
        tagContainerObject - is the tag container that is being setup
      • updateDatabaseAndClose

        private void updateDatabaseAndClose()
        Updates the the tags of the photo in the database
      • display

        public void display()
        Displays the the stage created in the object