Interface I_CmsFileInputService
- All Known Implementing Classes:
CmsFileInputFileApiImpl
,CmsFileInputImpl
public interface I_CmsFileInputService
The interface for various implementations of a file input field.
- Since:
- 8.0.0
-
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.
-
Method Details
-
getFiles
com.google.gwt.core.client.JsArray<CmsFileInfo> getFiles(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
The default implementation of the file input field does not support multiple file selection.- Parameters:
inputElement
- the input element- Returns:
false
by default
-
setAllowMultipleFiles
A dummy method, only used for sub classes.- Parameters:
inputElement
- the input elementallow
- 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
-