public class

LLPreferenceColor

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

Class Overview

This preference is used to manage a color. It will display a color preview and a color picker when clicked.

Summary

Public Constructors
LLPreferenceColor(int id, String title, String summary, int color, Integer default_color, boolean has_alpha)
Create a new color preference
Public Methods
int getColor()
Return the currently selected color.
boolean hasAlpha()
Return true is this preference allows alpha configuration
void setColor(int color)
Set this preference color.
void setDefaultColor(int color)
Set this preference default color.
[Expand]
Inherited Methods
From class net.pierrox.lightning_launcher.prefs.LLPreference
From class java.lang.Object

Public Constructors

public LLPreferenceColor (int id, String title, String summary, int color, Integer default_color, boolean has_alpha)

Create a new color preference

Parameters
id a unique number to identify the preference, use 0 if unused.
title Displayed title.
summary Displayed summary, use null for none.
color Color for the preference as a 32 bits ARGB value.
default_color Default color if displaying the override checkbox. Use null if unused.
has_alpha true to allow transparency setting

Public Methods

public int getColor ()

Return the currently selected color.

public boolean hasAlpha ()

Return true is this preference allows alpha configuration

public void setColor (int color)

Set this preference color.

Parameters
color a 32 bits ARGB value

public void setDefaultColor (int color)

Set this preference default color.

Parameters
color a 32 bits ARGB value