public class DropZone extends com.google.gwt.user.client.ui.Label implements com.google.gwt.user.client.ui.HasValue<List<JavaScriptFile>>
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Constructor and Description |
|---|
DropZone()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(String fileName,
int fileSize,
String fileType)
Returns true if the drop zone accepts the dropped file.
|
protected void |
addFile(com.google.gwt.core.client.JavaScriptObject jsFile)
Adds a file to the list of files.
|
com.google.gwt.event.shared.HandlerRegistration |
addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<List<JavaScriptFile>> handler) |
protected void |
doDrop(com.google.gwt.event.dom.client.DropEvent event)
Called when the user drops a file.
|
List<JavaScriptFile> |
getValue() |
void |
handleFiles(com.google.gwt.dom.client.DataTransfer dt)
Called to handle the list of files that were dropped.
|
protected void |
postConstruct() |
void |
setValue(List<JavaScriptFile> value) |
void |
setValue(List<JavaScriptFile> value,
boolean fireEvents) |
addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, asEditor, getDirection, getText, getTextDirection, removeClickListener, removeMouseListener, removeMouseWheelListener, setDirection, setText, setText, wrapgetAutoHorizontalAlignment, getDirectionEstimator, getHorizontalAlignment, getWordWrap, setAutoHorizontalAlignment, setDirectionEstimator, setDirectionEstimator, setHorizontalAlignment, setWordWrap, updateHorizontalAlignmentaddAttachHandler, 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, unsinkEvents@PostConstruct protected void postConstruct()
protected void doDrop(com.google.gwt.event.dom.client.DropEvent event)
event - public final void handleFiles(com.google.gwt.dom.client.DataTransfer dt)
dt - protected void addFile(com.google.gwt.core.client.JavaScriptObject jsFile)
jsFile - protected boolean accept(String fileName, int fileSize, String fileType)
fileName - fileSize - fileType - public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<List<JavaScriptFile>> handler)
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<List<JavaScriptFile>>HasValueChangeHandlers.addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler)public List<JavaScriptFile> getValue()
getValue in interface com.google.gwt.user.client.TakesValue<List<JavaScriptFile>>getValue in interface com.google.gwt.user.client.ui.HasValue<List<JavaScriptFile>>HasValue.getValue()public void setValue(List<JavaScriptFile> value)
setValue in interface com.google.gwt.user.client.TakesValue<List<JavaScriptFile>>setValue in interface com.google.gwt.user.client.ui.HasValue<List<JavaScriptFile>>HasValue.setValue(java.lang.Object)public void setValue(List<JavaScriptFile> value, boolean fireEvents)
setValue in interface com.google.gwt.user.client.ui.HasValue<List<JavaScriptFile>>HasValue.setValue(java.lang.Object,
boolean)Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.