java.lang.Object
one.jpro.platform.file.FileSource
one.jpro.platform.file.WebFileSource
Web file source.
- Author:
- Besmir Beqiri
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ReadOnlyDoublePropertyReturns a read-only double property representing the current upload progress.javafx.beans.property.ReadOnlyObjectProperty<File> Returns a read-only object property representing the uploaded file.Properties inherited from class one.jpro.platform.file.FileSource
name, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.jpro.webapi.WebAPI.JSFileReturns the platform-specific file object.doubleGets the value of theprogressproperty.Gets the value of theuploadedFileproperty.javafx.beans.property.ReadOnlyDoublePropertyReturns a read-only double property representing the current upload progress.javafx.beans.property.ReadOnlyObjectProperty<File> Returns a read-only object property representing the uploaded file.voidInitiates the file upload process synchronously.Initiates the file upload process asynchronously.Methods inherited from class one.jpro.platform.file.FileSource
getName, getSize, nameProperty, sizeProperty
-
Property Details
-
progress
public javafx.beans.property.ReadOnlyDoubleProperty progressProperty- Specified by:
progressPropertyin classFileSource- Returns:
- the ReadOnlyDoubleProperty for the upload progress
- See Also:
-
uploadedFile
- Specified by:
uploadedFilePropertyin classFileSource- Returns:
- the ReadOnlyObjectProperty for the uploaded file
- See Also:
-
-
Constructor Details
-
WebFileSource
public WebFileSource(com.jpro.webapi.WebAPI.JSFile jsFile)
-
-
Method Details
-
getPlatformFile
public com.jpro.webapi.WebAPI.JSFile getPlatformFile()Description copied from class:FileSourceReturns the platform-specific file object.- Overrides:
getPlatformFilein classFileSource- Returns:
- the platform-specific file object
-
getProgress
public double getProgress()Gets the value of theprogressproperty.- Specified by:
getProgressin classFileSource- Property description:
- Returns:
- the value of the
progressproperty - See Also:
-
progressProperty
public javafx.beans.property.ReadOnlyDoubleProperty progressProperty()Description copied from class:FileSourceReturns a read-only double property representing the current upload progress.- Specified by:
progressPropertyin classFileSource- Returns:
- the
progressproperty - See Also:
-
getUploadedFile
Gets the value of theuploadedFileproperty.- Specified by:
getUploadedFilein classFileSource- Property description:
- Returns:
- the value of the
uploadedFileproperty - See Also:
-
uploadedFileProperty
Description copied from class:FileSourceReturns a read-only object property representing the uploaded file.- Specified by:
uploadedFilePropertyin classFileSource- Returns:
- the
uploadedFileproperty - See Also:
-
uploadFile
public void uploadFile()Description copied from class:FileSourceInitiates the file upload process synchronously.This method will start the upload operation and should be called to begin the upload.
- Specified by:
uploadFilein classFileSource
-
uploadFileAsync
Description copied from class:FileSourceInitiates the file upload process asynchronously.- Specified by:
uploadFileAsyncin classFileSource- Returns:
- a CompletableFuture representing the result of the asynchronous upload operation, which will complete with the uploaded File object
-