Class VProgressBar
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.progressbar.ProgressBar
org.vaadin.firitin.components.progressbar.VProgressBar
- All Implemented Interfaces:
 com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.progressbar.ProgressBarVariant>,Serializable,FluentAttachNotifier<VProgressBar>,FluentComponent<VProgressBar>,FluentDetachNotifier<VProgressBar>,FluentHasSize<VProgressBar>,FluentHasStyle<VProgressBar>
public class VProgressBar
extends com.vaadin.flow.component.progressbar.ProgressBar
implements FluentComponent<VProgressBar>, FluentHasSize<VProgressBar>, FluentHasStyle<VProgressBar>
- See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionVProgressBar(double min, double max) VProgressBar(double min, double max, double value)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidRuns a client side animation to theProgressBar.getMax()value as "milliseconds".static VProgressBarindeterminateForTask(Runnable task) Creates a progressbar that is visible in the UI until the given the long(ish) running task has been executed.withMax(double max) withMin(double min) withThemeVariants(com.vaadin.flow.component.progressbar.ProgressBarVariant... variants) withValue(double value) Methods inherited from class com.vaadin.flow.component.progressbar.ProgressBar
getMax, getMin, getValue, isIndeterminate, setIndeterminate, setMax, setMin, setValueMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentAttachNotifier
withAttachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentComponent
setId, setVisible, withId, withVisibleMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentDetachNotifier
withDetachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasSize
withFullHeight, withFullWidth, withHeight, withMaxHeight, withMaxSize, withMaxWidth, withMinHeight, withMinSize, withMinWidth, withSize, withSizeFull, withSizeUndefined, withWidthMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasStyle
withAddedClassName, withClassName, withStyleMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariants 
- 
Constructor Details
- 
VProgressBar
public VProgressBar() - 
VProgressBar
public VProgressBar(double min, double max)  - 
VProgressBar
public VProgressBar(double min, double max, double value)  
 - 
 - 
Method Details
- 
indeterminateForTask
Creates a progressbar that is visible in the UI until the given the long(ish) running task has been executed. The progressbar will be added (and rendered) to the UI and then the task will be executed in the UI thread. Once the task is done, the progress indicator will automatically be removed. The progress indicator provided by the framework is hidden during the taask. Note that the UI will be blocked during the execution, so for really long tasks where you expect users to be able to continue working with other features in the UI, this helper is not the way to go. SeeUIFuture.- Parameters:
 task- the task to be finished before the returned progressbar will be vanished- Returns:
 - the progressbar to be added to UI
 
 - 
withValue
 - 
withMax
 - 
withMin
 - 
withThemeVariants
public VProgressBar withThemeVariants(com.vaadin.flow.component.progressbar.ProgressBarVariant... variants)  - 
animateToEstimate
public void animateToEstimate()Runs a client side animation to theProgressBar.getMax()value as "milliseconds". If you for example expect your progress to take around 5000ms, use 5000 as max value. The progress animation will slow down in the end of the progressbar, so it doesn't matter if your estimate is slightly optimistic. If the estimate is passed a lot, the progressbar will switch to indeterminate mode. 
 -