public class UploadComponent
extends com.vaadin.ui.VerticalLayout
implements com.vaadin.ui.Upload.StartedListener, com.vaadin.ui.Upload.FinishedListener, com.vaadin.ui.Upload.FailedListener, com.vaadin.ui.Upload.ProgressListener, com.vaadin.event.dd.DropHandler
com.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandler
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.MarginInfo, com.vaadin.ui.Layout.SpacingHandler
com.vaadin.ui.ComponentContainer.ComponentAttachEvent, com.vaadin.ui.ComponentContainer.ComponentAttachListener, com.vaadin.ui.ComponentContainer.ComponentDetachEvent, com.vaadin.ui.ComponentContainer.ComponentDetachListener
Modifier and Type | Field and Description |
---|---|
protected com.vaadin.ui.Label |
descriptionLabel |
protected boolean |
enableDrop |
protected List<com.vaadin.ui.Upload.FailedListener> |
failedListeners |
protected List<com.vaadin.ui.Upload.FinishedListener> |
finishedListeners |
protected I18nManager |
i18nManager |
protected NotificationManager |
notificationManager |
protected com.vaadin.ui.ProgressIndicator |
progressIndicator |
protected List<com.vaadin.ui.Upload.ProgressListener> |
progressListeners |
protected com.vaadin.ui.Upload.Receiver |
receiver |
protected boolean |
showGenericFailureMessage |
protected List<com.vaadin.ui.Upload.StartedListener> |
startedListeners |
protected com.vaadin.ui.Upload |
upload |
Constructor and Description |
---|
UploadComponent(boolean enableDrop) |
UploadComponent(String description,
com.vaadin.ui.Upload.Receiver receiver) |
Modifier and Type | Method and Description |
---|---|
protected void |
addDescription() |
protected void |
addDropPanel() |
void |
addFailedListener(com.vaadin.ui.Upload.FailedListener failedListener) |
void |
addFinishedListener(com.vaadin.ui.Upload.FinishedListener finishedListener) |
protected void |
addOrLabel() |
void |
addProgressListener(com.vaadin.ui.Upload.ProgressListener progressListener) |
void |
addStartedListener(com.vaadin.ui.Upload.StartedListener startedListener) |
protected void |
addUpload() |
void |
drop(com.vaadin.event.dd.DragAndDropEvent event) |
com.vaadin.event.dd.acceptcriteria.AcceptCriterion |
getAcceptCriterion() |
protected void |
init() |
void |
setDescription(String description) |
void |
setReceiver(com.vaadin.ui.Upload.Receiver receiver) |
void |
updateProgress(long readBytes,
long contentLength) |
void |
uploadFailed(com.vaadin.ui.Upload.FailedEvent event) |
void |
uploadFinished(com.vaadin.ui.Upload.FinishedEvent event) |
void |
uploadStarted(com.vaadin.ui.Upload.StartedEvent event) |
addComponent, addComponent, addComponentAsFirst, addListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getComponentIterator, getExpandRatio, isSpacing, isSpacingEnabled, paintContent, removeComponent, removeListener, replaceComponent, setComponentAlignment, setComponentAlignment, setComponentAlignment, setExpandRatio, setSpacing
changeVariables, fireClick, getMargin, setMargin, setMargin, setMargin
addListener, addListener, attach, detach, fireComponentAttachEvent, fireComponentDetachEvent, moveComponentsFrom, removeAllComponents, removeListener, removeListener, requestRepaintAll, setEnabled, setHeight, setWidth
addListener, addListener, addListener, addListener, addListener, addStyleName, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, focus, getApplication, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getParent, getStyle, getStyleName, getWidth, getWidthUnits, getWindow, handleError, hasListeners, isEnabled, isImmediate, isReadOnly, isVisible, paint, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setData, setDebugId, setErrorHandler, setHeight, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidth, setWidthUnits
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, addListener, moveComponentsFrom, removeAllComponents, removeListener, removeListener, requestRepaintAll
addListener, addStyleName, attach, childRequestedRepaint, detach, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setParent, setReadOnly, setStyleName, setVisible
protected I18nManager i18nManager
protected NotificationManager notificationManager
protected com.vaadin.ui.ProgressIndicator progressIndicator
protected com.vaadin.ui.Upload upload
protected com.vaadin.ui.Upload.Receiver receiver
protected com.vaadin.ui.Label descriptionLabel
protected boolean enableDrop
protected List<com.vaadin.ui.Upload.FinishedListener> finishedListeners
protected List<com.vaadin.ui.Upload.StartedListener> startedListeners
protected boolean showGenericFailureMessage
protected List<com.vaadin.ui.Upload.FailedListener> failedListeners
protected List<com.vaadin.ui.Upload.ProgressListener> progressListeners
public UploadComponent(String description, com.vaadin.ui.Upload.Receiver receiver)
public UploadComponent(boolean enableDrop)
public void setDescription(String description)
setDescription
in class com.vaadin.ui.AbstractComponent
public void setReceiver(com.vaadin.ui.Upload.Receiver receiver)
protected void init()
protected void addDescription()
protected void addUpload()
protected void addOrLabel()
protected void addDropPanel()
public void uploadStarted(com.vaadin.ui.Upload.StartedEvent event)
uploadStarted
in interface com.vaadin.ui.Upload.StartedListener
public void updateProgress(long readBytes, long contentLength)
updateProgress
in interface com.vaadin.ui.Upload.ProgressListener
public void uploadFinished(com.vaadin.ui.Upload.FinishedEvent event)
uploadFinished
in interface com.vaadin.ui.Upload.FinishedListener
public void uploadFailed(com.vaadin.ui.Upload.FailedEvent event)
uploadFailed
in interface com.vaadin.ui.Upload.FailedListener
public void drop(com.vaadin.event.dd.DragAndDropEvent event)
drop
in interface com.vaadin.event.dd.DropHandler
public com.vaadin.event.dd.acceptcriteria.AcceptCriterion getAcceptCriterion()
getAcceptCriterion
in interface com.vaadin.event.dd.DropHandler
public void addFinishedListener(com.vaadin.ui.Upload.FinishedListener finishedListener)
public void addStartedListener(com.vaadin.ui.Upload.StartedListener startedListener)
public void addFailedListener(com.vaadin.ui.Upload.FailedListener failedListener)
public void addProgressListener(com.vaadin.ui.Upload.ProgressListener progressListener)
Copyright © 2016 Alfresco. All rights reserved.