|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Window.Mode> org.zkoss.zul.Window.Mode
public static enum Window.Mode
The window's mode used with Window.setMode(Mode)
.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |