All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fluorumlabs.disconnect.vaadin.ProgressBar Maven / Gradle / Ivy

The newest version!
package com.github.fluorumlabs.disconnect.vaadin;

import com.github.fluorumlabs.disconnect.core.annotations.WebComponent;
import com.github.fluorumlabs.disconnect.vaadin.elements.ProgressBarElement;
import com.github.fluorumlabs.disconnect.vaadin.mixins.HasProgressMixin;
import com.github.fluorumlabs.disconnect.vaadin.mixins.HasThemableMixin;
import com.github.fluorumlabs.disconnect.vaadin.types.ThemeVariant;
import com.github.fluorumlabs.disconnect.zero.component.AbstractComponent;
import com.github.fluorumlabs.disconnect.zero.component.Component;
import com.github.fluorumlabs.disconnect.zero.component.HasComponents;
import com.github.fluorumlabs.disconnect.zero.component.HasStyle;
import js.extras.JsEnum;

/**
 * <vaadin-progress-bar> is a Web Component for progress bars.
 *
 * 
<vaadin-progress-bar min="0" max="1" value="0.5"
 * >
 * </vaadin-progress-bar>
 * 
*

Styling

* The following shadow DOM parts are available for styling: * * * * * * * * * *
Part nameDescription
barProgress-bar's background
valueProgress-bar's foreground
* See * ThemableMixin – how to apply styles for shadow parts *

* The following custom properties are available: * *

* * * * * * *
Custom propertyDescriptionDefault
--vaadin-progress-valuecurrent progress value (between 0 and 1)0
* The following state attributes are available for styling: * * * * * * * * *
AttributeDescriptionPart name
indeterminateSet to an indeterminate progress bar:host
*/ @WebComponent public class ProgressBar extends AbstractComponent implements HasProgressMixin, HasThemableMixin, HasStyle, HasComponents> { public ProgressBar() { super(ProgressBarElement.TAGNAME()); } public abstract static class Variant extends ThemeVariant { public static final Variant CONTRAST = JsEnum.of("contrast"); public static final Variant ERROR = JsEnum.of("error"); public static final Variant SUCCESS = JsEnum.of("success"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy