webMethods Mobile Suite  | webMethods Mobile SuiteWeb Help | webMethods Mobile Designer Native User Interface Reference | Mobile Designer Native User Interface | Using List Views and Elements | Swiping Behavior
 
Swiping Behavior
To be able to use swipe gestures within nUIListView and nUIListElement, you must define a swipe behavior for a particular cell type and swipe direction by implementing the getSwipeBehavior method in the IListProvider interface.
You can choose between
*SwipeToDeleteBehavior - Allows you to delete a cell by swiping.
*SwipeToEditBehavior - Allows you to show action buttons in a cell by swiping. However, the cell is not deleted.
*SwipeActionBehavior - Allows you to show action buttons in a cell and to delete this cell by swiping.
Use the factory class SwipeBehavior to create the required SwipeBehavior instance.
Note: You cannot assign different swipe behaviors to the same combination of cell type and swipe direction.
For detailed information, see the example in the com.softwareag.mobile.nativeuidemo.view.ListView class of the _NativeUIDemoNew_ project.

Copyright © 2010-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.