Module jpro.webapi

Interface WebAPI.SingleFileUploader

All Superinterfaces:
WebAPI.FileSelector
All Known Implementing Classes:
WebAPI.FileUploader
Enclosing class:
WebAPI

public static interface WebAPI.SingleFileUploader extends WebAPI.FileSelector
This class is used for uploading a file. It's associated with a node.
Since:
2018.1.1
  • Property Details

    • selectedFile

      javafx.beans.property.ReadOnlyStringProperty selectedFileProperty
      Contains the filename, which was selected by the client.
      See Also:
    • selectedFileSize

      javafx.beans.property.ReadOnlyIntegerProperty selectedFileSizeProperty
      Contains the size in bytes of the selected file.
      See Also:
    • progress

      javafx.beans.property.ReadOnlyDoubleProperty progressProperty
      Defines the progress of uploading the file. When the value is 1.0, then the upload is finished.
      See Also:
    • jsFile

      javafx.beans.property.ReadOnlyObjectProperty<WebAPI.JSFile> jsFileProperty
      The current JSFile, which was selected by the client.
    • uploadedFile

      javafx.beans.property.ReadOnlyObjectProperty<File> uploadedFileProperty
      Contains the file, which was uploaded. It is null until progress reaches 1.0.
      See Also:
    • onFileSelected

      javafx.beans.property.ObjectProperty<WebAPI.FileSelectedListener> onFileSelectedProperty
      Defines a function to be called when a file is dropped.
      See Also:
    • shouldCreateObjectURL

      javafx.beans.property.BooleanProperty shouldCreateObjectURLProperty
      Defines whether an object url should be created.
    • objectURL

      javafx.beans.property.ObjectProperty<JSVariable> objectURLProperty
  • Method Details

    • selectedFileProperty

      javafx.beans.property.ReadOnlyStringProperty selectedFileProperty()
      Contains the filename, which was selected by the client.
      See Also:
    • selectedFileSizeProperty

      javafx.beans.property.ReadOnlyIntegerProperty selectedFileSizeProperty()
      Contains the size in bytes of the selected file.
      See Also:
    • progressProperty

      javafx.beans.property.ReadOnlyDoubleProperty progressProperty()
      Defines the progress of uploading the file. When the value is 1.0, then the upload is finished.
      See Also:
    • jsFileProperty

      javafx.beans.property.ReadOnlyObjectProperty<WebAPI.JSFile> jsFileProperty()
      The current JSFile, which was selected by the client.
    • uploadFile

      void uploadFile()
      Starts uploading the selected file. During upload, the progress property will slowly reach 1.0.
    • uploadedFileProperty

      javafx.beans.property.ReadOnlyObjectProperty<File> uploadedFileProperty()
      Contains the file, which was uploaded. It is null until progress reaches 1.0.
      See Also:
    • onFileSelectedProperty

      javafx.beans.property.ObjectProperty<WebAPI.FileSelectedListener> onFileSelectedProperty()
      Defines a function to be called when a file is dropped.
      See Also:
    • shouldCreateObjectURLProperty

      javafx.beans.property.BooleanProperty shouldCreateObjectURLProperty()
      Defines whether an object url should be created.
    • objectURLProperty

      javafx.beans.property.ObjectProperty<JSVariable> objectURLProperty()
    • getUploadedFile

      default File getUploadedFile()
      Gets the value of the property uploadedFile.
    • getSelectedFile

      default String getSelectedFile()
      Gets the value of the property selectedFile.
    • getSelectedFileSize

      default int getSelectedFileSize()
      Gets the value of the property selectedFileSize
    • getProgress

      default double getProgress()
      Gets the value of the property progress.
    • getJSFile

      default WebAPI.JSFile getJSFile()
      Gets the value of the property jsFile.
    • getOnFileSelected

      default WebAPI.FileSelectedListener getOnFileSelected()
      Since:
      2018.1.1 Gets the value of the property onFileSelected
    • setOnFileSelected

      default void setOnFileSelected(WebAPI.FileSelectedListener value)
      Since:
      2018.1.1 Sets the value of the property onFileSelected.