Class XRegion

java.lang.Object
javax.swing.plaf.synth.Region
org.jdesktop.swingx.plaf.synth.XRegion

public class XRegion extends Region
Extended Region to register custom component delegates.
Author:
Jeanette Winzenburg
  • Field Details

    • XLIST

      public static final Region XLIST
  • Constructor Details

    • XRegion

      public XRegion(String name, String dummyUI, boolean subregion, String realUI, Region parent)
      Creates a XRegion with the specified name.
      Parameters:
      name - Name of the region
      subregion - Whether or not this is a subregion.
      realUI - String that will be returned from component.getUIClassID.
      parent - the parent region which this is extending.
  • Method Details

    • getXRegion

      public static Region getXRegion(JComponent component, boolean useParent)
      Returns a region appropriate for the component.
      Parameters:
      component - the component to get the region for
      useParent - a boolean indicating whether or not to return a fallback of the XRegion, if available
      Returns:
      a region for the component or null if not available.