Package NTNU.IDATT1002.controllers
Class UploadImages
java.lang.Object
NTNU.IDATT1002.controllers.NavBarController
NTNU.IDATT1002.controllers.UploadImages
- All Implemented Interfaces:
javafx.fxml.Initializable
public class UploadImages extends NavBarController implements javafx.fxml.Initializable
Controls the buttons and changeable elements on upload_images.fxml,
a page where you add descriptions to your selected image
- Version:
- 1.0 22.03.2020
-
Field Summary
Fields Modifier and Type Field Description javafx.scene.layout.VBox
root
javafx.scene.control.ScrollPane
scrollpane
javafx.scene.layout.VBox
uploadContainer
Fields inherited from class NTNU.IDATT1002.controllers.NavBarController
navBarAlbums, navBarExplore, navBarLogo, navBarLogOut, navBarMap, navBarSearch, navBarSearchBtn, navBarUpload, returnButton
-
Constructor Summary
Constructors Constructor Description UploadImages()
-
Method Summary
Modifier and Type Method Description static java.util.ArrayList<javafx.scene.Node>
getAllNodes(javafx.scene.Parent root)
void
initialize(java.net.URL location, java.util.ResourceBundle resources)
Method that runs when the controller is loaded Sets the image url on the page to be the uploaded images urlvoid
upload()
Method for uploading image to database with tags Image itself is not stored but URL isMethods inherited from class NTNU.IDATT1002.controllers.NavBarController
doBeforePageExit, enterSearch, goToPrevious, logOut, search, switchToAlbums, switchToExplore, switchToMain, switchToMap, switchToSearch, switchToUpload
-
Field Details
-
uploadContainer
public javafx.scene.layout.VBox uploadContainer -
root
public javafx.scene.layout.VBox root -
scrollpane
public javafx.scene.control.ScrollPane scrollpane
-
-
Constructor Details
-
UploadImages
public UploadImages()
-
-
Method Details
-
initialize
public void initialize(java.net.URL location, java.util.ResourceBundle resources)Method that runs when the controller is loaded Sets the image url on the page to be the uploaded images url- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Parameters:
location
-resources
-
-
upload
public void upload() throws java.io.IOExceptionMethod for uploading image to database with tags Image itself is not stored but URL is- Throws:
java.io.IOException
-
getAllNodes
public static java.util.ArrayList<javafx.scene.Node> getAllNodes(javafx.scene.Parent root)
-