|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.curre.prefcount.service.LafThemeService
public class LafThemeService
This is a helper class to assist with Look and Feel issues.
Created date: Jun 11, 2007
| Field Summary | |
|---|---|
static PrefSkin[] |
AVAILABLE_SKINS
Array of available themes/skins. |
| Method Summary | |
|---|---|
PrefSkin |
findSkinById(java.lang.String skinId)
Returns the skin given its ID (resource key). |
PrefSkin |
getCurrentSkin()
Returns reference to the current skin. |
static LafThemeService |
getInstance()
Returns an instance of this class to use. |
void |
setLookAndFeel(java.lang.String skinId,
boolean isFirstRun)
Sets the Look and Feel according to the passed theme/skin name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PrefSkin[] AVAILABLE_SKINS
| Method Detail |
|---|
public static LafThemeService getInstance()
public PrefSkin getCurrentSkin()
public void setLookAndFeel(java.lang.String skinId,
boolean isFirstRun)
skinId - Theme/skin ID (resource key) to set the LaF to.isFirstRun - Flag to indicate the first run of this method (when true).
public PrefSkin findSkinById(java.lang.String skinId)
throws ServiceException
skinId - Skin ID (resource key).
ServiceException - If skin with given ID was not found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||