tcMenuJavaAPI
Public Member Functions | List of all members
com.thecoderscorner.menu.mgr.ScrollChoiceValueRetriever Interface Reference

Public Member Functions

int id ()
 

Detailed Description

Marks a method as being responsible for providing the value of a particular value in a scroll choice. Each time a scroll choice item changes, the callback associated with it is called back. In this call-back the menu item and row number are provided. It is then your responsibility to provide the value at that location.

     @ScrollChoiceValueRetriever(id=3)
     public String myScrollChoiceNeedsValue(ScrollChoiceMenuItem item, CurrentScrollPosition position) {
         return "position" + position.getPosition();
     }

The documentation for this interface was generated from the following file: