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
ConstructorsConstructorDescriptionUsageOverviewCard(io.jmix.flowui.view.MessageBundle messageBundle, SystemService systemService) Constructs an instance of UsageOverviewCard. -
Method Summary
Methods 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
-
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 labelssystemService- the service for retrieving system performance data
-
-
Method Details
-
updateMachinesPerformance
public void updateMachinesPerformance()
-