Class UsageCard
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
de.bytestore.hostinger.components.cards.Card
de.bytestore.hostinger.components.cards.ImageTitleCard
de.bytestore.hostinger.components.cards.UsageCard
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetCurrent(String valueIO) Sets the current value and updates the display of the UsageCard.voidsetIndeterminate(boolean stateIO) Sets the indeterminate state of the progress bar.voidsetTooltip(String dataIO) Sets the tooltip text for the progress component associated with this card.voidsetValue(double valueIO) Sets the value of the progress bar.Methods inherited from class de.bytestore.hostinger.components.cards.ImageTitleCard
setFirst, setImageIconMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
findAncestor, from, getId, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, isAttached, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, setId, setVisibleMethods inherited from class java.lang.Object
equals, 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 com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
UsageCard
Represents a card that displays usage information. -
UsageCard
Represents a card that displays usage information.- Parameters:
titleIO- the title of the usage cardleftIO- the left value displayed on the cardrightIO- the right value displayed on the card
-
-
Method Details
-
setCurrent
Sets the current value and updates the display of the UsageCard.- Parameters:
valueIO- the new value to be set as the current value
-
setValue
public void setValue(double valueIO) Sets the value of the progress bar.- Parameters:
valueIO- the value to set the progress bar to
-
setTooltip
Sets the tooltip text for the progress component associated with this card.- Parameters:
dataIO- the text to be used for the tooltip
-
setIndeterminate
public void setIndeterminate(boolean stateIO) Sets the indeterminate state of the progress bar.- Parameters:
stateIO- the
-