Class CmsFileInputFileApiImpl
java.lang.Object
org.opencms.gwt.client.ui.input.upload.CmsFileInputFileApiImpl
- All Implemented Interfaces:
I_CmsFileInputService
The HTML5 file input implementation.
- Since:
- 8.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.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
The default implementation of the file input field does not support multiple file selection.
-
Constructor Details
-
CmsFileInputFileApiImpl
public CmsFileInputFileApiImpl()
-
-
Method Details
-
getFiles
public com.google.gwt.core.client.JsArray<CmsFileInfo> getFiles(com.google.gwt.dom.client.InputElement inputElement) Description copied from interface:I_CmsFileInputService
Returns a JsArray of CmsFile objects.- Specified by:
getFiles
in interfaceI_CmsFileInputService
- Parameters:
inputElement
- the input element- Returns:
- a JsArray of CmsFile objects
- See Also:
-
isAllowMultipleFiles
Description copied from interface:I_CmsFileInputService
The default implementation of the file input field does not support multiple file selection.- Specified by:
isAllowMultipleFiles
in interfaceI_CmsFileInputService
- Parameters:
inputElement
- the input element- Returns:
false
by default- See Also:
-
setAllowMultipleFiles
public void setAllowMultipleFiles(com.google.gwt.dom.client.InputElement inputElement, boolean allow) Description copied from interface:I_CmsFileInputService
A dummy method, only used for sub classes.- Specified by:
setAllowMultipleFiles
in interfaceI_CmsFileInputService
- Parameters:
inputElement
- the input elementallow
- the flag that indicates if multiple file selection is supported- See Also:
-
supportsFileAPI
Description copied from interface:I_CmsFileInputService
The default implementation of the file input field does not support multiple file selection.- Specified by:
supportsFileAPI
in interfaceI_CmsFileInputService
- Returns:
false
by default- See Also:
-