public class XdevDialog extends JDialog implements XdevRootPaneContainer
XdevDialog
is a top-level window with a title and a border in
XDEV. Based on JDialog
.JDialog
,
XdevRootPaneContainer
,
Serialized FormJDialog.AccessibleJDialog
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType
Window.AccessibleAWTWindow, Window.Type
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
XdevRootPaneContainer.Util
accessibleContext, rootPane, rootPaneCheckingEnabled
DEFAULT_MODALITY_TYPE
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, EXIT_ON_CLOSE, HIDE_ON_CLOSE
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
XdevDialog(Component owner,
boolean modal,
XdevWindow window)
Creates a new
XdevDialog with the specified title, owner
Window and modality. |
XdevDialog(Dialog owner,
String title,
boolean modal)
Creates a new
XdevDialog with the specified title, modality and
the specified owner Dialog . |
XdevDialog(Frame owner,
String title,
boolean modal)
Creates a new
XdevDialog with the specified title, owner
Frame and modality. |
XdevDialog(Window owner,
boolean modal,
XdevWindow window)
Creates a new
XdevDialog with the specified title, owner
Window and modality. |
Modifier and Type | Method and Description |
---|---|
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 |
setVisible(boolean b)
Makes the
XdevRootPaneContainer visible or invisible. |
void |
setXdevWindow(XdevWindow window)
Sets the content of this
XdevRootPaneContainer . |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
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, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, 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, setResizable, setTitle, toBack, toFront
getContentPane, getGlassPane, getLayeredPane, getRootPane, setContentPane, setGlassPane, setLayeredPane
public XdevDialog(Component owner, boolean modal, XdevWindow window) throws HeadlessException
XdevDialog
with the specified title, owner
Window
and modality.
This constructor sets the component's locale property to the value
returned by JComponent.getDefaultLocale
.
owner
- Component to get Window ancestor ofmodal
- specifies whether dialog blocks user input to other top-level
windows when shown. If true
, the modality type
property is set to APPLICATION_MODAL
otherwise
the dialog is MODELESS
window
- the XdevWindow
for this XdevDialog
HeadlessException
- when GraphicsEnvironment.isHeadless()
returns
true
JDialog
public XdevDialog(Window owner, boolean modal, XdevWindow window) throws HeadlessException
XdevDialog
with the specified title, owner
Window
and modality.
This constructor sets the component's locale property to the value
returned by JComponent.getDefaultLocale
.
owner
- the Window
from which the dialog is displayed or
null
if this dialog has no ownermodal
- specifies whether dialog blocks user input to other top-level
windows when shown. If true
, the modality type
property is set to APPLICATION_MODAL
otherwise
the dialog is MODELESS
window
- the XdevWindow
for this XdevDialog
HeadlessException
- when GraphicsEnvironment.isHeadless()
returns
true
JDialog
public XdevDialog(Frame owner, String title, boolean modal) throws HeadlessException
XdevDialog
with the specified title, owner
Frame
and modality. If owner
is
null
, a shared, hidden frame will be set as the owner of
this dialog.
This constructor sets the component's locale property to the value
returned by JComponent.getDefaultLocale
.
NOTE: Any popup components (JComboBox
,
JPopupMenu
, JMenuBar
) created within a modal
dialog will be forced to be lightweight.
NOTE: This constructor does not allow you to create an unowned
XdevDialog
.
owner
- the Frame
from which the dialog is displayedtitle
- the String
to display in the dialog's title barmodal
- specifies whether dialog blocks user input to other top-level
windows when shown. If true
, the modality type
property is set to DEFAULT_MODALITY_TYPE
otherwise the dialog is modelessHeadlessException
- if GraphicsEnvironment.isHeadless()
returns
true
.JDialog
public XdevDialog(Dialog owner, String title, boolean modal) throws HeadlessException
XdevDialog
with the specified title, modality and
the specified owner Dialog
.owner
- the owner Dialog
from which the dialog is
displayed or null
if this dialog has no ownertitle
- the String
to display in the dialog's title barmodal
- specifies whether dialog blocks user input to other top-level
windows when shown. If true
, the modality type
property is set to DEFAULT_MODALITY_TYPE
,
otherwise the dialog is modelessHeadlessException
- if GraphicsEnvironment.isHeadless()
returns
true
.JDialog
public 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 Dialog
b
- true
to make the container visible;
false
to make it invisiblepublic 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.