Class DataSourceControlPanel
java.lang.Object
io.micronaut.controlpanel.core.AbstractControlPanel<Body>
io.micronaut.controlpanel.core.AbstractEachBeanControlPanel<Body>
io.micronaut.controlpanel.panels.datasource.DataSourceControlPanel
- All Implemented Interfaces:
ConfigurableControlPanel, ControlPanel<Body>, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, io.micronaut.core.util.Toggleable
@EachBean(DataSource.class)
public class DataSourceControlPanel
extends AbstractEachBeanControlPanel<Body>
Control panel for DataSource metadata, displaying tables, columns, keys, etc.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ControlPanel
ControlPanel.Category, ControlPanel.View -
Field Summary
FieldsFields inherited from class AbstractControlPanel
configuration, controlPanelNameFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionDataSourceControlPanel(String beanName, DataSourceService dataSourceService, io.micronaut.context.env.Environment environment, ControlPanelConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptiongetBadge()Badge text to be displayed in the header of the card UI element.protected StringReturns the name of the bean this control panel represents.getBody()Used to render the body of the control panel.The category of the control panel.getIcon()Icon CSS class of the card UI element.protected StringReturns the name of the panel category.Methods inherited from class AbstractEachBeanControlPanel
getBodyView, getDetailedView, getName, getTitleMethods inherited from class AbstractControlPanel
getOrder, isEnabledMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ControlPanel
hasDetails
-
Field Details
-
NAME
- See Also:
-
DEFAULT_ICON_CLASS
- See Also:
-
-
Constructor Details
-
DataSourceControlPanel
public DataSourceControlPanel(@Parameter String beanName, @Parameter DataSourceService dataSourceService, io.micronaut.context.env.Environment environment, @Named("datasource") ControlPanelConfiguration configuration)
-
-
Method Details
-
getBeanName
Description copied from class:AbstractEachBeanControlPanelReturns the name of the bean this control panel represents.- Specified by:
getBeanNamein classAbstractEachBeanControlPanel<Body>- Returns:
- the bean name
-
getPanelName
Description copied from class:AbstractEachBeanControlPanelReturns the name of the panel category.- Specified by:
getPanelNamein classAbstractEachBeanControlPanel<Body>- Returns:
- the panel name
-
getBody
Description copied from interface:ControlPanelUsed to render the body of the control panel.- Returns:
- the body of the control panel.
-
getBadge
Description copied from interface:ControlPanelBadge text to be displayed in the header of the card UI element.- Returns:
- the badge text of the control panel.
-
getIcon
Description copied from interface:ConfigurableControlPanelIcon CSS class of the card UI element.- Specified by:
getIconin interfaceConfigurableControlPanel- Overrides:
getIconin classAbstractControlPanel<Body>- Returns:
- the icon class of the control panel.
-
getCategory
Description copied from interface:ControlPanelThe category of the control panel.- Returns:
- the category of the control panel.
-