public class FileUploadWidgetSettings extends Object implements org.apache.wicket.util.io.IClusterable
Modifier and Type | Field and Description |
---|---|
static String |
AUTOUPLOAD_PROP |
static String |
FILEUPLOAD_MAX_ITEMS |
static String |
MAX_FILESIZE_PROP |
static String |
MAX_HEIGHT_PROP |
static String |
MAX_WIDTH_PROP |
Constructor and Description |
---|
FileUploadWidgetSettings(IPluginConfig pluginConfig,
FileUploadValidationService validator) |
Modifier and Type | Method and Description |
---|---|
String[] |
getAllowedExtensions() |
long |
getMaxFileSize()
Maximal file size of allowed upload files.
|
long |
getMaxHeight()
Maximal height of allowed upload images.
|
long |
getMaxNumberOfFiles()
The maximal number of files to upload.
|
long |
getMaxWidth()
Maximal width of allowed upload images.
|
String |
getSelectionChangeNotificationUrl() |
String |
getUploadDoneNotificationUrl()
The url to notify on the completion of uploading.
|
String |
getUploadUrl()
The url to receive uploading files.
|
boolean |
isAutoUpload()
The setting used in
FileUploadBehavior 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) |
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.
|
public static final String MAX_WIDTH_PROP
public static final String MAX_HEIGHT_PROP
public static final String MAX_FILESIZE_PROP
public static final String FILEUPLOAD_MAX_ITEMS
public static final String AUTOUPLOAD_PROP
public FileUploadWidgetSettings(IPluginConfig pluginConfig, FileUploadValidationService validator)
public void loadConfig(IPluginConfig pluginConfig, FileUploadValidationService validator)
public long getMaxWidth()
public long getMaxHeight()
public long getMaxFileSize()
public String getUploadUrl()
public void setUploadUrl(String url)
url
- public void setUploadDoneNotificationUrl(String notificationUrl)
notificationUrl
- public String getUploadDoneNotificationUrl()
public long getMaxNumberOfFiles()
public String[] getAllowedExtensions()
public boolean isAutoUpload()
FileUploadBehavior
to determine when selecting a file, the widget should upload it
automatically or wait until the upload script is called.public final void setAutoUpload(boolean autoUpload)
isAutoUpload()
public void setSelectionChangeNotificationUrl(String selectionChangeNotificationUrl)
selectionChangeNotificationUrl
- public String getSelectionChangeNotificationUrl()
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.