public class XdevScreen extends JWindow implements XdevRootPaneContainer
XdevScreen
is a top-level window with no borders and no menubar
in XDEV. Based on JWindow
.JWindow
,
XdevRootPaneContainer
,
Serialized FormJWindow.AccessibleJWindow
Window.AccessibleAWTWindow, Window.Type
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
XdevRootPaneContainer.Util
Modifier and Type | Field and Description |
---|---|
protected boolean |
modal |
protected Window |
owner |
protected XdevWindow |
window |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, NORMAL
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
XdevScreen(Component owner,
boolean modal)
Creates a window with the specified owner window.
|
XdevScreen(Component owner,
boolean modal,
XdevWindow window)
Creates a window with the specified owner window.
|
XdevScreen(Window owner,
boolean modal)
Creates a window with the specified owner window.
|
XdevScreen(Window owner,
boolean modal,
XdevWindow window)
Creates a window with the specified owner window.
|
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup() |
void |
close()
Closes this container and releases all used resources.
|
int |
getExtendedState()
Implemented with no action for
XdevApplicationContainer . |
Window |
getWindow()
Returns the
Window of this XdevRootPaneContainer . |
XdevWindow |
getXdevWindow()
Returns the internal
XdevWindow of this
XdevRootPaneContainer . |
void |
setExtendedState(int extendedState)
Implemented with no action for
XdevApplicationContainer . |
void |
setResizable(boolean b)
Sets whether this
XdevRootPaneContainer is resizable by the user. |
void |
setTitle(String s)
Sets the title of this
XdevRootPaneContainer . |
void |
setVisible(boolean b)
Makes the
XdevRootPaneContainer visible or invisible. |
void |
setXdevWindow(XdevWindow window)
Sets the content of this
XdevRootPaneContainer . |
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update, windowInit
addNotify, addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, 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, setModalExclusionType, setOpacity, setShape, setSize, setSize, setType, show, toBack, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addWindowListener, getBounds, getLocation, getSize, pack, removeWindowListener, setBounds, setLocation, setLocationRelativeTo, toBack, toFront
getContentPane, getGlassPane, getLayeredPane, getRootPane, setContentPane, setGlassPane, setLayeredPane
protected Window owner
protected XdevWindow window
protected boolean modal
public XdevScreen(Component owner, boolean modal, XdevWindow window) throws HeadlessException
owner
is null
, the shared owner will be used
and this window will not be focusable.
This constructor sets the component's locale property to the value
returned by JComponent.getDefaultLocale
.
owner
- component to get Window ancestor ofmodal
- specifies whether window blocks user input to other top-level
windows when shown.window
- the content of this screenHeadlessException
- if GraphicsEnvironment.isHeadless()
returns
true.public XdevScreen(Window owner, boolean modal, XdevWindow window) throws HeadlessException
owner
is null
, the shared owner will be used
and this window will not be focusable.
This constructor sets the component's locale property to the value
returned by JComponent.getDefaultLocale
.
owner
- the window from which the window is displayedmodal
- specifies whether window blocks user input to other top-level
windows when shown.window
- the content of this screenHeadlessException
- if GraphicsEnvironment.isHeadless()
returns
true.public XdevScreen(Component owner, boolean modal) throws HeadlessException
owner
is null
, the shared owner will be used
and this window will not be focusable.
This constructor sets the component's locale property to the value
returned by JComponent.getDefaultLocale
.
owner
- component to get Window ancestor ofmodal
- specifies whether window blocks user input to other top-level
windows when shown.HeadlessException
- if GraphicsEnvironment.isHeadless()
returns
true.public XdevScreen(Window owner, boolean modal) throws HeadlessException
owner
is null
, the shared owner will be used
and this window will not be focusable.
This constructor sets the component's locale property to the value
returned by JComponent.getDefaultLocale
.
owner
- the window from which the window is displayedmodal
- specifies whether window blocks user input to other top-level
windows when shown.HeadlessException
- if GraphicsEnvironment.isHeadless()
returns
true.public void setXdevWindow(XdevWindow window)
XdevRootPaneContainer
.setXdevWindow
in interface XdevRootPaneContainer
window
- the XdevWindow
for this XdevRootPaneContainer
public XdevWindow getXdevWindow()
XdevWindow
of this
XdevRootPaneContainer
.getXdevWindow
in interface XdevRootPaneContainer
XdevWindow
public Window getWindow()
Window
of this XdevRootPaneContainer
.getWindow
in interface XdevRootPaneContainer
Window
of this XdevRootPaneContainer
public void setTitle(String s)
XdevRootPaneContainer
.setTitle
in interface XdevRootPaneContainer
s
- the title to be displayedpublic void setResizable(boolean b)
XdevRootPaneContainer
is resizable by the user.setResizable
in interface XdevRootPaneContainer
b
- true
if the user can resize this
XdevRootPaneContainer
; false
otherwise.public void setVisible(boolean b)
XdevRootPaneContainer
visible or invisible.setVisible
in interface XdevRootPaneContainer
setVisible
in class Window
b
- true
to make the container visible;
false
to make it invisibleprotected void cleanup()
public void setExtendedState(int extendedState)
XdevApplicationContainer
.setExtendedState
in interface XdevRootPaneContainer
extendedState
- a bitwise mask of frame state constantsXdevRootPaneContainer.getExtendedState()
,
Toolkit.isFrameStateSupported(int)
public int getExtendedState()
XdevApplicationContainer
.getExtendedState
in interface XdevRootPaneContainer
XdevRootPaneContainer.setExtendedState(int)
public void close()
close
in interface XdevRootPaneContainer
Copyright © 2003–2021 XDEV Software. All rights reserved.