com.ezware.dialog.task
Enum TaskDialog.StandardCommand
java.lang.Object
java.lang.Enum<TaskDialog.StandardCommand>
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
| 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 |
OK
public static final TaskDialog.StandardCommand OK
CANCEL
public static final TaskDialog.StandardCommand CANCEL
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.