Interface I_CmsFileInputService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.gwt.core.client.JsArray<CmsFileInfo> getFiles​(com.google.gwt.dom.client.InputElement inputElement)
      Returns a JsArray of CmsFile objects.
      boolean isAllowMultipleFiles​(com.google.gwt.dom.client.InputElement inputElement)
      The default implementation of the file input field does not support multiple file selection.
      void setAllowMultipleFiles​(com.google.gwt.dom.client.InputElement inputElement, boolean allow)
      A dummy method, only used for sub classes.
      boolean supportsFileAPI()
      The default implementation of the file input field does not support multiple file selection.
    • Method Detail

      • getFiles

        com.google.gwt.core.client.JsArray<CmsFileInfogetFiles​(com.google.gwt.dom.client.InputElement inputElement)
        Returns a JsArray of CmsFile objects.

        Parameters:
        inputElement - the input element
        Returns:
        a JsArray of CmsFile objects
      • isAllowMultipleFiles

        boolean isAllowMultipleFiles​(com.google.gwt.dom.client.InputElement inputElement)
        The default implementation of the file input field does not support multiple file selection.

        Parameters:
        inputElement - the input element
        Returns:
        false by default
      • setAllowMultipleFiles

        void setAllowMultipleFiles​(com.google.gwt.dom.client.InputElement inputElement,
                                   boolean allow)
        A dummy method, only used for sub classes.

        Parameters:
        inputElement - the input element
        allow - the flag that indicates if multiple file selection is supported
      • supportsFileAPI

        boolean supportsFileAPI()
        The default implementation of the file input field does not support multiple file selection.

        Returns:
        false by default