com.levigo.jadice.swing.commands
Enum TurnPageCommand.Mode

java.lang.Object
  extended by java.lang.Enum<TurnPageCommand.Mode>
      extended by com.levigo.jadice.swing.commands.TurnPageCommand.Mode
All Implemented Interfaces:
Serializable, Comparable<TurnPageCommand.Mode>
Enclosing class:
TurnPageCommand

public static enum TurnPageCommand.Mode
extends Enum<TurnPageCommand.Mode>

The navigation mode.


Enum Constant Summary
FIRST
          Navigate to the first page
LAST
          Navigate to the last page
NEXT
          Navigate to the next page (if there is one)
PREVIOUS
          Navigate to the previous page (if there is one)
 
Method Summary
static TurnPageCommand.Mode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TurnPageCommand.Mode[] 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

FIRST

public static final TurnPageCommand.Mode FIRST
Navigate to the first page


PREVIOUS

public static final TurnPageCommand.Mode PREVIOUS
Navigate to the previous page (if there is one)


NEXT

public static final TurnPageCommand.Mode NEXT
Navigate to the next page (if there is one)


LAST

public static final TurnPageCommand.Mode LAST
Navigate to the last page

Method Detail

values

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

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

valueOf

public static TurnPageCommand.Mode 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
NullPointerException - if the argument is null


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.