public final class Spinner extends AndroidViewComponent implements android.widget.AdapterView.OnItemSelectedListener
containerACCELEROMETER_SENSITIVITY_MODERATE, ACCELEROMETER_SENSITIVITY_STRONG, ACCELEROMETER_SENSITIVITY_WEAK, ALIGNMENT_CENTER, ALIGNMENT_NORMAL, ALIGNMENT_OPPOSITE, ASSET_DIRECTORY, BUTTON_SHAPE_DEFAULT, BUTTON_SHAPE_OVAL, BUTTON_SHAPE_RECT, BUTTON_SHAPE_ROUNDED, COLOR_BLACK, COLOR_BLUE, COLOR_CYAN, COLOR_DEFAULT, COLOR_DKGRAY, COLOR_GRAY, COLOR_GREEN, COLOR_LTGRAY, COLOR_MAGENTA, COLOR_NONE, COLOR_ORANGE, COLOR_PINK, COLOR_RED, COLOR_WHITE, COLOR_YELLOW, DEFAULT_VALUE_COLOR_BLACK, DEFAULT_VALUE_COLOR_BLUE, DEFAULT_VALUE_COLOR_CYAN, DEFAULT_VALUE_COLOR_DEFAULT, DEFAULT_VALUE_COLOR_DKGRAY, DEFAULT_VALUE_COLOR_GRAY, DEFAULT_VALUE_COLOR_GREEN, DEFAULT_VALUE_COLOR_LTGRAY, DEFAULT_VALUE_COLOR_MAGENTA, DEFAULT_VALUE_COLOR_NONE, DEFAULT_VALUE_COLOR_ORANGE, DEFAULT_VALUE_COLOR_PINK, DEFAULT_VALUE_COLOR_RED, DEFAULT_VALUE_COLOR_WHITE, DEFAULT_VALUE_COLOR_YELLOW, DIRECTION_EAST, DIRECTION_MAX, DIRECTION_MIN, DIRECTION_NONE, DIRECTION_NORTH, DIRECTION_NORTHEAST, DIRECTION_NORTHWEST, DIRECTION_SOUTH, DIRECTION_SOUTHEAST, DIRECTION_SOUTHWEST, DIRECTION_WEST, FONT_DEFAULT_SIZE, LAYOUT_ORIENTATION_HORIZONTAL, LAYOUT_ORIENTATION_VERTICAL, LENGTH_FILL_PARENT, LENGTH_PREFERRED, LENGTH_UNKNOWN, SLIDER_MAX_VALUE, SLIDER_MIN_VALUE, SLIDER_THUMB_VALUE, TOAST_LENGTH_LONG, TOAST_LENGTH_SHORT, TYPEFACE_DEFAULT, TYPEFACE_MONOSPACE, TYPEFACE_SANSSERIF, TYPEFACE_SERIF| Constructor and Description |
|---|
Spinner(ComponentContainer container) |
| Modifier and Type | Method and Description |
|---|---|
void |
AfterSelecting(java.lang.String selection)
Indicates a user has selected an item
|
void |
DisplayDropdown()
To display the dropdown list without the user having to click it
|
YailList |
Elements()
Elements property getter method
|
void |
Elements(YailList itemList)
Elements property setter method
|
void |
ElementsFromString(java.lang.String itemstring)
ElementsFromString property setter method
|
android.view.View |
getView()
Returns the
View that is displayed in the UI. |
void |
onItemSelected(android.widget.AdapterView<?> parent,
android.view.View view,
int position,
long id) |
void |
onNothingSelected(android.widget.AdapterView<?> parent) |
java.lang.String |
Prompt()
Prompt property getter method
|
void |
Prompt(java.lang.String str)
Prompt property setter method
|
java.lang.String |
Selection()
Selection property getter method.
|
void |
Selection(java.lang.String value)
Selection property setter method.
|
int |
SelectionIndex()
Selection index property getter method.
|
void |
SelectionIndex(int index)
Selection index property setter method, not a designer property to prevent
inconsistencies if selection is invalid
|
Column, Column, CopyHeight, CopyWidth, getDispatchDelegate, Height, Height, Row, Row, Visible, Visible, Width, Widthpublic Spinner(ComponentContainer container)
public android.view.View getView()
AndroidViewComponentView that is displayed in the UI.getView in class AndroidViewComponentpublic java.lang.String Selection()
public void Selection(java.lang.String value)
public int SelectionIndex()
public void SelectionIndex(int index)
public YailList Elements()
public void Elements(YailList itemList)
public void ElementsFromString(java.lang.String itemstring)
public java.lang.String Prompt()
public void Prompt(java.lang.String str)
public void DisplayDropdown()
public void AfterSelecting(java.lang.String selection)
public void onItemSelected(android.widget.AdapterView<?> parent,
android.view.View view,
int position,
long id)
onItemSelected in interface android.widget.AdapterView.OnItemSelectedListenerpublic void onNothingSelected(android.widget.AdapterView<?> parent)
onNothingSelected in interface android.widget.AdapterView.OnItemSelectedListener