Class ControlPanelConfiguration
java.lang.Object
io.micronaut.controlpanel.core.config.ControlPanelConfiguration
- All Implemented Interfaces:
ConfigurableControlPanel
,io.micronaut.core.naming.Named
,io.micronaut.core.order.Ordered
,io.micronaut.core.util.Toggleable
@EachProperty("micronaut.control-panel.panels")
public class ControlPanelConfiguration
extends Object
implements ConfigurableControlPanel
Per-panel configuration properties.
- Since:
- 1.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetIcon()
Icon class of the card UI element.@NonNull String
getName()
The unique name of the control panel.int
getOrder()
Sets the order of this control panel, since they will be displayed sorted by order.getTitle()
The title is displayed in the header of the card UI element.boolean
Enables/disables this control panel.void
setEnabled
(boolean enabled) Sets whether this control panel is enabled or not.void
Sets the icon of this control panel.void
Sets the unique name of the control panel.void
setOrder
(int order) Sets the order of this control panel, since they will be displayed sorted by order.void
Sets the title of this control panel.
-
Field Details
-
DEFAULT_ICON
- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLED- See Also:
-
PREFIX
- See Also:
-
-
Constructor Details
-
ControlPanelConfiguration
-
-
Method Details
-
isEnabled
public boolean isEnabled()Enables/disables this control panel. Default value: true.- Specified by:
isEnabled
in interfaceConfigurableControlPanel
- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- whether this control panel is enabled or not.
-
getOrder
public int getOrder()Sets the order of this control panel, since they will be displayed sorted by order.- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-
getTitle
The title is displayed in the header of the card UI element.- Specified by:
getTitle
in interfaceConfigurableControlPanel
- Returns:
- the title of the control panel.
-
getIcon
Icon class of the card UI element.- Specified by:
getIcon
in interfaceConfigurableControlPanel
- Returns:
- the icon class of the control panel.
-
getName
The unique name of the control panel. Can be used in URLs.- Specified by:
getName
in interfaceio.micronaut.core.naming.Named
-
setName
Sets the unique name of the control panel. Can be used in URLs.- Parameters:
name
- the name of the control panel.
-
setEnabled
public void setEnabled(boolean enabled) Sets whether this control panel is enabled or not.- Parameters:
enabled
- whether this control panel is enabled or not.
-
setOrder
public void setOrder(int order) Sets the order of this control panel, since they will be displayed sorted by order.- Parameters:
order
- the order of this control panel.
-
setTitle
Sets the title of this control panel.- Parameters:
title
- the title of this control panel.
-
setIcon
Sets the icon of this control panel.- Parameters:
icon
- the icon of this control panel.
-