Package io.micronaut.controlpanel.core
Class AbstractControlPanel<B>
java.lang.Object
io.micronaut.controlpanel.core.AbstractControlPanel<B>
- Type Parameters:
B
- the type of the body of the control panel.
- All Implemented Interfaces:
ConfigurableControlPanel
,ControlPanel<B>
,io.micronaut.core.naming.Named
,io.micronaut.core.order.Ordered
,io.micronaut.core.util.Toggleable
- Direct Known Subclasses:
BeansControlPanel
,EnvironmentControlPanel
,HealthControlPanel
,LoggersControlPanel
,RoutesControlPanel
Base class for control panels that can delegate some of its values to a
ControlPanelConfiguration
.- Since:
- 1.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.controlpanel.core.ControlPanel
ControlPanel.Category, ControlPanel.View
-
Field Summary
Modifier and TypeFieldDescriptionprotected final @NonNull ControlPanelConfiguration
protected final @NonNull String
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractControlPanel
(@NonNull String controlPanelName, @NonNull ControlPanelConfiguration configuration) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.controlpanel.core.ControlPanel
getBadge, getBody, getBodyView, getCategory, getDetailedView
-
Field Details
-
controlPanelName
-
configuration
-
-
Constructor Details
-
AbstractControlPanel
protected AbstractControlPanel(@NonNull @NonNull String controlPanelName, @NonNull @NonNull ControlPanelConfiguration configuration)
-
-
Method Details
-
getTitle
Description copied from interface:ConfigurableControlPanel
The title is displayed in the header of the card UI element.- Specified by:
getTitle
in interfaceConfigurableControlPanel
- Returns:
- the title of the control panel.
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-
getIcon
Description copied from interface:ConfigurableControlPanel
Icon CSS class of the card UI element.- Specified by:
getIcon
in interfaceConfigurableControlPanel
- Returns:
- the icon class of the control panel.
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceConfigurableControlPanel
- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- whether this control panel is enabled or not.
-
getName
- Specified by:
getName
in interfaceio.micronaut.core.naming.Named
-