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

    Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

    com.google.gwt.user.client.ui.HasWidgets.ForIsWidget

    Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel

    com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
  • Field Summary

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    添加可以接受的文件名后缀 没有.
    com.google.gwt.event.shared.HandlerRegistration
     
    void
    addHeader(String key, String value)
     
    void
    appendData(String fieldName, String fieldValue)
    添加数据对
    void
     
    void
    清空数据
     
    boolean
     
    void
     
    void
    setAction(String action)
     
    void
     
    void
     
    void
     
    void
     

    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 com.google.gwt.event.shared.HasHandlers

    fireEvent

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • BigFileUploader

      public BigFileUploader()
    • BigFileUploader

      public BigFileUploader(String html)
  • Method Details

    • clearAccepted

      public void clearAccepted()
    • addAccepted

      public void addAccepted(String suffix)
      添加可以接受的文件名后缀 没有.
      Parameters:
      suffix -
    • isAccepted

      public Boolean isAccepted(String suffix)
    • setText

      public void setText(String text)
    • addHeader

      public void addHeader(String key, String value)
    • 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:
      setStyleName in class com.google.gwt.user.client.ui.UIObject
    • reset

      public void reset()
    • addCommonHandler

      public com.google.gwt.event.shared.HandlerRegistration addCommonHandler(CommonEventHandler handler)
      Specified by:
      addCommonHandler in interface HasCommonHandlers