Package Components
Class PhotoViewer
- java.lang.Object
-
- Components.PhotoViewer
-
public final class PhotoViewer extends java.lang.ObjectClass that is used to display photo metadata
-
-
Field Summary
Fields Modifier and Type Field Description private PhotoPHOTOprivate javafx.stage.StageSTAGEprivate javafx.scene.layout.FlowPaneTAG_CONTAINER
-
Constructor Summary
Constructors Constructor Description PhotoViewer(Photo photo)
-
Method Summary
Modifier and Type Method Description voiddisplay()Displays the the stage created in the objectprivate voidsetButtonFunctionality(TagContainer tagContainerObject)Sets the up the buttons of a tag containerprivate javafx.stage.Stagesetup()Setup creates a new stage and then sets it upprivate voidupdateDatabaseAndClose()Updates the the tags of the photo in the database
-
-
-
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
-
-