|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SwipesView.Directions>
com.operators.swipes.SwipesView.Directions
public static 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" />
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 |
---|
public static final SwipesView.Directions LEFT
public static final SwipesView.Directions DOWN
public static final SwipesView.Directions RIGHT
public static final SwipesView.Directions UP
Method Detail |
---|
public static SwipesView.Directions[] values()
for (SwipesView.Directions c : SwipesView.Directions.values()) System.out.println(c);
public static SwipesView.Directions valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |