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.SucceededListener
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.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, submitUpload
addContextClickListener, 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, writeDesign
addAttachListener, 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, setResource
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addListener, 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, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected transient ByteArrayOutputStream uploadedContent
protected final boolean uploadToMemory
public UIFileUpload(UIComponentData componentData)
componentData
- public void refresh()
UIComponent
UIComponentData.getHints()
.refresh
in interface UIComponent
public boolean applyHint(String hintName, Variant<Object> newValue, Variant<Object> oldValue)
UIComponentWithHints2
applyHint
in interface UIComponentWithHints2
hintName
- 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)
UIComponentWithHints2
unapplyHint
in interface UIComponentWithHints2
hintName
- 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()
UIComponent
getComponentData
in interface UIComponent
public OutputStream receiveUpload(String filename, String mimeType)
receiveUpload
in interface com.vaadin.ui.Upload.Receiver
public void uploadStarted(com.vaadin.ui.Upload.StartedEvent event)
uploadStarted
in interface com.vaadin.ui.Upload.StartedListener
public void uploadFailed(com.vaadin.ui.Upload.FailedEvent event)
uploadFailed
in interface com.vaadin.ui.Upload.FailedListener
public void uploadSucceeded(com.vaadin.ui.Upload.SucceededEvent event)
uploadSucceeded
in interface com.vaadin.ui.Upload.SucceededListener
public void setPropertyDataSource(com.vaadin.data.Property newDataSource)
setPropertyDataSource
in interface com.vaadin.data.Property.Viewer
public com.vaadin.data.Property getPropertyDataSource()
getPropertyDataSource
in interface com.vaadin.data.Property.Viewer
public com.vaadin.ui.AbstractComponent getWidget()
UIComponent
getWidget
in interface UIComponent
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.