T
- UploadReceiver
implemented class.public class BasicUploadField<T extends UploadReceiver> extends AbstractUploadField<T>
AbstractUploadField
.AbstractUploadField.InterruptionReason
com.vaadin.ui.AbstractField.FocusShortcut, com.vaadin.ui.AbstractField.ReadOnlyStatusChangeEvent
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
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
com.vaadin.server.Sizeable.Unit
com.vaadin.ui.Field.ValueChangeEvent
com.vaadin.data.Buffered.SourceException
com.vaadin.data.Property.Editor, com.vaadin.data.Property.ReadOnlyException, com.vaadin.data.Property.ReadOnlyStatusChangeListener, com.vaadin.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.data.Property.Transactional<T>, com.vaadin.data.Property.ValueChangeListener, com.vaadin.data.Property.ValueChangeNotifier, com.vaadin.data.Property.Viewer
Modifier and Type | Field and Description |
---|---|
protected String |
captionExtension
Caption section.
|
protected String |
deleteCaption |
protected String |
dropZoneCaption |
protected String |
errorNoteCaption |
protected String |
fileDetailFormatCaption |
protected String |
fileDetailHeaderCaption |
protected String |
fileDetailNameCaption |
protected String |
fileDetailSizeCaption |
protected String |
fileDetailSourceCaption |
protected ImageProvider |
imageProvider |
protected String |
inProgressCaption |
protected String |
inProgressRatioCaption |
protected String |
selectAnotherCaption |
protected String |
selectNewCaption |
protected String |
successNoteCaption |
protected UiContext |
uiContext |
protected String |
warningNoteCaption |
Constructor and Description |
---|
BasicUploadField(ImageProvider imageProvider,
UiContext uiContext,
BasicUploadFieldDefinition definition,
info.magnolia.i18nsystem.SimpleTranslator i18n) |
Modifier and Type | Method and Description |
---|---|
void |
attach()
Initialize the root component.
|
protected void |
buildCompletedLayout()
Main entry point to create the Completed Layout.
|
protected void |
buildEmptyLayout()
Main entry point to create the Empty Layout.
|
protected void |
buildInProgressLayout(String uploadedFileMimeType)
Main entry point to create the In Progress Layout.
|
protected com.vaadin.ui.Layout |
createCompletedActionLayout()
Build the Completed Action Layout.
|
protected com.vaadin.ui.Button |
createDeleteButton()
Create Delete button.
|
protected String |
createIconStyleName()
Create the Icon related to a File.
|
protected com.vaadin.ui.Component |
createThumbnailComponent() |
protected void |
displayUploadFailedNote(String fileName) |
protected void |
displayUploadFinishedNote(String fileName) |
protected void |
displayUploadInterruptNote(AbstractUploadField.InterruptionReason reason) |
protected String |
getCaption(String caption,
String[] args) |
com.vaadin.ui.CssLayout |
getCssLayout()
For test cases.
|
protected com.vaadin.ui.Component |
getFileDetailFileFormat()
Add File Format.
If editFileFormat is true, display an Input Text Field. |
protected com.vaadin.ui.Component |
getFileDetailFileName()
Add File Name.
If editFileName is true, display an Input Text Field. |
protected com.vaadin.ui.Component |
getFileDetailHeader()
Add Title.
|
protected com.vaadin.ui.Component |
getFileDetailSize()
Add File Info.
|
protected com.vaadin.ui.Component |
initContent() |
boolean |
isEmpty() |
protected void |
populateFromDefinition(BasicUploadFieldDefinition definition)
Configure Field based on the definition.
|
protected void |
refreshInProgressLayout(long readBytes,
long contentLength,
String fileName)
Update the in Progress Layout.
|
protected void |
setCaptionExtension(String mimeType) |
void |
setDeteteCaption(String deleteCaption) |
void |
setDropZoneCaption(String dropZoneCaption) |
void |
setEditFileFormat(boolean editFileFormat) |
void |
setEditFileName(boolean editFileName) |
void |
setErrorNoteCaption(String errorNoteCaption) |
void |
setFileDetailFormatCaption(String fileDetailFormatCaption) |
void |
setFileDetailHeaderCaption(String fileDetailHeaderCaption) |
void |
setFileDetailNameCaption(String fileDetailNameCaption) |
void |
setFileDetailSizeCaption(String fileDetailSizeCaption) |
void |
setFileDetailSourceCaption(String fileDetailSourceCaption) |
void |
setInProgressCaption(String inProgressCaption) |
void |
setInProgressRatioCaption(String inProgressRatioCaption) |
void |
setReadOnly(boolean readOnly) |
void |
setSelectAnotherCaption(String selectAnotherCaption) |
void |
setSelectNewCaption(String selectNewCaption) |
void |
setSizeInterruption(String sizeInterruption) |
void |
setSuccessNoteCaption(String successNoteCaption) |
void |
setTypeInterruption(String typeInterruption) |
void |
setUserInterruption(String userInterruption) |
void |
setWarningNoteCaption(String warningNoteCaption) |
createDropZone, detach, drop, getAcceptCriterion, getDropZone, getRootLayout, getType, getUpload, interruptUpload, isValidFile, resetDataSource, setAllowedMimeTypePattern, setLocale, setMaxUploadSize, setPropertyDataSource, setRootLayout, updateDisplay, updateProgress, uploadFailed, uploadFinished, uploadStarted
addListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, beforeClientResponse, clear, commit, discard, fireReadOnlyStatusChange, fireValueChange, focus, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getCustomAttributes, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getState, getState, getTabIndex, getValidators, getValue, isBuffered, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readDesign, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInternalValue, setInvalidAllowed, setInvalidCommitted, setRequired, setRequiredError, setTabIndex, setValidationVisible, setValue, setValue, shouldHideErrors, toString, validate, validate, valueChange, writeDesign
addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isVisible, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setParent, setPrimaryStyleName, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthUndefined
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, 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, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, readDesign, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected final ImageProvider imageProvider
protected UiContext uiContext
protected String captionExtension
protected String selectNewCaption
protected String selectAnotherCaption
protected String deleteCaption
protected String dropZoneCaption
protected String inProgressCaption
protected String inProgressRatioCaption
protected String fileDetailHeaderCaption
protected String fileDetailNameCaption
protected String fileDetailSizeCaption
protected String fileDetailFormatCaption
protected String fileDetailSourceCaption
protected String successNoteCaption
protected String warningNoteCaption
protected String errorNoteCaption
public BasicUploadField(ImageProvider imageProvider, UiContext uiContext, BasicUploadFieldDefinition definition, info.magnolia.i18nsystem.SimpleTranslator i18n)
public void attach()
attach
in interface com.vaadin.server.ClientConnector
attach
in interface com.vaadin.ui.Component
attach
in class com.vaadin.ui.CustomField<T extends UploadReceiver>
protected void buildEmptyLayout()
buildEmptyLayout
in class AbstractUploadField<T extends UploadReceiver>
protected void buildInProgressLayout(String uploadedFileMimeType)
buildInProgressLayout
in class AbstractUploadField<T extends UploadReceiver>
protected void refreshInProgressLayout(long readBytes, long contentLength, String fileName)
AbstractUploadField
refreshInProgressLayout
in class AbstractUploadField<T extends UploadReceiver>
protected void buildCompletedLayout()
buildCompletedLayout
in class AbstractUploadField<T extends UploadReceiver>
protected com.vaadin.ui.Layout createCompletedActionLayout()
protected com.vaadin.ui.Button createDeleteButton()
protected com.vaadin.ui.Component getFileDetailHeader()
protected com.vaadin.ui.Component getFileDetailFileName()
protected com.vaadin.ui.Component getFileDetailSize()
protected com.vaadin.ui.Component getFileDetailFileFormat()
protected com.vaadin.ui.Component createThumbnailComponent()
protected String createIconStyleName()
protected com.vaadin.ui.Component initContent()
initContent
in class com.vaadin.ui.CustomField<T extends UploadReceiver>
protected void populateFromDefinition(BasicUploadFieldDefinition definition)
protected void setCaptionExtension(String mimeType)
public void setSelectNewCaption(String selectNewCaption)
public void setSelectAnotherCaption(String selectAnotherCaption)
public void setDropZoneCaption(String dropZoneCaption)
public void setInProgressCaption(String inProgressCaption)
public void setInProgressRatioCaption(String inProgressRatioCaption)
public void setFileDetailHeaderCaption(String fileDetailHeaderCaption)
public void setFileDetailNameCaption(String fileDetailNameCaption)
public void setFileDetailSizeCaption(String fileDetailSizeCaption)
public void setFileDetailFormatCaption(String fileDetailFormatCaption)
public void setFileDetailSourceCaption(String fileDetailSourceCaption)
public void setSuccessNoteCaption(String successNoteCaption)
public void setWarningNoteCaption(String warningNoteCaption)
public void setErrorNoteCaption(String errorNoteCaption)
public void setDeteteCaption(String deleteCaption)
public void setSizeInterruption(String sizeInterruption)
public void setTypeInterruption(String typeInterruption)
public void setUserInterruption(String userInterruption)
protected void displayUploadInterruptNote(AbstractUploadField.InterruptionReason reason)
displayUploadInterruptNote
in class AbstractUploadField<T extends UploadReceiver>
protected void displayUploadFinishedNote(String fileName)
displayUploadFinishedNote
in class AbstractUploadField<T extends UploadReceiver>
protected void displayUploadFailedNote(String fileName)
displayUploadFailedNote
in class AbstractUploadField<T extends UploadReceiver>
public void setEditFileName(boolean editFileName)
public void setEditFileFormat(boolean editFileFormat)
public com.vaadin.ui.CssLayout getCssLayout()
public boolean isEmpty()
isEmpty
in interface com.vaadin.ui.Field<T extends UploadReceiver>
isEmpty
in class com.vaadin.ui.AbstractField<T extends UploadReceiver>
public void setReadOnly(boolean readOnly)
setReadOnly
in interface com.vaadin.data.Property<T extends UploadReceiver>
setReadOnly
in interface com.vaadin.ui.Component
setReadOnly
in class com.vaadin.ui.AbstractField<T extends UploadReceiver>
Copyright © 2015 Magnolia International Ltd.. All rights reserved.