Class Overview
This preference is used to manage a boolean value using a checkbox.
Summary
Public Constructors |
|
LLPreferenceCheckBox(int id, String title, String summary, boolean checked, Boolean def)
|
Public Methods |
boolean
|
isChecked()
Return true if this preference is checked.
|
void
|
setChecked(boolean checked)
Set the checked state of this preference.
|
void
|
setDependencies(LLPreference[] dependencies, LLPreference[] invertedDependencies)
Set a list of preferences that will be disabled or enabled depending on this preference 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
LLPreferenceCheckBox
(int id, String title, String summary, boolean checked, Boolean def)
Public Methods
public
boolean
isChecked
()
Return true if this preference is checked.
public
void
setChecked
(boolean checked)
Set the checked state of this preference.
public
void
setDependencies
(LLPreference[] dependencies, LLPreference[] invertedDependencies)
Set a list of preferences that will be disabled or enabled depending on this preference value.