Package Components

Class PhotoContainer


  • public final class PhotoContainer
    extends java.lang.Object
    Class that is used to display photos in the search root
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javafx.scene.control.CheckBox checkBox  
      private javafx.scene.image.Image image  
      private javafx.scene.image.ImageView imageView  
      private Photo PHOTO  
      private javafx.scene.control.Button photoButton  
      private javafx.scene.layout.HBox photoContainerHBox  
    • Constructor Summary

      Constructors 
      Constructor Description
      PhotoContainer​(Photo photo)
      Constructor that takes a photo object and initializes the photo container with the photo in it
    • Method Summary

      Modifier and Type Method Description
      javafx.scene.control.CheckBox getCheckBox()  
      javafx.scene.image.Image getImage()  
      javafx.scene.image.ImageView getImageView()  
      Photo getPhoto()  
      javafx.scene.control.Button getPhotoButton()  
      javafx.scene.layout.HBox getPhotoContainerHBox()  
      private void setupPhotoContainer​(Photo photo)
      Makes a photo container that is a button that contains a photo, a photo title and a checkbox
      • Methods inherited from class java.lang.Object

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

      • PHOTO

        private final Photo PHOTO
      • image

        private javafx.scene.image.Image image
      • imageView

        private javafx.scene.image.ImageView imageView
      • checkBox

        private javafx.scene.control.CheckBox checkBox
      • photoButton

        private javafx.scene.control.Button photoButton
      • photoContainerHBox

        private javafx.scene.layout.HBox photoContainerHBox
    • Constructor Detail

      • PhotoContainer

        public PhotoContainer​(Photo photo)
        Constructor that takes a photo object and initializes the photo container with the photo in it
        Parameters:
        photo - a photo object
    • Method Detail

      • getPhoto

        public Photo getPhoto()
      • getImage

        public javafx.scene.image.Image getImage()
      • getImageView

        public javafx.scene.image.ImageView getImageView()
      • getCheckBox

        public javafx.scene.control.CheckBox getCheckBox()
      • getPhotoButton

        public javafx.scene.control.Button getPhotoButton()
      • getPhotoContainerHBox

        public javafx.scene.layout.HBox getPhotoContainerHBox()
      • setupPhotoContainer

        private void setupPhotoContainer​(Photo photo)
        Makes a photo container that is a button that contains a photo, a photo title and a checkbox
        Parameters:
        photo - a photo object