public interface FileUploadField extends UploadField, Field, Component.Focusable, Component.Buffered
Modifier and Type | Interface and Description |
---|---|
static class |
FileUploadField.AfterValueClearEvent |
static interface |
FileUploadField.AfterValueClearListener
Callback interface which is invoked by the
FileUploadField after value has been cleared using clear button. |
static class |
FileUploadField.BeforeValueClearEvent |
static interface |
FileUploadField.BeforeValueClearListener
Callback interface which is invoked by the
FileUploadField before value clearing when user use clear button. |
static interface |
FileUploadField.FileContentProvider |
static class |
FileUploadField.FileStoragePutMode
Defines when FileDescriptor will be committed.
|
static class |
FileUploadField.FileUploadSucceedEvent |
static interface |
FileUploadField.FileUploadSucceedListener |
static interface |
FileUploadField.Listener
|
static class |
FileUploadField.ListenerAdapter
|
UploadField.DropZone, UploadField.FileUploadErrorEvent, UploadField.FileUploadErrorListener, UploadField.FileUploadEvent, UploadField.FileUploadFinishEvent, UploadField.FileUploadFinishListener, UploadField.FileUploadStartEvent, UploadField.FileUploadStartListener
Field.Validator
Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
void |
addAfterValueClearListener(FileUploadField.AfterValueClearListener listener) |
void |
addBeforeValueClearListener(FileUploadField.BeforeValueClearListener listener) |
void |
addFileUploadSucceedListener(FileUploadField.FileUploadSucceedListener listener) |
void |
addListener(FileUploadField.Listener listener)
Deprecated.
|
byte[] |
getBytes()
Deprecated.
Please use
getFileId() method and FileUploading . |
java.lang.String |
getClearButtonCaption() |
java.lang.String |
getClearButtonDescription() |
java.lang.String |
getClearButtonIcon() |
FileUploadField.FileContentProvider |
getContentProvider() |
java.io.InputStream |
getFileContent() |
FileDescriptor |
getFileDescriptor() |
java.util.UUID |
getFileId()
Get id for uploaded file in
FileUploading . |
java.lang.String |
getFileName() |
FileUploadField.FileStoragePutMode |
getMode() |
java.lang.String |
getUploadButtonCaption() |
java.lang.String |
getUploadButtonDescription() |
java.lang.String |
getUploadButtonIcon() |
boolean |
isShowClearButton() |
boolean |
isShowFileName() |
void |
removeAfterValueClearListener(FileUploadField.AfterValueClearListener listener) |
void |
removeBeforeValueClearListener(FileUploadField.BeforeValueClearListener listener) |
void |
removeFileUploadSucceedListener(FileUploadField.FileUploadSucceedListener listener) |
void |
removeListener(FileUploadField.Listener listener)
Deprecated.
|
void |
setClearButtonCaption(java.lang.String caption)
Setup clear button caption.
|
void |
setClearButtonDescription(java.lang.String description)
Setup clear button description.
|
void |
setClearButtonIcon(java.lang.String icon)
Setup clear button icon.
|
void |
setContentProvider(FileUploadField.FileContentProvider contentProvider)
Set content provider which contains file data.
|
void |
setMode(FileUploadField.FileStoragePutMode mode)
Set mode which determines when
FileDescriptor will be committed. |
void |
setShowClearButton(boolean showClearButton)
Enable or disable displaying name of clear button.
|
void |
setShowFileName(boolean showFileName)
Enable or disable displaying name of uploaded file next to upload button.
|
void |
setUploadButtonCaption(java.lang.String caption)
Setup caption of upload button.
|
void |
setUploadButtonDescription(java.lang.String description)
Setup upload button description.
|
void |
setUploadButtonIcon(java.lang.String icon)
Setup upload button icon.
|
addFileUploadErrorListener, addFileUploadFinishListener, addFileUploadStartListener, getAccept, getDropZone, getDropZonePrompt, getFileSizeLimit, getPermittedExtensions, removeFileUploadErrorListener, removeFileUploadFinishListener, removeFileUploadStartListener, setAccept, setDropZone, setDropZonePrompt, setFileSizeLimit, setPermittedExtensions
getTabIndex, isFocusable, setFocusable, setTabIndex
addValidator, getRequiredMessage, getValidators, isRequired, removeValidator, setRequired, setRequiredMessage
getDatasource, getMetaProperty, getMetaPropertyPath, setDatasource
addListener, addValueChangeListener, getValue, removeListener, removeValueChangeListener, setValue
isEditable, isEditableWithParent, setEditable
getFrame, setFrame
addStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getCaption, getDescription, setCaption, setDescription
isValid, isValidateOnCommit, validate
getIcon, setIcon
commit, discard, isBuffered, isModified, setBuffered
static final java.lang.String NAME
java.util.UUID getFileId()
FileUploading
.java.lang.String getFileName()
FileDescriptor getFileDescriptor()
byte[] getBytes()
getFileId()
method and FileUploading
.@Deprecated void addListener(FileUploadField.Listener listener)
@Deprecated void removeListener(FileUploadField.Listener listener)
void addFileUploadSucceedListener(FileUploadField.FileUploadSucceedListener listener)
void removeFileUploadSucceedListener(FileUploadField.FileUploadSucceedListener listener)
@Nullable java.io.InputStream getFileContent()
void setShowFileName(boolean showFileName)
boolean isShowFileName()
void setUploadButtonCaption(java.lang.String caption)
java.lang.String getUploadButtonCaption()
void setUploadButtonIcon(java.lang.String icon)
java.lang.String getUploadButtonIcon()
void setUploadButtonDescription(java.lang.String description)
java.lang.String getUploadButtonDescription()
void setShowClearButton(boolean showClearButton)
boolean isShowClearButton()
void setClearButtonCaption(java.lang.String caption)
java.lang.String getClearButtonCaption()
void setClearButtonIcon(java.lang.String icon)
java.lang.String getClearButtonIcon()
void setClearButtonDescription(java.lang.String description)
java.lang.String getClearButtonDescription()
void addBeforeValueClearListener(FileUploadField.BeforeValueClearListener listener)
void removeBeforeValueClearListener(FileUploadField.BeforeValueClearListener listener)
void addAfterValueClearListener(FileUploadField.AfterValueClearListener listener)
void removeAfterValueClearListener(FileUploadField.AfterValueClearListener listener)
void setMode(FileUploadField.FileStoragePutMode mode)
FileDescriptor
will be committed.FileUploadField.FileStoragePutMode getMode()
FileDescriptor
will be commited.void setContentProvider(FileUploadField.FileContentProvider contentProvider)
Passed content provider will be used for downloading by clicking the link with file name
or as source for getFileContent()
method.
contentProvider
- content providerFileUploadField.FileContentProvider getContentProvider()