org.apache.beehive.netui.pageflow.annotations
Enum Jpf.NavigateTo

Object
  extended by Enum<Jpf.NavigateTo>
      extended by Jpf.NavigateTo
All Implemented Interfaces:
Serializable, Comparable<Jpf.NavigateTo>
Enclosing interface:
Jpf

public static enum Jpf.NavigateTo
extends Enum<Jpf.NavigateTo>

Enumeration used by Jpf.ConditionalForward.navigateTo(), Jpf.SimpleAction.navigateTo(), and Jpf.ConditionalForward.navigateTo() to determine the next navigation point.


Enum Constant Summary
currentPage
          Indicates that the next page shown should be the most recent one shown.
page
          Deprecated. Either currentPage or previousPage should be used instead.
previousAction
          Indicates that the previous action should be re-run.
previousPage
          Indicates that the next page shown should be the one before the most recent one shown.
 
Method Summary
static Jpf.NavigateTo valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Jpf.NavigateTo[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

currentPage

public static final Jpf.NavigateTo currentPage
Indicates that the next page shown should be the most recent one shown.


previousPage

public static final Jpf.NavigateTo previousPage
Indicates that the next page shown should be the one before the most recent one shown.


previousAction

public static final Jpf.NavigateTo previousAction
Indicates that the previous action should be re-run.


page

public static final Jpf.NavigateTo page
Deprecated. Either currentPage or previousPage should be used instead.
Method Detail

values

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

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

valueOf

public static Jpf.NavigateTo valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name