Class JWindow
java.lang.Object
vaadinx.awt.Component
vaadinx.awt.Container
vaadinx.awt.Window
vaadinx.swing.JWindow
- All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer
Emulator for
JWindow. R_leaf_peer_lockdown-locked peer is SJWindow.- See Also:
-
Field Summary
FieldsFields inherited from class Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, FILL_CHROME, FILL_DEFAULT, LEFT_ALIGNMENT, listenerList, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected JRootPaneA freshJRootPane, whichsetRootPane(JRootPane)hands to the surrogate.Delegates to the root pane, as the JDK's does.protected booleanWhetheradd/remove/setLayoutredirect into the content pane.protected StringvoidvoidsetContentPane(Container newPane) Delegates to the root pane, as the JDK's does — sowindow.getContentPane()andwindow.getRootPane().getContentPane()are the same pane by construction rather than by a mirror kept in step.voidsetGlassPane(Component glass) voidsetLayeredPane(JLayeredPane layered) voidsetLayout(LayoutManager manager) Stores the manager and invalidates as AWT does, minus the CSS dispatch — seeWindow.windowLayout.protected voidsetRootPane(JRootPane newRootPane) The JDK's body: remove the outgoing root pane, then add the incoming one, with root-pane checking cleared soaddImpl(Component, Object, int)'s redirect falls through instead of routing the new root pane into the old one's content pane.protected voidsetRootPaneCheckingEnabled(boolean enabled) voidvoidprotected voidMirror of JDKJWindow.windowInit: take the default locale, build the root pane throughcreateRootPane()and plant it viasetRootPane(JRootPane), then turn root-pane checking on — each as a call, so a subclass override of any hook actually runs (R_no_vaadin_in_api limb 2).Methods inherited from class Window
addNotify, addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, applyVisibleToPeer, applyVisibleToPeerImpl, blocksAfterVisibilityChange, createBufferStrategy, createBufferStrategy, dispose, disposePeer, fireWindowEvent, fireWindowFocusEvent, fireWindowStateEvent, getBackground, getBounds, getBounds, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getHeight, getIconImages, getInputContext, getLayout, getLocale, getLocation, getLocation, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getSize, getSize, getToolkit, getWarningString, getWidth, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, getX, getY, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isValidateRoot, pack, paint, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBackground, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setOpacity, setShape, setSize, setSize, setVisible, show, toBack, toFrontMethods inherited from class Container
add, add, add, add, add, addContainerListener, addSlotChild, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, fireHierarchyEvent, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, peerContentElement, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeSlotChild, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTreeMethods inherited from class Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, applyBackgroundToPeer, awtListeners, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, defaultFillCssClass, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, fireComponentEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isThemeDefault, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, peerIs, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, suppressMouseBridge, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, withPeer, withPeerOnLiveUI
-
Field Details
-
rootPane
-
rootPaneCheckingEnabled
protected boolean rootPaneCheckingEnabled
-
-
Constructor Details
-
JWindow
public JWindow() -
JWindow
-
JWindow
-
JWindow
-
JWindow
-
-
Method Details
-
windowInit
protected void windowInit()Mirror of JDKJWindow.windowInit: take the default locale, build the root pane throughcreateRootPane()and plant it viasetRootPane(JRootPane), then turn root-pane checking on — each as a call, so a subclass override of any hook actually runs (R_no_vaadin_in_api limb 2).Three lines where
JFrame.frameInit/JDialog.dialogInithave five:JWindow.windowInitcalls neitherenableEventsnorsetBackground(JWindow.java:260). Reproduced rather than regularised — a migrator'ssetBackgroundoverride must *not* fire from a JWindow constructor. -
getContentPane
Delegates to the root pane, as the JDK's does.- Specified by:
getContentPanein interfaceRootPaneContainer
-
setContentPane
Delegates to the root pane, as the JDK's does — sowindow.getContentPane()andwindow.getRootPane().getContentPane()are the same pane by construction rather than by a mirror kept in step.- Specified by:
setContentPanein interfaceRootPaneContainer
-
addImpl
-
setLayout
Description copied from class:WindowStores the manager and invalidates as AWT does, minus the CSS dispatch — seeWindow.windowLayout. -
remove
-
setRootPaneCheckingEnabled
protected void setRootPaneCheckingEnabled(boolean enabled) -
isRootPaneCheckingEnabled
protected boolean isRootPaneCheckingEnabled()Whetheradd/remove/setLayoutredirect into the content pane. The redirect consults this method rather than the field, so a subclass override is honoured (R_no_vaadin_in_api second limb, D_r12_provenance). -
getRootPane
- Specified by:
getRootPanein interfaceRootPaneContainer
-
setRootPane
The JDK's body: remove the outgoing root pane, then add the incoming one, with root-pane checking cleared soaddImpl(Component, Object, int)'s redirect falls through instead of routing the new root pane into the old one's content pane. -
createRootPane
A freshJRootPane, whichsetRootPane(JRootPane)hands to the surrogate. -
getLayeredPane
- Specified by:
getLayeredPanein interfaceRootPaneContainer
-
setLayeredPane
- Specified by:
setLayeredPanein interfaceRootPaneContainer
-
getGlassPane
- Specified by:
getGlassPanein interfaceRootPaneContainer
-
setGlassPane
- Specified by:
setGlassPanein interfaceRootPaneContainer
-
update
-
paramString
- Overrides:
paramStringin classContainer
-
getAccessibleContext
- Specified by:
getAccessibleContextin interfaceAccessible- Overrides:
getAccessibleContextin classWindow
-
setTransferHandler
-
getTransferHandler
-