org.zkoss.zul
Enum Messagebox.Button

java.lang.Object
  extended by java.lang.Enum<Messagebox.Button>
      extended by 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

Enum Constant Summary
ABORT
          A Abort button.
CANCEL
          A Cancel button.
IGNORE
          A IGNORE button.
NO
          A No button.
OK
          A OK button.
RETRY
          A Retry button.
YES
          A Yes button.
 
Field Summary
 java.lang.String event
          The event name associated with this button type.
 int id
          The unique ID to represent this button type.
 int label
          The message ID used for loading the label.
 
Method Summary
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.
 
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

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 name
java.lang.NullPointerException - if the argument is null


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo