Package org.zkoss.zul
Enum Class Window.Mode
- All Implemented Interfaces:
Serializable,Comparable<Window.Mode>,Constable
- Enclosing class:
- Window
The window's mode used with
Window.setMode(Mode).- Since:
- 6.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEmbeds the window as normal component.Makes the window as highlighted.Makes the window as a modal dialog. onceWindow.doModal()is called, the execution of the event processing thread is suspended until one of the following occurs.Makes the window as overlapped other components.Makes the window as popup. -
Method Summary
Modifier and TypeMethodDescriptionstatic Window.ModeReturns the enum constant of this class with the specified name.static Window.Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMBEDDED
Embeds the window as normal component. -
MODAL
Makes the window as a modal dialog. onceWindow.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.- Either
Window.doOverlapped(),Window.doPopup(),Window.doEmbedded(), orWindow.doHighlighted()is called. Window.setVisible(boolean)is called with false.- The window is detached from the window.
Note: In the last two cases, the mode becomes
OVERLAPPED. In other words, one might say a modal window is a special overlapped window.- See Also:
-
OVERLAPPED
Makes the window as overlapped other components. -
POPUP
Makes the window as popup. It is similar toOVERLAPPED, except it is auto hidden when user clicks outside of the window. -
HIGHLIGHTED
Makes the window as highlighted. Its visual effect is the same asMODAL. However, from the server side's viewpoint, it is similar toOVERLAPPED. The execution won't be suspended whenWindow.doHighlighted()is called.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-