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
FieldsModifier and TypeFieldDescriptionprotected final @NonNull ControlPanelConfigurationprotected final @NonNull StringFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractControlPanel(@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, waitMethods 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:ConfigurableControlPanelThe title is displayed in the header of the card UI element.- Specified by:
getTitlein interfaceConfigurableControlPanel- Returns:
- the title of the control panel.
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceio.micronaut.core.order.Ordered
-
getIcon
Description copied from interface:ConfigurableControlPanelIcon CSS class of the card UI element.- Specified by:
getIconin interfaceConfigurableControlPanel- Returns:
- the icon class of the control panel.
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceConfigurableControlPanel- Specified by:
isEnabledin interfaceio.micronaut.core.util.Toggleable- Returns:
- whether this control panel is enabled or not.
-
getName
- Specified by:
getNamein interfaceio.micronaut.core.naming.Named
-