Class DebugBar

    • Constructor Detail

      • DebugBar

        public DebugBar​(String id,
                        boolean initiallyExpanded)
        Construct.
        Parameters:
        id - component id
        initiallyExpanded - true to show debug bar initially expanded
        See Also:
        DebugBar(String)
    • Method Detail

      • isVisible

        public boolean isVisible()
        Description copied from class: Component
        Gets whether this component and any children are visible.

        WARNING: this method can be called multiple times during a request. If you override this method, it is a good idea to keep it cheap in terms of processing. Alternatively, you can call Component.setVisible(boolean).

        Overrides:
        isVisible in class Component
        Returns:
        True if component and any children are visible
      • registerContributor

        public static void registerContributor​(IDebugBarContributor contrib)
        Register your own custom contributor that will be part of the debug bar. You must have the context of an application for this thread at the time of calling this method.
        Parameters:
        contrib - custom contributor - can not be null
      • registerContributor

        public static void registerContributor​(IDebugBarContributor contrib,
                                               Application application)
        Register your own custom contributor that will be part of the debug bar. You must have the context of an application for this thread at the time of calling this method.
        Parameters:
        application -
        contrib - custom contributor - can not be null