com.droidux.pack.wheel.interfaces.WheelInterfaces.Views.WheelViewInterface |
![]() |
Represents a contract to be implemented by wheel views.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convert this interface to its corresponding View.
| |||||||||||
Gets the item-selected listener registered for this view.
| |||||||||||
Gets the scroll listener registered for this view.
| |||||||||||
Gets the currently selected view.
| |||||||||||
Gets the position of the currently selected item in the data set.
| |||||||||||
Whether or not to callback on any listener while the items are being flinged.
| |||||||||||
Sets the interpolator for use by the internal scroller.
| |||||||||||
Registers a listener to be notified when an item is selected.
| |||||||||||
Registers a listener to be notified when the wheel is scrolled.
| |||||||||||
Sets the currently selected item, with option to animate the change.
| |||||||||||
Sets the currently selected item.
| |||||||||||
Sets the currently selected item, with option to animate the change.
|
Convert this interface to its corresponding View.
Gets the item-selected listener registered for this view.
Gets the scroll listener registered for this view.
Gets the currently selected view.
Gets the position of the currently selected item in the data set.
Whether or not to callback on any listener while the items are being flinged. If false only the final selected item will cause the callback. If true, all items between the first and the final will cause callbacks.
shouldCallback | Whether or not to callback on the listener while the items are being flinged. |
---|
Sets the interpolator for use by the internal scroller.
interp | The interpolator. |
---|
Registers a listener to be notified when an item is selected.
listener | The listener to be notified. |
---|
Registers a listener to be notified when the wheel is scrolled.
listener | The listener to be notified. |
---|
Sets the currently selected item, with option to animate the change. If the position is less than 0, then the item at position 0 will be selected.
position | Index (starting at 0) of the data item to be selected. |
---|---|
animated | If true, the change will be animated (by spinning the wheel). |
Sets the currently selected item. If the position is less than 0, then the item at position 0 will be selected.
position | Index (starting at 0) of the data item to be selected. |
---|
Sets the currently selected item, with option to animate the change. If the position is less than 0, then the item at position 0 will be selected.
position | Index (starting at 0) of the data item to be selected. |
---|---|
animationDuration | If greater than 0, the change will be animated for the duration (by spinning the wheel). |