public class UploadField extends com.vaadin.ui.CustomField<File>
Modifier and Type | Class and Description |
---|---|
class |
UploadField.FileInfo |
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
Constructor and Description |
---|
UploadField(TempFilesManager tempFilesManager,
UploadFieldDefinition definition,
info.magnolia.i18nsystem.SimpleTranslator translator) |
Modifier and Type | Method and Description |
---|---|
protected void |
additionalUploadButtons(com.vaadin.ui.CssLayout controlButtonPanel) |
protected com.vaadin.ui.Button |
createControlPanelButton(com.vaadin.server.Resource icon) |
protected void |
doSetValue(File value) |
Optional<UploadField.FileInfo> |
getFileInfo() |
protected TempFilesManager |
getTempFilesManager() |
File |
getValue() |
protected com.vaadin.ui.Component |
initContent() |
protected void |
updateControlVisibilities() |
protected void |
updatePreviewThumbnail() |
attach, focus, getContent, getState, getState, getTabIndex, iterator, setFocusDelegate, setHeight, setTabIndex, setWidth
addValueChangeListener, createValueChange, getCustomAttributes, isDifferentValue, isReadOnly, isRequiredIndicatorVisible, readDesign, setReadOnly, setRequiredIndicatorVisible, setValue, setValue, writeDesign
addContextClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setResponsive, 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, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidthUndefined
forEach, spliterator
public UploadField(TempFilesManager tempFilesManager, UploadFieldDefinition definition, info.magnolia.i18nsystem.SimpleTranslator translator)
public File getValue()
public Optional<UploadField.FileInfo> getFileInfo()
protected void doSetValue(File value)
doSetValue
in class com.vaadin.ui.AbstractField<File>
protected com.vaadin.ui.Component initContent()
initContent
in class com.vaadin.ui.CustomField<File>
protected TempFilesManager getTempFilesManager()
protected void additionalUploadButtons(com.vaadin.ui.CssLayout controlButtonPanel)
protected com.vaadin.ui.Button createControlPanelButton(com.vaadin.server.Resource icon)
protected void updateControlVisibilities()
protected void updatePreviewThumbnail()
Copyright © 2020 Magnolia International Ltd.. All rights reserved.