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 Details

    • uploadContainer

      public javafx.scene.layout.VBox uploadContainer
    • root

      public javafx.scene.layout.VBox root
    • scrollpane

      public javafx.scene.control.ScrollPane scrollpane
  • Constructor Details

  • 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 interface javafx.fxml.Initializable
      Parameters:
      location -
      resources -
    • upload

      public void upload() throws java.io.IOException
      Method 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)