com.operators.swipes
Enum SwipesView.Directions

java.lang.Object
  extended by java.lang.Enum<SwipesView.Directions>
      extended by com.operators.swipes.SwipesView.Directions
All Implemented Interfaces:
Serializable, Comparable<SwipesView.Directions>
Enclosing class:
SwipesView

public static enum SwipesView.Directions
extends Enum<SwipesView.Directions>

The Directions are abstractions of typical 4 directional swipe operations. They allow the swiping away of the currently viewed card (or View), to the top, bottom, left or right of the screen.

The following are the Directions Enum Values: LEFT DOWN RIGHT UP

Java Usage Example:

 mSwipesView.setAllowedDirections(Directions.RIGHT, Directions.DOWN ...) 
XML Usage Example:
  <com.operators.swipes.SwipesView
        ...
        swipes:directions="right|down" />
 

Author:
christopher
See Also:
SwipesView.setAllowedDirections(SwipesView.Directions[])

Enum Constant Summary
DOWN
          DOWN Direction (0x50)
LEFT
          LEFT Direction (0x03)
RIGHT
          RIGHT Direction (0x05)
UP
          UP Direction (0x30)
 
Method Summary
static SwipesView.Directions valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SwipesView.Directions[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LEFT

public static final SwipesView.Directions LEFT
LEFT Direction (0x03)


DOWN

public static final SwipesView.Directions DOWN
DOWN Direction (0x50)


RIGHT

public static final SwipesView.Directions RIGHT
RIGHT Direction (0x05)


UP

public static final SwipesView.Directions UP
UP Direction (0x30)

Method Detail

values

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

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

valueOf

public static SwipesView.Directions 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