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
int
|
getId()
Return the unique identifier.
|
String
|
getSummary()
Return the summary, if any.
|
String
|
getTitle()
Return the title.
|
boolean
|
isDisabled()
Return true if the preference is currently disabled.
|
boolean
|
isOverriding()
Return true if the value is different from the default value
|
boolean
|
isShowingOverride()
Return true if this preference is showing the override checkbox.
|
boolean
|
isVisible()
Return true is the preference is currently visible.
|
void
|
reset()
Set the value of this preference with the default value.
|
void
|
setDisabled(boolean disabled)
Disable or enable the preference (it will be grayed out and not clickable when disabled)
|
void
|
setSummary(String summary)
Set a new summary.
|
void
|
setTitle(String title)
Set a new title.
|
void
|
setValue(Object value, Object defaultValue)
Set the value and optionally a default value.
|
void
|
setVisible(boolean visible)
Show or hide this preference.
|
|
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
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)