Class AbstractEachBeanControlPanel<B>

java.lang.Object
io.micronaut.controlpanel.core.AbstractControlPanel<B>
io.micronaut.controlpanel.core.AbstractEachBeanControlPanel<B>
Type Parameters:
B - the body type
All Implemented Interfaces:
ConfigurableControlPanel, ControlPanel<B>, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, io.micronaut.core.util.Toggleable
Direct Known Subclasses:
AbstractCacheControlPanel, ObjectStorageControlPanel

public abstract class AbstractEachBeanControlPanel<B> extends AbstractControlPanel<B>
Base class for control panels that are created for each bean of a specific type. This class provides common functionality for control panels that need to display information about individual beans.
Since:
2.0.0
Author:
Álvaro Sánchez-Mariscal
  • Constructor Details

    • AbstractEachBeanControlPanel

      protected AbstractEachBeanControlPanel(String controlPanelName, ControlPanelConfiguration configuration)
      Constructor.
      Parameters:
      controlPanelName - the control panel name
      configuration - the control panel configuration
  • Method Details

    • getBeanName

      protected abstract String getBeanName()
      Returns the name of the bean this control panel represents.
      Returns:
      the bean name
    • getPanelName

      protected abstract String getPanelName()
      Returns the name of the panel category.
      Returns:
      the panel name
    • getTitle

      public String getTitle()
      Returns the title for this control panel, which is the bean name.
      Specified by:
      getTitle in interface ConfigurableControlPanel
      Overrides:
      getTitle in class AbstractControlPanel<B>
      Returns:
      the title
    • getName

      public String getName()
      Returns the unique name for this control panel, combining the panel name and bean name.
      Specified by:
      getName in interface io.micronaut.core.naming.Named
      Overrides:
      getName in class AbstractControlPanel<B>
      Returns:
      the control panel name
    • getBodyView

      public ControlPanel.View getBodyView()
      Returns the view for the control panel body.
      Returns:
      the body view
    • getDetailedView

      public ControlPanel.View getDetailedView()
      Returns the view for the control panel detailed view.
      Returns:
      the detailed view