|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkankan.wheel.widget.adapters.AbstractWheelAdapter
kankan.wheel.widget.adapters.AbstractWheelTextAdapter
kankan.wheel.widget.adapters.NumericWheelAdapter
public class NumericWheelAdapter
Numeric Wheel adapter.
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_VALUE
The default min value |
private static int |
DEFAULT_MIN_VALUE
The default max value |
private java.lang.String |
format
|
private int |
maxValue
|
private int |
minValue
|
| Fields inherited from class kankan.wheel.widget.adapters.AbstractWheelTextAdapter |
|---|
context, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_SIZE, emptyItemResourceId, inflater, itemResourceId, itemTextResourceId, LABEL_COLOR, NO_RESOURCE, TEXT_VIEW_ITEM_RESOURCE |
| Constructor Summary | |
|---|---|
NumericWheelAdapter(Context context)
Constructor |
|
NumericWheelAdapter(Context context,
int minValue,
int maxValue)
Constructor |
|
NumericWheelAdapter(Context context,
int minValue,
int maxValue,
java.lang.String format)
Constructor |
|
| Method Summary | |
|---|---|
int |
getItemsCount()
Gets items count |
java.lang.CharSequence |
getItemText(int index)
Returns text for specified item |
| Methods inherited from class kankan.wheel.widget.adapters.AbstractWheelTextAdapter |
|---|
configureTextView, getEmptyItem, getEmptyItemResource, getItem, getItemResource, getItemTextResource, getTextColor, getTextSize, setEmptyItemResource, setItemResource, setItemTextResource, setTextColor, setTextSize |
| Methods inherited from class kankan.wheel.widget.adapters.AbstractWheelAdapter |
|---|
notifyDataChangedEvent, notifyDataInvalidatedEvent, registerDataSetObserver, unregisterDataSetObserver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MAX_VALUE
private static final int DEFAULT_MIN_VALUE
private int minValue
private int maxValue
private java.lang.String format
| Constructor Detail |
|---|
public NumericWheelAdapter(Context context)
context - the current context
public NumericWheelAdapter(Context context,
int minValue,
int maxValue)
context - the current contextminValue - the wheel min valuemaxValue - the wheel max value
public NumericWheelAdapter(Context context,
int minValue,
int maxValue,
java.lang.String format)
context - the current contextminValue - the wheel min valuemaxValue - the wheel max valueformat - the format string| Method Detail |
|---|
public java.lang.CharSequence getItemText(int index)
AbstractWheelTextAdapter
getItemText in class AbstractWheelTextAdapterindex - the item index
public int getItemsCount()
WheelViewAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||