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
FieldsFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIcon()Icon class of the card UI element.@NonNull StringgetName()The unique name of the control panel.intgetOrder()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.booleanEnables/disables this control panel.voidsetEnabled(boolean enabled) Sets whether this control panel is enabled or not.voidSets the icon of this control panel.voidSets the unique name of the control panel.voidsetOrder(int order) Sets the order of this control panel, since they will be displayed sorted by order.voidSets 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:
isEnabledin interfaceConfigurableControlPanel- Specified by:
isEnabledin 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:
getOrderin interfaceio.micronaut.core.order.Ordered
-
getTitle
The title is displayed in the header of the card UI element.- Specified by:
getTitlein interfaceConfigurableControlPanel- Returns:
- the title of the control panel.
-
getIcon
Icon class of the card UI element.- Specified by:
getIconin interfaceConfigurableControlPanel- Returns:
- the icon class of the control panel.
-
getName
The unique name of the control panel. Can be used in URLs.- Specified by:
getNamein 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.
-