Package io.micronaut.controlpanel.core
Class AbstractEachBeanControlPanel<B>
java.lang.Object
io.micronaut.controlpanel.core.AbstractControlPanel<B>
io.micronaut.controlpanel.core.AbstractEachBeanControlPanel<B>
- Type Parameters:
B- the body type
- All Implemented Interfaces:
ConfigurableControlPanel,ControlPanel<B>,io.micronaut.core.naming.Named,io.micronaut.core.order.Ordered,io.micronaut.core.util.Toggleable
- Direct Known Subclasses:
AbstractCacheControlPanel,ObjectStorageControlPanel
Base class for control panels that are created for each bean of a specific type.
This class provides common functionality for control panels that need to display
information about individual beans.
- Since:
- 2.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
Fields inherited from class io.micronaut.controlpanel.core.AbstractControlPanel
configuration, controlPanelNameFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractEachBeanControlPanel(String controlPanelName, ControlPanelConfiguration configuration) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringReturns the name of the bean this control panel represents.Returns the view for the control panel body.Returns the view for the control panel detailed view.getName()Returns the unique name for this control panel, combining the panel name and bean name.protected abstract StringReturns the name of the panel category.getTitle()Returns the title for this control panel, which is the bean name.Methods inherited from class io.micronaut.controlpanel.core.AbstractControlPanel
getIcon, getOrder, isEnabledMethods 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, getCategory, hasDetails
-
Constructor Details
-
AbstractEachBeanControlPanel
protected AbstractEachBeanControlPanel(String controlPanelName, ControlPanelConfiguration configuration) Constructor.- Parameters:
controlPanelName- the control panel nameconfiguration- the control panel configuration
-
-
Method Details
-
getBeanName
Returns the name of the bean this control panel represents.- Returns:
- the bean name
-
getPanelName
Returns the name of the panel category.- Returns:
- the panel name
-
getTitle
Returns the title for this control panel, which is the bean name.- Specified by:
getTitlein interfaceConfigurableControlPanel- Overrides:
getTitlein classAbstractControlPanel<B>- Returns:
- the title
-
getName
Returns the unique name for this control panel, combining the panel name and bean name.- Specified by:
getNamein interfaceio.micronaut.core.naming.Named- Overrides:
getNamein classAbstractControlPanel<B>- Returns:
- the control panel name
-
getBodyView
Returns the view for the control panel body.- Returns:
- the body view
-
getDetailedView
Returns the view for the control panel detailed view.- Returns:
- the detailed view
-