Class CmsFileInputImpl
- java.lang.Object
-
- org.opencms.gwt.client.ui.input.upload.CmsFileInputImpl
-
- All Implemented Interfaces:
I_CmsFileInputService
public class CmsFileInputImpl extends java.lang.Object implements I_CmsFileInputService
The default file input implementation.- Since:
- 8.0.0
-
-
Constructor Summary
Constructors Constructor Description CmsFileInputImpl()
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
CmsFileInputImpl
public CmsFileInputImpl()
-
-
Method Detail
-
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:
I_CmsFileInputService.getFiles(com.google.gwt.dom.client.InputElement)
-
isAllowMultipleFiles
public boolean isAllowMultipleFiles(com.google.gwt.dom.client.InputElement inputElement)
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:
I_CmsFileInputService.isAllowMultipleFiles(com.google.gwt.dom.client.InputElement)
-
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:
I_CmsFileInputService.setAllowMultipleFiles(com.google.gwt.dom.client.InputElement, boolean)
-
supportsFileAPI
public boolean 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:
I_CmsFileInputService.supportsFileAPI()
-
-