com.sencha.gxt.widget.core.client
Enum Dialog.PredefinedButton

java.lang.Object
  extended by java.lang.Enum<Dialog.PredefinedButton>
      extended by com.sencha.gxt.widget.core.client.Dialog.PredefinedButton
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Dialog.PredefinedButton>
Enclosing class:
Dialog

public static enum Dialog.PredefinedButton
extends java.lang.Enum<Dialog.PredefinedButton>

The predefined buttons supported by this dialog window.


Enum Constant Summary
CANCEL
          A "Cancel" button
CLOSE
          A "Close" button
NO
          A "No" button
OK
          An "OK" button
YES
          A "Yes button
 
Method Summary
static Dialog.PredefinedButton valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Dialog.PredefinedButton[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, 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 Dialog.PredefinedButton OK
An "OK" button


CANCEL

public static final Dialog.PredefinedButton CANCEL
A "Cancel" button


CLOSE

public static final Dialog.PredefinedButton CLOSE
A "Close" button


YES

public static final Dialog.PredefinedButton YES
A "Yes button


NO

public static final Dialog.PredefinedButton NO
A "No" button

Method Detail

values

public static Dialog.PredefinedButton[] 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 (Dialog.PredefinedButton c : Dialog.PredefinedButton.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Dialog.PredefinedButton 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 © 2012. All Rights Reserved.