public class

LLPreferenceList

extends LLPreference
java.lang.Object
   ↳ net.pierrox.lightning_launcher.prefs.LLPreference
     ↳ net.pierrox.lightning_launcher.prefs.LLPreferenceList

Class Overview

This preference is used to select an item in a list.

Summary

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

Public Constructors

public LLPreferenceList (int id, String title, String[] labels, int value, Integer defaultValue)

Construct a new list preference.

Parameters
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

Public Methods

public String[] getLabels ()

Return the list of values.

public int getValueIndex ()

Retrieve the index of the currently selected value.

public void setLabels (String[] labels)

Set the list of values as an array of strings.

public void setValueIndex (int index)

Set the current index of the value in the list