public static enum Window.Mode extends java.lang.Enum<Window.Mode>
Window.setMode(Mode)
.Enum Constant and Description |
---|
EMBEDDED
Embeds the window as normal component.
|
HIGHLIGHTED
Makes the window as highlighted.
|
MODAL
Makes the window as a modal dialog. once
Window.doModal()
is called, the execution of the event processing thread
is suspended until one of the following occurs. |
OVERLAPPED
Makes the window as overlapped other components.
|
POPUP
Makes the window as popup.
|
Modifier and Type | Method and Description |
---|---|
static Window.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Window.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Window.Mode EMBEDDED
public static final Window.Mode MODAL
Window.doModal()
is called, the execution of the event processing thread
is suspended until one of the following occurs.
Window.setMode(Mode)
is called with a mode other than MODAL.Window.doOverlapped()
, Window.doPopup()
,
Window.doEmbedded()
, or Window.doHighlighted()
is called.Window.setVisible(boolean)
is called with false.Note: In the last two cases, the mode becomes OVERLAPPED
.
In other words, one might say a modal window is a special overlapped window.
HIGHLIGHTED
public static final Window.Mode OVERLAPPED
public static final Window.Mode POPUP
OVERLAPPED
, except it is auto hidden
when user clicks outside of the window.public static final Window.Mode HIGHLIGHTED
MODAL
.
However, from the server side's viewpoint, it is similar to
OVERLAPPED
. The execution won't be suspended when
Window.doHighlighted()
is called.MODAL
,
OVERLAPPED
public static Window.Mode[] values()
for (Window.Mode c : Window.Mode.values()) System.out.println(c);
public static Window.Mode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2005-2021 Potix Corporation. All Rights Reserved.