Class PanelPostProcessors


  • public class PanelPostProcessors
    extends Object
    Ready-made post processors. Cover common use-cases and server as an example.
    Author:
    michael
    • Constructor Detail

      • PanelPostProcessors

        public PanelPostProcessors()
    • Method Detail

      • addBorder

        public static PanelPostProcessor addBorder​(Border b)
        Adds a border to the product panel.
        Parameters:
        b - the border to be added.
        Returns:
        The product.
      • addBorder

        public static PanelPostProcessor addBorder​(String title)
        Adds a TitledBorder to the panel, with the passed title.
        Parameters:
        title - the passed title.
        Returns:
        the product.
      • wrapInScrollPane

        public static PanelPostProcessor wrapInScrollPane​(Boolean hScroll,
                                                          Boolean vScroll)
        Wraps the panel in a JScrollPane. Passed values are tri-state:
        • Boolean.FALSE means "never show scrollbar".
        • null means "use default behavior".
        • Boolean.TRUE means "always show scrollbar".
        Parameters:
        hScroll - scroll policy for horizontal scrolling
        vScroll - scroll policy for vertical scrolling
        Returns:
        the JScrollPane.