Class JLayeredPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
JDesktopPane

public class JLayeredPane extends JComponent implements Accessible
Minimal port of JLayeredPane. The JDK class manages z-ordered children across named layers (DEFAULT / PALETTE / MODAL / POPUP / DRAG); our 4d port exposes the constants + add/setLayer surface for API parity, but doesn't actually z-order in the browser — children render at their insertion order (R_best_effort_behaviour/R_infra_not_surface best-effort). Suitable for migrated code that instantiates a layered pane and reads back its layers; not suitable for apps that actually rely on layer-based overlay rendering, which a later slice would need to hook into Vaadin's dialog/popover overlay machinery.
See Also:
  • Field Details

    • DEFAULT_LAYER

      public static final Integer DEFAULT_LAYER
    • PALETTE_LAYER

      public static final Integer PALETTE_LAYER
    • DRAG_LAYER

      public static final Integer DRAG_LAYER
    • FRAME_CONTENT_LAYER

      public static final Integer FRAME_CONTENT_LAYER
    • LAYER_PROPERTY

      public static final String LAYER_PROPERTY
      See Also:
  • Constructor Details

    • JLayeredPane

      public JLayeredPane()
  • Method Details

    • setLayer

      public void setLayer(Component c, int layer)
    • setLayer

      public void setLayer(Component c, int layer, int position)
    • getLayer

      public int getLayer(Component c)
    • getLayer

      public static int getLayer(JComponent c)
    • getIndexOf

      public int getIndexOf(Component c)
    • getComponentCountInLayer

      public int getComponentCountInLayer(int layer)
    • getComponentsInLayer

      public Component[] getComponentsInLayer(int layer)
    • highestLayer

      public int highestLayer()
    • lowestLayer

      public int lowestLayer()
    • getPosition

      public int getPosition(Component c)
    • moveToFront

      public void moveToFront(Component c)
    • moveToBack

      public void moveToBack(Component c)
    • getUIClassID

      public String getUIClassID()
      Overrides:
      getUIClassID in class JComponent
    • getAccessibleContext

      public AccessibleContext getAccessibleContext()
      Specified by:
      getAccessibleContext in interface Accessible
      Overrides:
      getAccessibleContext in class Component