Class UsageOverviewCard

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.HorizontalLayout>
de.bytestore.hostinger.components.cards.UsageOverviewCard
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable

@UIScope public class UsageOverviewCard extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.HorizontalLayout>
The UsageOverviewCard class is a UI component that provides an overview of system performance including CPU, Memory, and Disk usage. The class utilizes the Vaadin framework and displays three usage cards (CPU, Memory, Disk) with corresponding icons and performance values fetched from the system. This component dynamically updates the displayed values as performance data changes, leveraging the SystemService for data retrieval.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    UsageOverviewCard(io.jmix.flowui.view.MessageBundle messageBundle, SystemService systemService)
    Constructs an instance of UsageOverviewCard.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    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

    • UsageOverviewCard

      public UsageOverviewCard(io.jmix.flowui.view.MessageBundle messageBundle, SystemService systemService)
      Constructs an instance of UsageOverviewCard.
      Parameters:
      messageBundle - the bundle providing localized messages for usage card labels
      systemService - the service for retrieving system performance data
  • Method Details

    • updateMachinesPerformance

      public void updateMachinesPerformance()