Package org.zkoss.zul
Enum Messagebox.Button
- java.lang.Object
-
- java.lang.Enum<Messagebox.Button>
-
- org.zkoss.zul.Messagebox.Button
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Messagebox.Button>
- Enclosing class:
- Messagebox
public static enum Messagebox.Button extends java.lang.Enum<Messagebox.Button>
The button types.- Since:
- 6.0.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Messagebox.Button
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Messagebox.Button[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final Messagebox.Button OK
A OK button.
-
CANCEL
public static final Messagebox.Button CANCEL
A Cancel button.
-
YES
public static final Messagebox.Button YES
A Yes button.
-
NO
public static final Messagebox.Button NO
A No button.
-
ABORT
public static final Messagebox.Button ABORT
A Abort button.
-
RETRY
public static final Messagebox.Button RETRY
A Retry button.
-
IGNORE
public static final Messagebox.Button IGNORE
A IGNORE button.
-
-
Field Detail
-
id
public final int id
The unique ID to represent this button type.
-
event
public final java.lang.String event
The event name associated with this button type.
-
label
public final int label
The message ID used for loading the label.- See Also:
Messages
-
-
Method Detail
-
values
public static Messagebox.Button[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Messagebox.Button c : Messagebox.Button.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Messagebox.Button valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-