com.smartgwt.client.types
Enum DialogButtons

java.lang.Object
  extended by java.lang.Enum<DialogButtons>
      extended by com.smartgwt.client.types.DialogButtons
All Implemented Interfaces:
ValueEnum, java.io.Serializable, java.lang.Comparable<DialogButtons>

public enum DialogButtons
extends java.lang.Enum<DialogButtons>
implements ValueEnum

Default buttons that you can use in your Dialogs.

On click these call canonical methods that you can override in your Dialog.

Refer to these buttons via the syntax com.smartgwt.client.widgets.Dialog#OK when passing them into toolbarButtons or into the properties argument of helper methods such as SC.say(java.lang.String).


Enum Constant Summary
APPLY
          Button object to fire dialog's "applyClick()" method on click.
CANCEL
          Button object to fire dialog's "cancelClick()" method on click.
NO
          Button object to fire dialog's "noClick()" method on click.
OK
          Button object to fire dialog's "okClick()" method on click.
YES
          Button object to fire dialog's "yesClick()" method on click.
 
Method Summary
 java.lang.String getValue()
           
static DialogButtons valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DialogButtons[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OK

public static final DialogButtons OK
Button object to fire dialog's "okClick()" method on click. Title derived from com.smartgwt.client.widgets.Dialog#OK_BUTTON_TITLE.


APPLY

public static final DialogButtons APPLY
Button object to fire dialog's "applyClick()" method on click. Title derived from com.smartgwt.client.widgets.Dialog#APPLY_BUTTON_TITLE.


YES

public static final DialogButtons YES
Button object to fire dialog's "yesClick()" method on click. Title derived from com.smartgwt.client.widgets.Dialog#YES_BUTTON_TITLE.


NO

public static final DialogButtons NO
Button object to fire dialog's "noClick()" method on click. Title derived from com.smartgwt.client.widgets.Dialog#NO_BUTTON_TITLE.


CANCEL

public static final DialogButtons CANCEL
Button object to fire dialog's "cancelClick()" method on click. Title derived from com.smartgwt.client.widgets.Dialog#CANCEL_BUTTON_TITLE.

Method Detail

values

public static final DialogButtons[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(DialogButtons c : DialogButtons.values())
        System.out.println(c);

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

valueOf

public static DialogButtons 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

getValue

public java.lang.String getValue()
Specified by:
getValue in interface ValueEnum