public class

LLPreferenceSlider

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

Class Overview

This preference is used to manage number settings, using a slider and -/+ buttons.

Summary

Public Constructors
LLPreferenceSlider(int id, String title, String summary, float value, Float default_value, String value_type, float min, float max, float interval, String unit)
Construct a slider preference
Public Methods
float getValue()
Return the value as a float, no matter what the input type is (integer or floating point)
void setValue(float value)
[Expand]
Inherited Methods
From class net.pierrox.lightning_launcher.prefs.LLPreference
From class java.lang.Object

Public Constructors

public LLPreferenceSlider (int id, String title, String summary, float value, Float default_value, String value_type, float min, float max, float interval, String unit)

Construct a slider preference

Parameters
id a unique number to identify the preference, use 0 if unused.
title Displayed title.
summary Displayed summary, use null for none.
value Value for the preference.
value_type one of INT (integer) or FLOAT (floating point value)
min minimum value for the slider
max maximum value for the slider
interval step to use when using +/- buttons
unit optional text to display units

Public Methods

public float getValue ()

Return the value as a float, no matter what the input type is (integer or floating point)

public void setValue (float value)