Class SJInternalFrame
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasAriaRole, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasComponentsOfType<com.vaadin.flow.component.Component>, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.dialog.DialogVariant>, ComponentMixin, ContainerMixin, JComponentMixin, Serializable
JInternalFrame (SD_sjinternalframe) — the peer for
:emulators JInternalFrame. An internal frame renders as a
decorated non-modal Vaadin Dialog
overlay: it is the inverse of SJWindow, which strips the Dialog
chrome. Frames escape the desktop-pane's bounds and stack in Vaadin's
overlay order — reusing Vaadin's overlay primitive sidesteps the
D_glasspane_structural/SD_sjframe structural layered-pane deferral (D_internal_frames).
Ctor delta over SWindow (SD_internalframe_chrome)
- Keeps chrome —
setHeaderTitlefor the title, a header close-X icon (SD_internalframe_fire_seams),setDraggable(true)+setResizable(true): the title-bar drag and resize grips are JInternalFrame's drag /resizableaffordances, which Vaadin Dialog draws for free. - Modeless —
ModalityMode.MODELESS; an internal frame never blocks the page. - Closes only via its close-X — ESC / outside-click dismissal disarmed, matching Swing (a JInternalFrame doesn't close on ESC).
Lifecycle events (SD_internalframe_fire_seams)
The threeSWindow lifecycle fire seams are overridden to fire
SInternalFrameEvent instead of window events — OPENED on first
show, CLOSING on the close-X (and any peer close), CLOSED on dispose.
ACTIVATED / DEACTIVATED fire from setSelected(boolean) (SD_internalframe_activation).
ICONIFIED / DEICONIFIED never fire here — minimize is emulator-only
(SD_no_surrogate_iconify). Server-side-fire-only (SD_listeners_without_analog shape), like the Window families.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.dialog.Dialog
com.vaadin.flow.component.dialog.Dialog.ClosedEvent, com.vaadin.flow.component.dialog.Dialog.DialogCloseActionEvent, com.vaadin.flow.component.dialog.Dialog.DialogDraggedEvent, com.vaadin.flow.component.dialog.Dialog.DialogFooter, com.vaadin.flow.component.dialog.Dialog.DialogHeader, com.vaadin.flow.component.dialog.Dialog.DialogResizeEvent, com.vaadin.flow.component.dialog.Dialog.OpenedChangeEventNested classes/interfaces inherited from interface JComponentMixin
JComponentMixin.ActionStandin -
Field Summary
Fields inherited from interface JComponentMixin
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Collection<com.vaadin.flow.component.Component> components) voidaddComponentAtIndex(int index, com.vaadin.flow.component.Component component) voidprotected SJRootPaneSubclass hook matching JDK JInternalFrame'screateRootPane.protected voidDispose fire (WINDOW_CLOSED), fromSWindow.dispose().protected voidUser-close fire (WINDOW_CLOSING).voidfireInternalFrameEvent(int id) Dispatch oneSInternalFrameEventid to registered listeners.protected voidFirst-show fire (WINDOW_OPENED), gated bySWindow.everShowninSWindow.setVisible(boolean).com.vaadin.flow.component.html.Divcom.vaadin.flow.component.Componentcom.vaadin.flow.component.ComponentWalks the Vaadin parent chain and returns the firstSJRootPaneancestor, ornullif none.getTitle()Never-null.booleanbooleanDiagnostic — mirrors the shape ofjava.awt.Window.paramString().voidremove(com.vaadin.flow.component.Component... components) voidremove(Collection<com.vaadin.flow.component.Component> components) voidvoidvoidsetClosable(boolean closable) Show / hide the header close-X (JInternalFrameclosable).voidsetContentPane(com.vaadin.flow.component.html.Div newPane) voidsetGlassPane(com.vaadin.flow.component.Component glass) voidsetIconifiable(boolean iconifiable) Show / hide the header minimize button (JInternalFrameiconifiable).voidInstall the action the header minimize button runs — the emulator wires this to its vetoablesetIcon(true)so a header-click honours the JInternalFrameiconconstrained property.voidsetLayeredPane(com.vaadin.flow.component.Component layered) voidsetMaximizable(boolean maximizable) Show / hide the header maximize button (JInternalFramemaximizable).voidInstall the action the header maximize button runs (togglesmaximum).voidsetMaximum(boolean maximum) Maximize / restore.voidsetSelected(boolean selected) Select / deselect the frame.voidMirrorsDialog.setHeaderTitle(String); fires "title" PCE.Methods inherited from class SWindow
addComponentListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, centerOnScreen, createBufferStrategy, createBufferStrategy, dispose, fireWindowEvent, fireWindowFocusEvent, fireWindowStateEvent, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isUndecoratedChrome, isValidateRoot, pack, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setAutoRequestFocus, setBounds, setEnabled, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocationByPlatform, setLocationRelativeTo, setOpacity, setShape, setSize, setUndecoratedChrome, setVisible, toBack, toFrontMethods inherited from class com.vaadin.flow.component.dialog.Dialog
addAttachListener, addClosedListener, addDetachListener, addDialogCloseActionListener, addDraggedListener, addOpenedChangeListener, addResizeListener, bindChildren, bindHeight, bindVisible, bindWidth, close, getAriaLabel, getChildren, getFooter, getHeader, getHeaderTitle, getHeight, getLeft, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getModality, getOverlayRole, getRole, getStyle, getTop, getWidth, isAutofocus, isCloseOnEsc, isCloseOnOutsideClick, isDraggable, isFocusTrap, isKeepInViewport, isModal, isOpened, isResizable, onAttach, open, setAriaLabel, setAutofocus, setCloseOnEsc, setCloseOnOutsideClick, setDraggable, setFocusTrap, setHeaderTitle, setHeight, setKeepInViewport, setLeft, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setModal, setModality, setOpened, setOverlayRole, setResizable, setRole, setTop, setWidthMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, whenAttachedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ComponentMixin
_installSwingClass, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, dispatchEvent, doLayout, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getComponentListeners, getCursor, getFocusListeners, getFont, getForeground, getGraphics, getHierarchyBoundsListeners, getHierarchyListeners, getKeyListeners, getLocation, getMaximumSize, getMinimumSize, getMouseListeners, getName, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolTipText, getX, getY, grabFocus, hasFocus, invalidate, isDisplayable, isFocusable, isFocusOwner, isShowing, paint, paintAll, print, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, revalidate, setBackground, setBounds, setCursor, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validateMethods inherited from interface ContainerMixin
addContainerListener, getContainerListeners, getLayout, paintComponents, printComponents, removeContainerListener, setLayoutMethods inherited from interface com.vaadin.flow.component.HasAriaRole
getAriaRole, setAriaRoleMethods inherited from interface com.vaadin.flow.component.HasComponents
addMethods inherited from interface com.vaadin.flow.component.HasComponentsOfType
add, addComponentAsFirst, getComponentAt, getComponentCount, indexOf, replaceMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
bindEnabled, isEnabledMethods inherited from interface com.vaadin.flow.component.HasSize
bindHeight, bindWidth, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, bindThemeName, bindThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, bindThemeVariant, bindThemeVariants, removeThemeVariants, setThemeVariant, setThemeVariants, setThemeVariantsMethods inherited from interface JComponentMixin
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, isDoubleBuffered, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, paintImmediately, paintImmediately, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, requestDefaultFocus, resetKeyboardActions, reshape, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDoubleBuffered, setFocusTraversalKeys, setInheritsPopupMenu, setInputMap, setInputVerifier, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, updateUI
-
Constructor Details
-
SJInternalFrame
public SJInternalFrame() -
SJInternalFrame
-
-
Method Details
-
setClosable
public void setClosable(boolean closable) Show / hide the header close-X (JInternalFrameclosable). -
setIconifiable
public void setIconifiable(boolean iconifiable) Show / hide the header minimize button (JInternalFrameiconifiable). -
setMaximizable
public void setMaximizable(boolean maximizable) Show / hide the header maximize button (JInternalFramemaximizable). -
setIconifyHandler
Install the action the header minimize button runs — the emulator wires this to its vetoablesetIcon(true)so a header-click honours the JInternalFrameiconconstrained property. -
setMaximizeHandler
Install the action the header maximize button runs (togglesmaximum). -
getTitle
Never-null. -
setTitle
MirrorsDialog.setHeaderTitle(String); fires "title" PCE. -
isSelected
public boolean isSelected() -
setSelected
public void setSelected(boolean selected) Select / deselect the frame. FiresINTERNAL_FRAME_ACTIVATED/DEACTIVATEDon change and a"selected"PCE. Precise front-raise is Vaadin overlay order (R_layouts_close_enough) — no programmatic toFront. -
isMaximum
public boolean isMaximum() -
setMaximum
public void setMaximum(boolean maximum) Maximize / restore. Maximize drives the overlay to fill the viewport (top/left 0, 100%/100%); restore returns to the captured pre-maximize geometry, or the centered default if none. Vaadin Dialog has no native maximize toggle, so this is surrogate-driven geometry. Bound property only — noSInternalFrameEventfires (matches JDK). -
addInternalFrameListener
-
removeInternalFrameListener
-
getInternalFrameListeners
-
fireInternalFrameEvent
public void fireInternalFrameEvent(int id) Dispatch oneSInternalFrameEventid to registered listeners. -
fireOpenedEvent
protected void fireOpenedEvent()Description copied from class:SWindowFirst-show fire (WINDOW_OPENED), gated bySWindow.everShowninSWindow.setVisible(boolean).- Overrides:
fireOpenedEventin classSWindow
-
fireClosingEvent
protected void fireClosingEvent()Description copied from class:SWindowUser-close fire (WINDOW_CLOSING). Routed throughSWindow.processWindowEvent(SWindowEvent)directly (notSWindow.fireWindowEvent(int)) so a close-op switch overridden by SJFrame / SJDialog applies even when no WindowListener is registered.- Overrides:
fireClosingEventin classSWindow
-
fireClosedEvent
protected void fireClosedEvent()Description copied from class:SWindowDispose fire (WINDOW_CLOSED), fromSWindow.dispose().- Overrides:
fireClosedEventin classSWindow
-
getContentPane
public com.vaadin.flow.component.html.Div getContentPane() -
setContentPane
public void setContentPane(com.vaadin.flow.component.html.Div newPane) -
add
-
addComponentAtIndex
public void addComponentAtIndex(int index, com.vaadin.flow.component.Component component) - Specified by:
addComponentAtIndexin interfacecom.vaadin.flow.component.HasComponentsOfType<com.vaadin.flow.component.Component>- Overrides:
addComponentAtIndexin classcom.vaadin.flow.component.dialog.Dialog
-
remove
public void remove(com.vaadin.flow.component.Component... components) -
remove
-
removeAll
public void removeAll()- Specified by:
removeAllin interfacecom.vaadin.flow.component.HasComponentsOfType<com.vaadin.flow.component.Component>- Overrides:
removeAllin classcom.vaadin.flow.component.dialog.Dialog
-
getRootPane
Description copied from interface:JComponentMixinWalks the Vaadin parent chain and returns the firstSJRootPaneancestor, ornullif none. Mirrors the JDKJComponent.getRootPane()contract (climb-until-root-pane) over the surrogate-layer types.Surrogate-layer divergence from JDK signature: returns
SJRootPane(Vaadin-rooted) rather thanjavax.swing.JRootPane. The same R_vaadin_first + SD_sjframe stance that droveJComponentMixin.getTopLevelAncestor()to return VaadinComponentapplies here — SJRootPane is deliberately not a JDK JRootPane subclass (it extendscom.vaadin.flow.component.html.Div), so a JDK-typed accessor would have to either fabricate a wrapper or stay permanently null. The Vaadin-typed accessor letsSJFrameprovide a covariant override that returns its lazy-constructed pane, and lets standalone surrogates report a real ancestor when one exists. Migrators porting Swing code that read the JDK type adjust the variable type at the surrogate stage; the:emulators.JComponent.getRootPane()path keeps the JDK-typed signature for stage-2 import-swap compatibility. -
createRootPane
Subclass hook matching JDK JInternalFrame'screateRootPane. -
getLayeredPane
public com.vaadin.flow.component.Component getLayeredPane() -
setLayeredPane
public void setLayeredPane(com.vaadin.flow.component.Component layered) -
getGlassPane
public com.vaadin.flow.component.Component getGlassPane() -
setGlassPane
public void setGlassPane(com.vaadin.flow.component.Component glass) -
paramString
Description copied from class:SWindowDiagnostic — mirrors the shape ofjava.awt.Window.paramString(). Subclasses (SFrame) override and chain super to add Frame-/Dialog-specific fields liketitle.- Overrides:
paramStringin classSWindow
-