Interface RootPaneContainer

All Known Implementing Classes:
JDialog, JFrame, JInternalFrame, JWindow

public interface RootPaneContainer
Port of RootPaneContainer — the contract of a component whose single child is a JRootPane, so a caller holding one can reach its content, layered and glass panes without knowing whether it is a frame, a dialog, a window or an internal frame.

Forced to port, rather than reuse the JDK interface per D_whitelist_porting, for MenuElement's reason: five of its seven members traffic in types SB-Emulators emulates (JRootPane, Container, JLayeredPane, Component), so an emulator implementing the JDK's copy would owe it java.awt.Container overloads no import-swapped call site can produce, and would be answering with panes it cannot construct (R_no_vaadin_in_api limb 1). Nothing about the interface is unsatisfiable — only reusing the JDK's copy is. See D_hierarchy_parity.

SwingUtilities.getRootPane(Component) is the reason this is worth porting rather than documenting as absent: without it that method degenerates into an instanceof chain over the concrete window classes, which is how it came to answer null for a JFrame handed to it directly.

  • Method Details