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 SummaryFieldsFields inherited from interface io.micronaut.core.order.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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_ENABLEDpublic static final boolean DEFAULT_ENABLED- See Also:
 
- 
PREFIX- See Also:
 
 
- 
- 
Constructor Details- 
ControlPanelConfiguration
 
- 
- 
Method Details- 
isEnabledpublic boolean isEnabled()Enables/disables this control panel. Default value: true.- Specified by:
- isEnabledin interface- ConfigurableControlPanel
- Specified by:
- isEnabledin interface- io.micronaut.core.util.Toggleable
- Returns:
- whether this control panel is enabled or not.
 
- 
getOrderpublic int getOrder()Sets the order of this control panel, since they will be displayed sorted by order.- Specified by:
- getOrderin interface- io.micronaut.core.order.Ordered
 
- 
getTitleThe title is displayed in the header of the card UI element.- Specified by:
- getTitlein interface- ConfigurableControlPanel
- Returns:
- the title of the control panel.
 
- 
getIconIcon class of the card UI element.- Specified by:
- getIconin interface- ConfigurableControlPanel
- Returns:
- the icon class of the control panel.
 
- 
getNameThe unique name of the control panel. Can be used in URLs.- Specified by:
- getNamein interface- io.micronaut.core.naming.Named
 
- 
setNameSets the unique name of the control panel. Can be used in URLs.- Parameters:
- name- the name of the control panel.
 
- 
setEnabledpublic void setEnabled(boolean enabled) Sets whether this control panel is enabled or not.- Parameters:
- enabled- whether this control panel is enabled or not.
 
- 
setOrderpublic 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.
 
- 
setTitleSets the title of this control panel.- Parameters:
- title- the title of this control panel.
 
- 
setIconSets the icon of this control panel.- Parameters:
- icon- the icon of this control panel.
 
 
-