public class XdevFrame extends JFrame implements XdevRootPaneContainer
JFrame
,
XdevRootPaneContainer
,
Serialized FormJFrame.AccessibleJFrame
Frame.AccessibleAWTFrame
Window.AccessibleAWTWindow, Window.Type
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
XdevRootPaneContainer.Util
Modifier and Type | Field and Description |
---|---|
protected XdevWindow |
window |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, NORMAL
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
XdevFrame(String title,
Icon icon)
Creates a new, initially invisible Frame with the specified
title , icon and id . |
XdevFrame(String title,
Image icon)
Creates a new, initially invisible Frame with the specified
title , icon and id . |
XdevFrame(XdevWindow window)
Creates a new, initially invisible Frame.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this container and releases all used resources.
|
Window |
getWindow()
Returns the
Window of this XdevRootPaneContainer . |
XdevWindow |
getXdevWindow()
Returns the internal
XdevWindow of this
XdevRootPaneContainer . |
boolean |
isMaximized()
Returns
true if this frame is maximized. |
void |
pack()
Causes this Window to be sized to fit the preferred size and layouts of
its subcomponents.
|
void |
setExtendedState(int state)
Sets the state of this container.
|
void |
setLocationRelativeTo(Component c)
Sets the location of the
XdevRootPaneContainer relative to the
specified component. |
void |
setVisible(boolean b)
Makes the
XdevRootPaneContainer visible or invisible. |
void |
setXdevWindow(XdevWindow window)
Sets the content of this
XdevRootPaneContainer . |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
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, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setMinimumSize, setModalExclusionType, 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, 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, getExtendedState, getLocation, getSize, removeWindowListener, setBounds, setLocation, setResizable, setTitle, toBack, toFront
getContentPane, getGlassPane, getLayeredPane, getRootPane, setContentPane, setGlassPane, setLayeredPane
getFont, postEvent
protected XdevWindow window
public XdevFrame(XdevWindow window)
Alias for XdevFrame(String title, Icon icon, String id)
window
- the XdevWindow
for this XdevFrame
public XdevFrame(String title, Icon icon)
title
, icon
and id
.
Alias for XdevFrame(String title, Image icon, String id)
title
- the title for the frameicon
- the icon to be displayed as the icon for this framepublic XdevFrame(String title, Image icon)
title
, icon
and id
.
This constructor sets the default close operation to
WindowConstants.DO_NOTHING_ON_CLOSE
.
title
- the title for the frameicon
- the image to be displayed as the icon for this framepublic final 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 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 invisiblepublic void pack()
If this container isn't a Window this method has no effect.
pack
in interface XdevRootPaneContainer
pack
in class Window
Component.isDisplayable()
public void setLocationRelativeTo(Component c)
XdevRootPaneContainer
relative to the
specified component.setLocationRelativeTo
in interface XdevRootPaneContainer
setLocationRelativeTo
in class Window
c
- the component in relation to which the
XdevRootPaneContainer
location is determinedpublic boolean isMaximized()
true
if this frame is maximized.true
if this frame is maximized, otherwise
false
public void setExtendedState(int state)
Sets the state of this container. The state is represented as a bitwise mask.
If this container doesn't support an extended state this method has no effect.
XdevRootPaneContainer.NORMAL
XdevRootPaneContainer.ICONIFIED
XdevRootPaneContainer.MAXIMIZED_HORIZ
XdevRootPaneContainer.MAXIMIZED_VERT
XdevRootPaneContainer.MAXIMIZED_BOTH
MAXIMIZED_HORIZ
and MAXIMIZED_VERT
.
Note that if the state is not supported on a given platform, nothing will
happen. The application may determine if a specific state is available
via the java.awt.Toolkit#isFrameStateSupported(int state)
method.
setExtendedState
in interface XdevRootPaneContainer
setExtendedState
in class Frame
state
- a bitwise mask of frame state constantsXdevRootPaneContainer.getExtendedState()
,
Toolkit.isFrameStateSupported(int)
public void close()
close
in interface XdevRootPaneContainer
Copyright © 2003–2021 XDEV Software. All rights reserved.