public class UIFileUpload extends com.vaadin.ui.Upload implements UIComponentWithHints2, com.vaadin.data.Property.Editor, com.vaadin.ui.Upload.StartedListener, com.vaadin.ui.Upload.SucceededListener, com.vaadin.ui.Upload.FailedListener, com.vaadin.ui.Upload.Receiver
| Modifier and Type | Class and Description |
|---|---|
static class |
UIFileUpload.AcceptMimeExtension
Component extension that allows to access the accept attribute of the upload input.
|
com.vaadin.ui.Upload.ChangeEvent, com.vaadin.ui.Upload.ChangeListener, com.vaadin.ui.Upload.FailedEvent, com.vaadin.ui.Upload.FailedListener, com.vaadin.ui.Upload.FinishedEvent, com.vaadin.ui.Upload.FinishedListener, com.vaadin.ui.Upload.NoInputStreamEvent, com.vaadin.ui.Upload.NoOutputStreamEvent, com.vaadin.ui.Upload.ProgressListener, com.vaadin.ui.Upload.Receiver, com.vaadin.ui.Upload.StartedEvent, com.vaadin.ui.Upload.StartedListener, com.vaadin.ui.Upload.SucceededEvent, com.vaadin.ui.Upload.SucceededListenercom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener| Modifier and Type | Field and Description |
|---|---|
protected ByteArrayOutputStream |
uploadedContent
Last file uploaded via this component
|
protected boolean |
uploadToMemory
If true, this component will use memory to store uploaded files before
they get committed.
|
| Constructor and Description |
|---|
UIFileUpload(UIComponentData componentData) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyHint(String hintName,
Variant<Object> newValue,
Variant<Object> oldValue)
Applies the given hint to this component.
|
UIComponentData |
getComponentData()
Returns the component definition (LSPS RecordHolder instance which is
subtype of "ui::Component") associated with this Vaadin component.
|
com.vaadin.data.Property |
getPropertyDataSource() |
com.vaadin.ui.AbstractComponent |
getWidget()
Returns the Vaadin widget which implements the UI part of this component.
|
OutputStream |
receiveUpload(String filename,
String mimeType) |
void |
refresh()
This method is called from LSPS rendering engine.
|
void |
setPropertyDataSource(com.vaadin.data.Property newDataSource) |
String |
toString() |
boolean |
unapplyHint(String hintName,
Variant<Object> oldValue)
The hint has been removed from the hint map.
|
void |
uploadFailed(com.vaadin.ui.Upload.FailedEvent event) |
void |
uploadStarted(com.vaadin.ui.Upload.StartedEvent event) |
void |
uploadSucceeded(com.vaadin.ui.Upload.SucceededEvent event) |
addChangeListener, addFailedListener, addFinishedListener, addListener, addListener, addListener, addListener, addListener, addProgressListener, addStartedListener, addSucceededListener, changeVariables, fireNoInputStream, fireNoOutputStream, fireStarted, fireUpdateProgress, fireUploadInterrupted, fireUploadInterrupted, fireUploadSuccess, focus, getButtonCaption, getBytesRead, getListeners, getReceiver, getState, getStreamVariable, getTabIndex, getUploadSize, interruptUpload, isUploading, markAsDirty, paintContent, removeChangeListener, removeFailedListener, removeFinishedListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeProgressListener, removeStartedListener, removeSucceededListener, setButtonCaption, setReceiver, setTabIndex, startUpload, submitUploadaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined, writeDesignaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResourceclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, readDesign, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerprotected transient ByteArrayOutputStream uploadedContent
protected final boolean uploadToMemory
public UIFileUpload(UIComponentData componentData)
componentData - public void refresh()
UIComponentUIComponentData.getHints().refresh in interface UIComponentpublic boolean applyHint(String hintName, Variant<Object> newValue, Variant<Object> oldValue)
UIComponentWithHints2applyHint in interface UIComponentWithHints2hintName - the hint name, not null.newValue - variant containing the new hint value, never null, may contain null value.oldValue - variant containing the previous hint value, never null, may contain null value if the hint was missing or the old value was null.public boolean unapplyHint(String hintName, Variant<Object> oldValue)
UIComponentWithHints2unapplyHint in interface UIComponentWithHints2hintName - the the hint name, not null.oldValue - variant containing the previous hint value, never null, may contain null value if the old value was null.public UIComponentData getComponentData()
UIComponentgetComponentData in interface UIComponentpublic OutputStream receiveUpload(String filename, String mimeType)
receiveUpload in interface com.vaadin.ui.Upload.Receiverpublic void uploadStarted(com.vaadin.ui.Upload.StartedEvent event)
uploadStarted in interface com.vaadin.ui.Upload.StartedListenerpublic void uploadFailed(com.vaadin.ui.Upload.FailedEvent event)
uploadFailed in interface com.vaadin.ui.Upload.FailedListenerpublic void uploadSucceeded(com.vaadin.ui.Upload.SucceededEvent event)
uploadSucceeded in interface com.vaadin.ui.Upload.SucceededListenerpublic void setPropertyDataSource(com.vaadin.data.Property newDataSource)
setPropertyDataSource in interface com.vaadin.data.Property.Viewerpublic com.vaadin.data.Property getPropertyDataSource()
getPropertyDataSource in interface com.vaadin.data.Property.Viewerpublic com.vaadin.ui.AbstractComponent getWidget()
UIComponentgetWidget in interface UIComponentCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.