public class SwipeBehavior
extends java.lang.Object
nUIListElement
/nUIListView
Following behaviors are available
SwipeToDeleteBehavior
- user can swipe away a cell. The cell will be deleted.
SwipeToEditBehavior
- user can swipe a cell to just show action button(s). User cannot swipe the cell away.
SwipeActionBehavior
user can swipe a cell to show action button(s). User can swipe the cell away as well.
Constructor and Description |
---|
SwipeBehavior() |
Modifier and Type | Method and Description |
---|---|
static SwipeBehavior |
swipe(nUIActionButton[] buttons) |
static SwipeBehavior |
swipeToDelete() |
static SwipeBehavior |
swipeToEdit(nUIActionButton[] buttons) |
public static SwipeBehavior swipeToDelete()
SwipeToDeleteBehavior
public static SwipeBehavior swipeToEdit(nUIActionButton[] buttons)
buttons
- - buttons to be shown on action.SwipeToEditBehavior
public static SwipeBehavior swipe(nUIActionButton[] buttons)
buttons
- buttons to be shown on action.SwipeActionBehavior