Class AbstractControlPanel<B>

java.lang.Object
io.micronaut.controlpanel.core.AbstractControlPanel<B>
Type Parameters:
B - the type of the body of the control panel.
All Implemented Interfaces:
ConfigurableControlPanel, ControlPanel<B>, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, io.micronaut.core.util.Toggleable
Direct Known Subclasses:
BeansControlPanel, EnvironmentControlPanel, HealthControlPanel, LoggersControlPanel, RoutesControlPanel

public abstract class AbstractControlPanel<B> extends Object implements ControlPanel<B>
Base class for control panels that can delegate some of its values to a ControlPanelConfiguration.
Since:
1.0.0
Author:
Álvaro Sánchez-Mariscal
  • Field Details

    • controlPanelName

      @NonNull protected final @NonNull String controlPanelName
    • configuration

      @NonNull protected final @NonNull ControlPanelConfiguration configuration
  • Constructor Details

    • AbstractControlPanel

      protected AbstractControlPanel(@NonNull @NonNull String controlPanelName, @NonNull @NonNull ControlPanelConfiguration configuration)
  • Method Details

    • getTitle

      public String getTitle()
      Description copied from interface: ConfigurableControlPanel
      The title is displayed in the header of the card UI element.
      Specified by:
      getTitle in interface ConfigurableControlPanel
      Returns:
      the title of the control panel.
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface io.micronaut.core.order.Ordered
    • getIcon

      public String getIcon()
      Description copied from interface: ConfigurableControlPanel
      Icon CSS class of the card UI element.
      Specified by:
      getIcon in interface ConfigurableControlPanel
      Returns:
      the icon class of the control panel.
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface ConfigurableControlPanel
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
      Returns:
      whether this control panel is enabled or not.
    • getName

      @NonNull public @NonNull String getName()
      Specified by:
      getName in interface io.micronaut.core.naming.Named