Class 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:
    Serialized Form
    • Method Detail

      • 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

        public String getUploadUrl()
        The url to receive uploading files. This setting is used for multi-files uploads only.
      • setUploadUrl

        public void setUploadUrl​(String url)
        The url to receive uploading files. This setting is used for multi-files uploads only.
        Parameters:
        url -
      • setUploadDoneNotificationUrl

        public void setUploadDoneNotificationUrl​(String notificationUrl)
        The url to notify on the completion of uploading. This setting is used for multi-files uploads only.
        Parameters:
        notificationUrl -
      • getUploadDoneNotificationUrl

        public String 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

        public String[] getAllowedExtensions()
      • setAutoUpload

        public final void setAutoUpload​(boolean autoUpload)
        See Also:
        isAutoUpload()
      • setSelectionChangeNotificationUrl

        public void setSelectionChangeNotificationUrl​(String selectionChangeNotificationUrl)
        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

        public String getSelectionChangeNotificationUrl()
        Returns:
        the url to notify when the file selection list has been changed. This setting is used for multi-file uploads only.