Class Frame
java.lang.Object
vaadinx.awt.Component
vaadinx.awt.Container
vaadinx.awt.Window
vaadinx.awt.Frame
- All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
- Direct Known Subclasses:
JFrame
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.replaced byCursor.DEFAULT_CURSOR.static final intDeprecated.replaced byCursor.E_RESIZE_CURSOR.static final intDeprecated.replaced byCursor.HAND_CURSOR.static final intstatic final intstatic final intstatic final intstatic final intDeprecated.replaced byCursor.MOVE_CURSOR.static final intDeprecated.replaced byCursor.N_RESIZE_CURSOR.static final intDeprecated.replaced byCursor.NE_RESIZE_CURSOR.static final intstatic final intDeprecated.replaced byCursor.NW_RESIZE_CURSOR.static final intDeprecated.replaced byCursor.S_RESIZE_CURSOR.static final intDeprecated.replaced byCursor.SE_RESIZE_CURSOR.static final intDeprecated.replaced byCursor.SW_RESIZE_CURSOR.static final intDeprecated.replaced byCursor.TEXT_CURSOR.static final intDeprecated.replaced byCursor.W_RESIZE_CURSOR.static final intDeprecated.replaced byCursor.WAIT_CURSOR.Fields 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
ConstructorsModifierConstructorDescriptionFrame()protectedFrame(com.vaadin.flow.component.Component peer) protected <P extends com.vaadin.flow.component.Component>The lazy form: seeComponent(Class, Supplier).Frame(String title, GraphicsConfiguration gc) -
Method Summary
Modifier and TypeMethodDescriptionintintstatic Frame[]intgetState()getTitle()booleanbooleanprotected Stringvoidremove(MenuComponent arg0) voidsetBackground(Color bgColor) voidsetCursor(int type) voidsetExtendedState(int state) voidsetMaximizedBounds(Rectangle bounds) voidsetMenuBar(MenuBar arg0) An AWT menu bar renders nothing here —MenuBaris not aComponentand SB-Emulators ports no peer for it, where a SwingJMenuBargoes throughJFrame.setJMenuBar(JMenuBar).voidsetOpacity(float opacity) AWT's other two throws are not reproduced, and deliberately: both ask the platform whether it can do translucency at all — a browser can, so the answers would be "yes, supported" and the throws unreachable.voidsetResizable(boolean b) voidvoidsetState(int state) voidvoidsetUndecorated(boolean b) 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, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLayout, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setSize, setSize, setVisible, show, toBack, toFrontMethods inherited from class Container
add, add, add, add, add, addContainerListener, addImpl, 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, remove, removeAll, removeContainerListener, removeSlotChild, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, update, 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, 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
-
NORMAL
public static final int NORMAL- See Also:
-
ICONIFIED
public static final int ICONIFIED- See Also:
-
MAXIMIZED_HORIZ
public static final int MAXIMIZED_HORIZ- See Also:
-
MAXIMIZED_VERT
public static final int MAXIMIZED_VERT- See Also:
-
MAXIMIZED_BOTH
public static final int MAXIMIZED_BOTH- See Also:
-
DEFAULT_CURSOR
Deprecated.replaced byCursor.DEFAULT_CURSOR.- See Also:
-
CROSSHAIR_CURSOR
Deprecated.replaced byCursor.CROSSHAIR_CURSOR.- See Also:
-
TEXT_CURSOR
Deprecated.replaced byCursor.TEXT_CURSOR.- See Also:
-
WAIT_CURSOR
Deprecated.replaced byCursor.WAIT_CURSOR.- See Also:
-
SW_RESIZE_CURSOR
Deprecated.replaced byCursor.SW_RESIZE_CURSOR.- See Also:
-
SE_RESIZE_CURSOR
Deprecated.replaced byCursor.SE_RESIZE_CURSOR.- See Also:
-
NW_RESIZE_CURSOR
Deprecated.replaced byCursor.NW_RESIZE_CURSOR.- See Also:
-
NE_RESIZE_CURSOR
Deprecated.replaced byCursor.NE_RESIZE_CURSOR.- See Also:
-
N_RESIZE_CURSOR
Deprecated.replaced byCursor.N_RESIZE_CURSOR.- See Also:
-
S_RESIZE_CURSOR
Deprecated.replaced byCursor.S_RESIZE_CURSOR.- See Also:
-
W_RESIZE_CURSOR
Deprecated.replaced byCursor.W_RESIZE_CURSOR.- See Also:
-
E_RESIZE_CURSOR
Deprecated.replaced byCursor.E_RESIZE_CURSOR.- See Also:
-
HAND_CURSOR
Deprecated.replaced byCursor.HAND_CURSOR.- See Also:
-
MOVE_CURSOR
Deprecated.replaced byCursor.MOVE_CURSOR.- See Also:
-
-
Constructor Details
-
Frame
-
Frame
- Throws:
HeadlessException
-
Frame
-
Frame
- Throws:
HeadlessException
-
Frame
protected Frame(com.vaadin.flow.component.Component peer) -
Frame
protected <P extends com.vaadin.flow.component.Component> Frame(Class<P> peerType, Supplier<? extends P> peerFactory) The lazy form: seeComponent(Class, Supplier).
-
-
Method Details
-
remove
- Specified by:
removein interfaceMenuContainer- Overrides:
removein classComponent
-
getState
public int getState() -
setState
public void setState(int state) -
paramString
- Overrides:
paramStringin classContainer
-
setMenuBar
An AWT menu bar renders nothing here —MenuBaris not aComponentand SB-Emulators ports no peer for it, where a SwingJMenuBargoes throughJFrame.setJMenuBar(JMenuBar). So the effect drops and the state stays: AWT stores the bar and fires nothing (D_window_fanout), and its parent/peer wiring is what needed the peer. -
setMaximizedBounds
-
setTitle
-
setResizable
public void setResizable(boolean b) -
getExtendedState
public int getExtendedState() -
setExtendedState
public void setExtendedState(int state) -
isUndecorated
public boolean isUndecorated() -
setOpacity
public void setOpacity(float opacity) Description copied from class:WindowAWT's other two throws are not reproduced, and deliberately: both ask the platform whether it can do translucency at all — a browser can, so the answers would be "yes, supported" and the throws unreachable. What is declined is the peer push, so the window renders fully opaque.- Overrides:
setOpacityin classWindow- Parameters:
opacity- in[0, 1]
-
setShape
-
setBackground
- Overrides:
setBackgroundin classWindow
-
setCursor
public void setCursor(int type) -
getTitle
-
getIconImage
-
getMenuBar
-
isResizable
public boolean isResizable() -
getMaximizedBounds
- Returns:
- what
setMaximizedBounds(Rectangle)stored; null until set, as in AWT
-
setUndecorated
public void setUndecorated(boolean b) -
getCursorType
public int getCursorType() -
getFrames
-
getAccessibleContext
- Specified by:
getAccessibleContextin interfaceAccessible- Overrides:
getAccessibleContextin classWindow
-
Cursor.CROSSHAIR_CURSOR.