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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordControl panels are grouped by category.static final recordView 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 StringgetBadge()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.ViewControlPanel.Viewthat will be used to render the body of the control panel.default ControlPanel.CategoryThe category of the control panel.default ControlPanel.ViewControlPanel.Viewthat 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, isEnabledMethods inherited from interface io.micronaut.core.naming.Named
getNameMethods 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.Viewthat will be used to render the body of the control panel.- Returns:
- the view of the control panel.
-
getDetailedView
ControlPanel.Viewthat 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.
-