Package io.micronaut.controlpanel.core
Interface ControlPanel<B>
- Type Parameters:
B
- the type of the body of the control panel.
- All Superinterfaces:
ConfigurableControlPanel
,io.micronaut.core.naming.Named
,io.micronaut.core.order.Ordered
,io.micronaut.core.util.Toggleable
- All Known Implementing Classes:
AbstractControlPanel
,BeansControlPanel
,EnvironmentControlPanel
,HealthControlPanel
,LoggersControlPanel
,RoutesControlPanel
A control panel is a UI component that displays some information about the application.
- Since:
- 1.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
Control panels are grouped by category.static final record
View to be rendered by the control panel. -
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
getBadge()
Badge text to be displayed in the header of the card UI element.getBody()
Used to render the body of the control panel.default ControlPanel.View
ControlPanel.View
that will be used to render the body of the control panel.default ControlPanel.Category
The category of the control panel.default ControlPanel.View
ControlPanel.View
that will be used to render the body of the control panel when it has been selected.Methods inherited from interface io.micronaut.controlpanel.core.ConfigurableControlPanel
getIcon, getTitle, isEnabled
Methods inherited from interface io.micronaut.core.naming.Named
getName
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Method Details
-
getBody
B getBody()Used to render the body of the control panel.- Returns:
- the body of the control panel.
-
getBodyView
ControlPanel.View
that will be used to render the body of the control panel.- Returns:
- the view of the control panel.
-
getDetailedView
ControlPanel.View
that will be used to render the body of the control panel when it has been selected.- Returns:
- the view of the control panel.
-
getBadge
Badge text to be displayed in the header of the card UI element.- Returns:
- the badge text of the control panel.
-
getCategory
The category of the control panel.- Returns:
- the category of the control panel.
-