to.etc.domui.state
Enum MoveMode

java.lang.Object
  extended by java.lang.Enum<MoveMode>
      extended by to.etc.domui.state.MoveMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MoveMode>

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


Enum Constant Summary
BACK
          Move back to the page above me.
NEW
          Create a NEW shelve: clear the current shelve and this page becomes the one on top.
REDIRECT
           
REPLACE
          Replace the "current" page with this page, but leave the shelve stack in order.
SUB
          Shelve the current page and add the new page above it.
 
Method Summary
static MoveMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MoveMode[] 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

NEW

public static final MoveMode NEW
Create a NEW shelve: clear the current shelve and this page becomes the one on top.


SUB

public static final MoveMode SUB
Shelve the current page and add the new page above it.


BACK

public static final MoveMode BACK
Move back to the page above me.


REPLACE

public static final MoveMode REPLACE
Replace the "current" page with this page, but leave the shelve stack in order.


REDIRECT

public static final MoveMode REDIRECT
Method Detail

values

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

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

valueOf

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