Class RadianceStripingUtils

java.lang.Object
org.pushingpixels.radiance.theming.internal.utils.RadianceStripingUtils

public class RadianceStripingUtils extends Object

This class is used to speed up the striping of lists, tables, trees and comboboxes that use Radiance default renderers. This class is for internal use only.

The usage is this:

  • Field Details

    • ODD_COLOR

      private static final String ODD_COLOR
      Name of the client property that stores the background fill color of odd rows. The value should be an instance of Color.
      See Also:
    • EVEN_COLOR

      private static final String EVEN_COLOR
      Name of the client property that stores the background fill color of even rows. The value should be an instance of Color.
      See Also:
  • Constructor Details

    • RadianceStripingUtils

      public RadianceStripingUtils()
  • Method Details

    • setup

      public static void setup(JComponent comp)
      Sets up the specified component for the UI delegate striping.
      Parameters:
      comp - Component.
    • tearDown

      public static void tearDown(JComponent comp)
      Cleans the component after the UI delegate striping is over.
      Parameters:
      comp - Component. Should be the same as passed to setup(JComponent).
    • applyStripedBackground

      public static void applyStripedBackground(JComponent component, int rowIndex, JComponent renderer)
      Applies the striped background to the specified renderer.
      Parameters:
      component - Component (should be the same as passed to setup(JComponent)).
      rowIndex - Row index.
      renderer - Renderer component.