edu.jhu.tmaj.client.image.draw
Enum DrawableStatus

java.lang.Object
  extended by java.lang.Enum<DrawableStatus>
      extended by edu.jhu.tmaj.client.image.draw.DrawableStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DrawableStatus>

public enum DrawableStatus
extends java.lang.Enum<DrawableStatus>

Status of the Shape indicating the to-do database action.


Enum Constant Summary
CREATE
          A new shape that has never been saved
DELETE
          A shape that was saved and the user has selected to be deleted
IGNORE
          A new shape that has been deleted
NORMAL
          A saved shaped that has not been modified
UPDATE
          A saved shape that has been modified
 
Method Summary
static DrawableStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DrawableStatus[] 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

CREATE

public static final DrawableStatus CREATE
A new shape that has never been saved


DELETE

public static final DrawableStatus DELETE
A shape that was saved and the user has selected to be deleted


NORMAL

public static final DrawableStatus NORMAL
A saved shaped that has not been modified


IGNORE

public static final DrawableStatus IGNORE
A new shape that has been deleted


UPDATE

public static final DrawableStatus UPDATE
A saved shape that has been modified

Method Detail

values

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

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

valueOf

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