|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.borg.model.Theme
public class Theme
Each Theme instance holds the values for the user tunable UI colors The Theme class also manages the persistence of Themes in the database and keeps a cache of Theme objects Themes are persisted as options in the OPTIONS table
| Constructor Summary | |
|---|---|
Theme()
|
|
| Method Summary | |
|---|---|
boolean |
canEqual(Object other)
|
static void |
delete(String name)
delete a theme by name |
boolean |
equals(Object o)
|
int |
getBirthdayTextColor()
|
static Theme |
getCurrentTheme()
return the active Theme |
int |
getDefaultBg()
|
int |
getDefaultFg()
|
int |
getHalfdayBg()
|
int |
getHolidayBg()
|
int |
getHolidayTextColor()
|
String |
getName()
|
int |
getStripeBg()
|
int |
getTaskTextColor()
|
int |
getTextColor1()
|
int |
getTextColor2()
|
int |
getTextColor3()
|
int |
getTextColor4()
|
int |
getTextColor5()
|
static Theme |
getTheme(String name)
find a Theme by name |
static Collection<String> |
getThemeNames()
return a list of the persisted theme names |
int |
getTodayBg()
|
int |
getTrayIconBg()
|
int |
getTrayIconFg()
|
int |
getVacationBg()
|
int |
getWeekdayBg()
|
int |
getWeekendBg()
|
int |
hashCode()
|
void |
save()
save the current theme in the database |
void |
setBirthdayTextColor(int birthdayTextColor)
|
static void |
setCurrentTheme(Theme t)
Set a theme to be the active theme |
void |
setDefaultBg(int defaultBg)
|
void |
setDefaultFg(int defaultFg)
|
void |
setHalfdayBg(int halfdayBg)
|
void |
setHolidayBg(int holidayBg)
|
void |
setHolidayTextColor(int holidayTextColor)
|
void |
setName(String name)
|
void |
setStripeBg(int stripeBg)
|
void |
setTaskTextColor(int taskTextColor)
|
void |
setTextColor1(int textColor1)
|
void |
setTextColor2(int textColor2)
|
void |
setTextColor3(int textColor3)
|
void |
setTextColor4(int textColor4)
|
void |
setTextColor5(int textColor5)
|
void |
setTodayBg(int todayBg)
|
void |
setTrayIconBg(int trayIconBg)
|
void |
setTrayIconFg(int trayIconFg)
|
void |
setVacationBg(int vacationBg)
|
void |
setWeekdayBg(int weekdayBg)
|
void |
setWeekendBg(int weekendBg)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Theme()
| Method Detail |
|---|
public static void delete(String name)
throws Exception
name - the Theme name
Exceptionpublic static final Theme getCurrentTheme()
public static final Theme getTheme(String name)
name - the Theme name
public static Collection<String> getThemeNames()
public static void setCurrentTheme(Theme t)
throws Warning,
Exception
t - the Theme
Warning
Exception
public void save()
throws Exception
Warning
Exceptionpublic int getBirthdayTextColor()
public int getDefaultBg()
public int getDefaultFg()
public int getHalfdayBg()
public int getHolidayBg()
public int getHolidayTextColor()
public String getName()
public int getStripeBg()
public int getTaskTextColor()
public int getTextColor1()
public int getTextColor2()
public int getTextColor3()
public int getTextColor4()
public int getTextColor5()
public int getTodayBg()
public int getVacationBg()
public int getWeekdayBg()
public int getWeekendBg()
public int getTrayIconBg()
public int getTrayIconFg()
public void setBirthdayTextColor(int birthdayTextColor)
public void setDefaultBg(int defaultBg)
public void setDefaultFg(int defaultFg)
public void setHalfdayBg(int halfdayBg)
public void setHolidayBg(int holidayBg)
public void setHolidayTextColor(int holidayTextColor)
public void setName(String name)
public void setStripeBg(int stripeBg)
public void setTaskTextColor(int taskTextColor)
public void setTextColor1(int textColor1)
public void setTextColor2(int textColor2)
public void setTextColor3(int textColor3)
public void setTextColor4(int textColor4)
public void setTextColor5(int textColor5)
public void setTodayBg(int todayBg)
public void setVacationBg(int vacationBg)
public void setWeekdayBg(int weekdayBg)
public void setWeekendBg(int weekendBg)
public void setTrayIconBg(int trayIconBg)
public void setTrayIconFg(int trayIconFg)
public boolean equals(Object o)
equals in class Objectpublic boolean canEqual(Object other)
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||