public class CmsFileInput
extends com.google.gwt.user.client.ui.Widget
implements com.google.gwt.user.client.ui.HasName, com.google.gwt.event.dom.client.HasChangeHandlers
| 构造器和说明 |
|---|
CmsFileInput()
The default constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
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) |
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, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEventspublic com.google.gwt.event.shared.HandlerRegistration addChangeHandler(com.google.gwt.event.dom.client.ChangeHandler handler)
addChangeHandler 在接口中 com.google.gwt.event.dom.client.HasChangeHandlersHasChangeHandlers.addChangeHandler(com.google.gwt.event.dom.client.ChangeHandler)public CmsFileInfo[] getFiles()
public java.lang.String getName()
getName 在接口中 com.google.gwt.user.client.ui.HasNameHasName.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 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 在接口中 com.google.gwt.user.client.ui.HasNameHasName.setName(java.lang.String)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