Class UsageCard

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.VerticalLayout>
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable

public class UsageCard extends ImageTitleCard
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    UsageCard(String titleIO)
    Represents a card that displays usage information.
    UsageCard(String titleIO, String leftIO, String rightIO)
    Represents a card that displays usage information.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setCurrent(String valueIO)
    Sets the current value and updates the display of the UsageCard.
    void
    setIndeterminate(boolean stateIO)
    Sets the indeterminate state of the progress bar.
    void
    Sets the tooltip text for the progress component associated with this card.
    void
    setValue(double valueIO)
    Sets the value of the progress bar.

    Methods inherited from class de.bytestore.hostinger.components.cards.ImageTitleCard

    setFirst, setImageIcon

    Methods inherited from class com.vaadin.flow.component.Composite

    getChildren, getContent, getElement

    Methods 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, setVisible

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Constructor Details

    • UsageCard

      public UsageCard(String titleIO)
      Represents a card that displays usage information.
    • UsageCard

      public UsageCard(String titleIO, String leftIO, String rightIO)
      Represents a card that displays usage information.
      Parameters:
      titleIO - the title of the usage card
      leftIO - the left value displayed on the card
      rightIO - the right value displayed on the card
  • Method Details

    • setCurrent

      public void setCurrent(String valueIO)
      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

      public void setTooltip(String dataIO)
      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