Class JDesktopPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JDesktopPane extends JLayeredPane implements Accessible
Emulator for JDesktopPane. Emulator-only holder over a Div background.
See Also:
  • Field Details

  • Constructor Details

    • JDesktopPane

      public JDesktopPane()
  • Method Details

    • addImpl

      protected void addImpl(Component comp, Object constraints, int index)
      Overrides:
      addImpl in class Container
    • remove

      public void remove(Component comp)
      Overrides:
      remove in class Container
    • getAllFrames

      public JInternalFrame[] getAllFrames()
      All internal frames on this desktop, in add order.
    • getAllFramesInLayer

      public JInternalFrame[] getAllFramesInLayer(int layer)
      Internal frames assigned to the given layer.
    • getSelectedFrame

      public JInternalFrame getSelectedFrame()
      The currently selected (active) frame, or null.
    • setSelectedFrame

      public void setSelectedFrame(JInternalFrame f)
      Record the selected frame. Bookkeeping only — this does not drive frame.setSelected (that would loop through the frame's own selection path); callers select the frame via frame.setSelected and the desktop tracks the result, matching JDK's split.
    • getDragMode

      public int getDragMode()
    • setDragMode

      public void setDragMode(int dragMode)
      Stored for round-trip; has no effect — Vaadin's Dialog overlay drags live regardless, and there is no outline-drag rendering to switch to (R_layouts_close_enough). WARN only on the non-default OUTLINE mode so the round-trip default set doesn't spam logs.
    • getDesktopManager

      public DesktopManager getDesktopManager()
    • setDesktopManager

      public void setDesktopManager(DesktopManager d)
      Stored for round-trip but never consulted — frame iconify / maximize / drag are driven by the emulator + Vaadin overlay directly, not through a DesktopManager (D_jdesktoppane_holder). WARN so migrated code installing a custom manager surfaces in logs.
    • updateUI

      public void updateUI()
      Overrides:
      updateUI in class JComponent
    • getUIClassID

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

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