public class Selector
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Selector.OnSelectionChangedListener |
Constructor and Description |
---|
Selector(android.content.Context context,
android.view.View root,
BasicNameValuePair[] items) |
Selector(android.content.Context context,
android.view.View root,
int resourceListId)
Creates a standard selector within the system provided a resource defined list.
|
Selector(android.content.Context context,
android.view.View root,
java.lang.String[] items) |
Modifier and Type | Method and Description |
---|---|
int |
getCount() |
java.lang.String |
getSelectedItem() |
int |
getSelectedItemId() |
int |
getSelectedItemPosition() |
java.lang.String |
getSelectedName() |
java.lang.String |
getSelectedValue() |
java.lang.String |
getTitle() |
boolean |
isEnabled() |
void |
setCustomText(java.lang.String text) |
void |
setEnabled(boolean enabled) |
void |
setItems(java.lang.String[] items)
Allows for reinitialization of the current Selector items.
|
void |
setOnSelectionChangedListener(Selector.OnSelectionChangedListener listener) |
void |
setSelectedItem(int itemId) |
boolean |
setSelectedName(java.lang.String text) |
void |
setSelectedValue(java.lang.String text) |
void |
setSelection(int itemId) |
void |
setTitle(java.lang.String title) |
void |
setTitleVisible(boolean b) |
void |
setVisibility(int state) |
public Selector(android.content.Context context, android.view.View root, int resourceListId)
public Selector(android.content.Context context, android.view.View root, java.lang.String[] items)
public Selector(android.content.Context context, android.view.View root, BasicNameValuePair[] items)
public void setItems(java.lang.String[] items)
public void setOnSelectionChangedListener(Selector.OnSelectionChangedListener listener)
public void setTitle(java.lang.String title)
public void setTitleVisible(boolean b)
public java.lang.String getTitle()
public void setSelection(int itemId)
public void setSelectedItem(int itemId)
public boolean setSelectedName(java.lang.String text)
public void setCustomText(java.lang.String text)
public void setSelectedValue(java.lang.String text)
public int getSelectedItemId()
public int getSelectedItemPosition()
public int getCount()
public java.lang.String getSelectedName()
public java.lang.String getSelectedItem()
public java.lang.String getSelectedValue()
public boolean isEnabled()
public void setEnabled(boolean enabled)
public void setVisibility(int state)