com.ezware.dialog.task
Enum TaskDialog.StandardCommand

java.lang.Object
  extended by java.lang.Enum<TaskDialog.StandardCommand>
      extended by com.ezware.dialog.task.TaskDialog.StandardCommand
All Implemented Interfaces:
TaskDialog.Command, java.io.Serializable, java.lang.Comparable<TaskDialog.StandardCommand>
Enclosing class:
TaskDialog

public static enum TaskDialog.StandardCommand
extends java.lang.Enum<TaskDialog.StandardCommand>
implements TaskDialog.Command

Set of standard task dialog commands


Enum Constant Summary
CANCEL
           
OK
           
 
Method Summary
 TaskDialog.Command derive(java.lang.String title)
          Creates a copy of the command with specified title
 java.lang.String getDescription()
           
 TaskDialog.CommandTag getTag()
           
 java.lang.String getTitle()
           
 boolean isClosing()
           
static TaskDialog.StandardCommand valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TaskDialog.StandardCommand[] 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 TaskDialog.StandardCommand OK

CANCEL

public static final TaskDialog.StandardCommand CANCEL
Method Detail

values

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

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

valueOf

public static TaskDialog.StandardCommand 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

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface TaskDialog.Command

getTag

public TaskDialog.CommandTag getTag()
Specified by:
getTag in interface TaskDialog.Command

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface TaskDialog.Command

isClosing

public boolean isClosing()
Specified by:
isClosing in interface TaskDialog.Command

derive

public TaskDialog.Command derive(java.lang.String title)
Creates a copy of the command with specified title

Parameters:
title - new title. Used as key for i18n if starts with #I18N_PREFIX
Returns:
copy of the command


Copyright © 2010 ezware. All Rights Reserved.