java.lang.Object | ||
↳ | net.pierrox.lightning_launcher.prefs.LLPreference | |
↳ | net.pierrox.lightning_launcher.prefs.LLPreferenceList |
This preference is used to select an item in a list.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LLPreferenceList(int id, String title, String[] labels, int value, Integer defaultValue)
Construct a new list preference.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String[] |
getLabels()
Return the list of values.
| ||||||||||
int |
getValueIndex()
Retrieve the index of the currently selected value.
| ||||||||||
void |
setLabels(String[] labels)
Set the list of values as an array of strings.
| ||||||||||
void |
setValueIndex(int index)
Set the current index of the value in the list
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
net.pierrox.lightning_launcher.prefs.LLPreference
| |||||||||||
From class
java.lang.Object
|
Construct a new list preference.
id | a unique number to identify the preference, use 0 if unused. |
---|---|
title | Displayed title. |
labels | an array of strings: the list of available choices |
value | the index of the currently selected choice |
defaultValue | the index of the default choice, or null if unused |
Return the list of values.
Retrieve the index of the currently selected value.
Set the list of values as an array of strings.
Set the current index of the value in the list