public class CmsFileInput extends CmsWidget implements com.google.gwt.user.client.ui.HasName, com.google.gwt.event.dom.client.HasChangeHandlers
Constructor and Description |
---|
CmsFileInput()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler) |
CmsFileInfo[] |
getFiles()
Returns an array of CmsFile objects.
|
java.lang.String |
getName() |
boolean |
isAllowedMultipleFiles()
Returns
true if multiple file selection is allowed, false otherwise. |
boolean |
isDisabled()
Returns
true if the input field is disabled false otherwise. |
void |
onAttach() |
void |
onDetach() |
void |
setAllowMultipleFiles(boolean allow)
Sets the the flag for allowing multiple file selection.
|
void |
setDisabled(boolean disabled)
Sets the disabled flag.
|
void |
setName(java.lang.String name) |
void |
setParent(com.google.gwt.user.client.ui.Widget parent)
Overriding to increase method visibility.
|
boolean |
supportsFileAPI()
Returns
true if the control supports the HTML5 FileAPI and false otherwise. |
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
public CmsFileInput()
public com.google.gwt.event.shared.HandlerRegistration addChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
addChangeHandler
in interface com.google.gwt.event.dom.client.HasChangeHandlers
HasChangeHandlers.addChangeHandler(com.google.gwt.event.dom.client.ChangeHandler)
public CmsFileInfo[] getFiles()
public java.lang.String getName()
getName
in interface com.google.gwt.user.client.ui.HasName
HasName.getName()
public boolean isAllowedMultipleFiles()
true
if multiple file selection is allowed, false
otherwise.true
if multiple file selection is allowed, false
otherwisepublic boolean isDisabled()
true
if the input field is disabled false
otherwise.true
if the input field is disabled false
otherwisepublic void onAttach()
onAttach
in class com.google.gwt.user.client.ui.Widget
Widget.onAttach()
public void onDetach()
onDetach
in class com.google.gwt.user.client.ui.Widget
Widget.onDetach()
public void setAllowMultipleFiles(boolean allow)
allow
- true
if the multiple file selection should be allowedpublic void setDisabled(boolean disabled)
disabled
- true
if the input field should be disabledpublic void setName(java.lang.String name)
setName
in interface com.google.gwt.user.client.ui.HasName
HasName.setName(java.lang.String)
public void setParent(com.google.gwt.user.client.ui.Widget parent)
CmsWidget
setParent
in class CmsWidget
CmsWidget.setParent(com.google.gwt.user.client.ui.Widget)
public boolean supportsFileAPI()
true
if the control supports the HTML5 FileAPI and false
otherwise.true
if the control supports the HTML5 FileAPI and false
otherwise