Package Components
Class PhotoContainer
- java.lang.Object
-
- Components.PhotoContainer
-
public final class PhotoContainer extends java.lang.ObjectClass that is used to display photos in the search root
-
-
Field Summary
Fields Modifier and Type Field Description private javafx.scene.control.CheckBoxcheckBoxprivate javafx.scene.image.Imageimageprivate javafx.scene.image.ImageViewimageViewprivate PhotoPHOTOprivate javafx.scene.control.ButtonphotoButtonprivate javafx.scene.layout.HBoxphotoContainerHBox
-
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.CheckBoxgetCheckBox()javafx.scene.image.ImagegetImage()javafx.scene.image.ImageViewgetImageView()PhotogetPhoto()javafx.scene.control.ButtongetPhotoButton()javafx.scene.layout.HBoxgetPhotoContainerHBox()private voidsetupPhotoContainer(Photo photo)Makes a photo container that is a button that contains a photo, a photo title and a checkbox
-
-
-
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
-
-