Package cn.mapway.ui.client.widget
Class BigFileUploader
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.ComplexPanel
-
- com.google.gwt.user.client.ui.HTMLPanel
-
- cn.mapway.ui.client.widget.BigFileUploader
-
- All Implemented Interfaces:
HasCommonHandlers,com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IndexedPanel,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,Iterable<com.google.gwt.user.client.ui.Widget>
public class BigFileUploader extends com.google.gwt.user.client.ui.HTMLPanel implements HasCommonHandlers
BigFileUploader 大文件上传- Author:
- zhangjianshe@gmail.com
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
-
-
Constructor Summary
Constructors Constructor Description BigFileUploader()BigFileUploader(String html)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAccepted(String suffix)添加可以接受的文件名后缀 没有.com.google.gwt.event.shared.HandlerRegistrationaddCommonHandler(CommonEventHandler handler)voidaddHeader(String key, String value)voidappendData(String fieldName, String fieldValue)添加数据对voidclearAccepted()voidclearData()清空数据BooleanisAccepted(String suffix)booleanisEnabled()voidreset()voidsetAction(String action)voidsetEnabled(Boolean enabled)voidsetFileFieldName(String fieldName)voidsetStyleName(String style)voidsetText(String text)-
Methods inherited from class com.google.gwt.user.client.ui.HTMLPanel
add, add, add, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, addAndReplaceElement, createUniqueId, getElementById, wrap
-
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
BigFileUploader
public BigFileUploader()
-
BigFileUploader
public BigFileUploader(String html)
-
-
Method Detail
-
clearAccepted
public void clearAccepted()
-
addAccepted
public void addAccepted(String suffix)
添加可以接受的文件名后缀 没有.- Parameters:
suffix-
-
setText
public void setText(String text)
-
appendData
public void appendData(String fieldName, String fieldValue)
添加数据对- Parameters:
fieldName-fieldValue-
-
clearData
public void clearData()
清空数据
-
setAction
public void setAction(String action)
-
setFileFieldName
public void setFileFieldName(String fieldName)
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(Boolean enabled)
-
setStyleName
public void setStyleName(String style)
- Overrides:
setStyleNamein classcom.google.gwt.user.client.ui.UIObject
-
reset
public void reset()
-
addCommonHandler
public com.google.gwt.event.shared.HandlerRegistration addCommonHandler(CommonEventHandler handler)
- Specified by:
addCommonHandlerin interfaceHasCommonHandlers
-
-