public class ResurfaceBasicUploadProgressIndicator extends com.vaadin.ui.CustomComponent implements UploadProgressIndicator
This view normally contains a progress bar and a label indicating the uploaded percentage, filename...
Refreshing the view is done by calling refreshLayout(long, long, String)
Layout composition:
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 |
---|
ResurfaceBasicUploadProgressIndicator(String inProgressCaption,
String inProgressRatioCaption,
info.magnolia.i18nsystem.SimpleTranslator i18n,
com.vaadin.ui.Button.ClickListener cancelUploadListener) |
Modifier and Type | Method and Description |
---|---|
com.vaadin.ui.Component |
asVaadinComponent()
Returns the Vaadin component used to display progress.
|
protected com.vaadin.ui.VerticalLayout |
getMainLayout() |
protected com.vaadin.ui.ProgressBar |
getProgressIndicator() |
protected com.vaadin.ui.Label |
getUploadFileLocation() |
protected com.vaadin.ui.Label |
getUploadFileProgress() |
protected com.vaadin.ui.Label |
getUploadFileRatio() |
void |
refreshLayout(long readBytes,
long contentLength,
String fileName)
Refreshes the progress indicator layout.
|
void |
setProgress(float progress)
Sets the current progress.
|
void |
setVisible(boolean visible)
Set the Component Visible or not.
|
getComponentCount, getCompositionRoot, getState, getState, iterator, setCompositionRoot
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setWidth, setWidth, setWidthFull, setWidthUndefined, writeDesign
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, 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, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, 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, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefined
forEach, spliterator
public void refreshLayout(long readBytes, long contentLength, String fileName)
UploadProgressIndicator
refreshLayout
in interface UploadProgressIndicator
public void setProgress(float progress)
UploadProgressIndicator
setProgress
in interface UploadProgressIndicator
public void setVisible(boolean visible)
UploadProgressIndicator
setVisible
in interface com.vaadin.ui.Component
setVisible
in interface UploadProgressIndicator
setVisible
in class com.vaadin.ui.AbstractComponent
public com.vaadin.ui.Component asVaadinComponent()
UploadProgressIndicator
asVaadinComponent
in interface UploadProgressIndicator
protected com.vaadin.ui.Label getUploadFileLocation()
protected com.vaadin.ui.Label getUploadFileRatio()
protected com.vaadin.ui.Label getUploadFileProgress()
protected com.vaadin.ui.VerticalLayout getMainLayout()
protected com.vaadin.ui.ProgressBar getProgressIndicator()
Copyright © 2021 Magnolia International Ltd.. All rights reserved.