Class FileUploadWidgetSettings
java.lang.Object
org.hippoecm.frontend.plugins.jquery.upload.FileUploadWidgetSettings
- All Implemented Interfaces:
Serializable
,org.apache.wicket.util.io.IClusterable
public class FileUploadWidgetSettings
extends Object
implements org.apache.wicket.util.io.IClusterable
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFileUploadWidgetSettings
(IPluginConfig pluginConfig, FileUploadValidationService validator) -
Method Summary
Modifier and TypeMethodDescriptionString[]
long
Maximal file size of allowed upload files.long
Maximal height of allowed upload images.long
The maximal number of files to upload.long
Maximal width of allowed upload images.The url to notify on the completion of uploading.The url to receive uploading files.boolean
The setting used inFileUploadBehavior
to determine when selecting a file, the widget should upload it automatically or wait until the upload script is called.void
loadConfig
(IPluginConfig pluginConfig, FileUploadValidationService validator) final void
setAutoUpload
(boolean autoUpload) void
setSelectionChangeNotificationUrl
(String selectionChangeNotificationUrl) Sets the url to notify when the file selection list has been changed.void
setUploadDoneNotificationUrl
(String notificationUrl) The url to notify on the completion of uploading.void
setUploadUrl
(String url) The url to receive uploading files.
-
Field Details
-
MAX_WIDTH_PROP
- See Also:
-
MAX_HEIGHT_PROP
- See Also:
-
MAX_FILESIZE_PROP
- See Also:
-
FILEUPLOAD_MAX_ITEMS
- See Also:
-
AUTOUPLOAD_PROP
- See Also:
-
-
Constructor Details
-
FileUploadWidgetSettings
-
-
Method Details
-
loadConfig
-
getMaxWidth
public long getMaxWidth()Maximal width of allowed upload images. -
getMaxHeight
public long getMaxHeight()Maximal height of allowed upload images. -
getMaxFileSize
public long getMaxFileSize()Maximal file size of allowed upload files. -
getUploadUrl
The url to receive uploading files. This setting is used for multi-files uploads only. -
setUploadUrl
The url to receive uploading files. This setting is used for multi-files uploads only.- Parameters:
url
-
-
setUploadDoneNotificationUrl
The url to notify on the completion of uploading. This setting is used for multi-files uploads only.- Parameters:
notificationUrl
-
-
getUploadDoneNotificationUrl
The url to notify on the completion of uploading. This setting is used for multi-files uploads only. -
getMaxNumberOfFiles
public long getMaxNumberOfFiles()The maximal number of files to upload. This setting is used for multi-files uploads only. -
getAllowedExtensions
-
isAutoUpload
public boolean isAutoUpload()The setting used inFileUploadBehavior
to determine when selecting a file, the widget should upload it automatically or wait until the upload script is called. -
setAutoUpload
public final void setAutoUpload(boolean autoUpload) - See Also:
-
setSelectionChangeNotificationUrl
Sets the url to notify when the file selection list has been changed. This setting is used for multi-file uploads only.- Parameters:
selectionChangeNotificationUrl
-
-
getSelectionChangeNotificationUrl
- Returns:
- the url to notify when the file selection list has been changed. This setting is used for multi-file uploads only.
-