Class MultiFilePicker

All Implemented Interfaces:
HasAttachHandlers, HasHandlers, EventListener, HasVisibility, IsWidget, LogicalStructure, HasClearHandlers, HasClickHandlers, HasDoubleClickHandlers, HasDragMoveHandlers, HasDragRepositionMoveHandlers, HasDragRepositionStartHandlers, HasDragRepositionStopHandlers, HasDragResizeMoveHandlers, HasDragResizeStartHandlers, HasDragResizeStopHandlers, HasDragStartHandlers, HasDragStopHandlers, HasDropHandlers, HasDropMoveHandlers, HasDropOutHandlers, HasDropOverHandlers, HasFocusChangedHandlers, HasHoverHandlers, HasHoverHiddenHandlers, HasKeyDownHandlers, HasKeyPressHandlers, HasMouseDownHandlers, HasMouseMoveHandlers, HasMouseOutHandlers, HasMouseOverHandlers, HasMouseStillDownHandlers, HasMouseUpHandlers, HasMouseWheelHandlers, HasMovedHandlers, HasParentMovedHandlers, HasResizedHandlers, HasRightMouseDownHandlers, HasRuleContextChangedHandlers, HasScrolledHandlers, HasShowContextMenuHandlers, HasVisibilityChangedHandlers, HasMembersChangedHandlers

public class MultiFilePicker extends VStack
The MultiFilePicker is a pop-up picker used by the MultiFileItem to allow the user to enter several files for upload.
See Also:
  • Constructor Details

    • MultiFilePicker

      public MultiFilePicker()
    • MultiFilePicker

      public MultiFilePicker(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static MultiFilePicker getOrCreateRef(JavaScriptObject jsObj)
    • changeAutoChildDefaults

      public static void changeAutoChildDefaults(String autoChildName, Canvas defaults)
      Changes the defaults for Canvas AutoChildren named autoChildName.
      Parameters:
      autoChildName - name of an AutoChild to customize the defaults for.
      defaults - Canvas defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see SGWTProperties.
      See Also:
    • changeAutoChildDefaults

      public static void changeAutoChildDefaults(String autoChildName, FormItem defaults)
      Changes the defaults for FormItem AutoChildren named autoChildName.
      Parameters:
      autoChildName - name of an AutoChild to customize the defaults for.
      defaults - FormItem defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see SGWTProperties.
      See Also:
    • create

      protected JavaScriptObject create()
      Overrides:
      create in class VStack
    • setMaxUploadFields

      public MultiFilePicker setMaxUploadFields(Integer maxUploadFields)
      The maximum number of upload fields to show. If not specified, user can add as many upload fields as he wishes.
      Parameters:
      maxUploadFields - New maxUploadFields value. Default value is null
      Returns:
      MultiFilePicker instance, for chaining setter calls
    • getMaxUploadFields

      public Integer getMaxUploadFields()
      The maximum number of upload fields to show. If not specified, user can add as many upload fields as he wishes.
      Returns:
      Current maxUploadFields value. Default value is null
    • setMinUploadFields

      public MultiFilePicker setMinUploadFields(Integer minUploadFields)
      Minimum number of upload fields to show. This many fields will show up initially.
      Parameters:
      minUploadFields - New minUploadFields value. Default value is 1
      Returns:
      MultiFilePicker instance, for chaining setter calls
    • getMinUploadFields

      public Integer getMinUploadFields()
      Minimum number of upload fields to show. This many fields will show up initially.
      Returns:
      Current minUploadFields value. Default value is 1
    • setShowInWindow

      public MultiFilePicker setShowInWindow(boolean showInWindow) throws IllegalStateException
      If set true, the picker will be displayed inside a Window.
      Parameters:
      showInWindow - New showInWindow value. Default value is false
      Returns:
      MultiFilePicker instance, for chaining setter calls
      Throws:
      IllegalStateException - this property cannot be changed after the component has been created
    • getShowInWindow

      public boolean getShowInWindow()
      If set true, the picker will be displayed inside a Window.
      Returns:
      Current showInWindow value. Default value is false
    • setTitle

      public void setTitle(String title)
      Title for the Window implemented as a container for this picker in some skins.
      Overrides:
      setTitle in class Canvas
      Parameters:
      title - New title value. Default value is "Add files"
    • getTitle

      public String getTitle()
      Title for the Window implemented as a container for this picker in some skins.
      Overrides:
      getTitle in class Canvas
      Returns:
      Current title value. Default value is "Add files"
    • setDefaultProperties

      public static void setDefaultProperties(MultiFilePicker multiFilePickerProperties)
      Class level method to set the default properties of this class. If set, then all existing and subsequently created instances of this class will automatically have default properties corresponding to the properties set on the SmartGWT class instance passed to this function before its underlying SmartClient JS object was created. This is a powerful feature that eliminates the need for users to create a separate hierarchy of subclasses that only alter the default properties of this class. Can also be used for skinning / styling purposes.

      Note: This method is intended for setting default attributes only and will affect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route.

      Parameters:
      multiFilePickerProperties - properties that should be used as new defaults when instances of this class are created
      See Also:
    • setLogicalStructure

      Setter implementing the LogicalStructure interface, which supports Eclipse's logical structure debugging facility.
    • getLogicalStructure

      public LogicalStructureObject getLogicalStructure()
      Getter implementing the LogicalStructure interface, which supports Eclipse's logical structure debugging facility.
      Specified by:
      getLogicalStructure in interface LogicalStructure
      Overrides:
      getLogicalStructure in class VStack