public class SkinModel extends Object
SkinParametersModel| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
SkinModel.CssMenuItem
Abstract representation of a menu item 
 | 
class  | 
SkinModel.CssStyleItem
Bean representing a item of css style 
 | 
class  | 
SkinModel.Separator
Item representing a separator 
 | 
class  | 
SkinModel.Theme
Bean representing a theme 
 | 
| Modifier and Type | Field and Description | 
|---|---|
private List<String> | 
_colors  | 
private Map<String,List<SkinModel.CssMenuItem>> | 
_cssStyles  | 
private String | 
_defaultColorTheme  | 
private Map<String,String> | 
_defaultValues  | 
protected I18nizableText | 
_description
The skin description 
 | 
protected File | 
_file
The skin directory 
 | 
protected String | 
_id
The skin id (e.g. 
 | 
protected I18nizableText | 
_label
The skin name 
 | 
protected String | 
_largeImage
The skin thumbnail 48x48 
 | 
private long | 
_lastColorsUpdate  | 
protected long | 
_lastConfUpdate
The last time the file was loaded 
 | 
private long | 
_lastCssStylesUpdate  | 
private long | 
_lastDefaultValuesUpdate  | 
private static Logger | 
_logger  | 
protected String | 
_mediumImage
The skin thumbnail 32x32 
 | 
protected String | 
_smallImage
The skin thumbnail 16x16 
 | 
private Map<String,SkinModel.Theme> | 
_themes  | 
| Constructor and Description | 
|---|
SkinModel(String id,
         File file)
Creates a skin 
 | 
| Modifier and Type | Method and Description | 
|---|---|
private I18nizableText | 
_configureI18nizableText(Configuration configuration,
                        I18nizableText defaultValue)  | 
private String | 
_configureIcon(Configuration iconConf)  | 
private List<SkinModel.CssMenuItem> | 
_configureStyleItems(Configuration styleConfig)  | 
private String | 
_configureThumbnail(String value,
                   String defaultImage)  | 
protected void | 
_defaultValues()
The configuration default values (if configuration file does not exist or is unreadable) 
 | 
private void | 
_refreshColorsValues()  | 
private void | 
_refreshCssStyles()  | 
private void | 
_refreshDefaultValues()  | 
List<String> | 
getColors(String themeId)
Get the default colors of this theme 
 | 
List<String> | 
getDefaultColors()
Get the default colors of this model 
 | 
String | 
getDefaultColorTheme()
Get the default color theme 
 | 
Map<String,String> | 
getDefaultValues()
Get model default values 
 | 
I18nizableText | 
getDescription()
The skin description 
 | 
File | 
getFile()
Get the skin's file directory 
 | 
String | 
getId()
The skin id 
 | 
I18nizableText | 
getLabel()
The skin label 
 | 
String | 
getLargeImage()
The large image file uri 
 | 
String | 
getLocation()
Get the absolute path of the skin's file directory 
 | 
String | 
getMediumImage()
The medium image file uri 
 | 
String | 
getSmallImage()
The small image file uri 
 | 
Map<String,List<SkinModel.CssMenuItem>> | 
getStyleItems()
Get all style items of this model 
 | 
List<SkinModel.CssMenuItem> | 
getStyleItems(String styleId)
Get the items of this css style 
 | 
SkinModel.Theme | 
getTheme(String themeId)
Get a theme of this model 
 | 
Map<String,SkinModel.Theme> | 
getThemes()
Get color themes of this model 
 | 
void | 
refreshValues()
Refresh the conf values 
 | 
protected I18nizableText _label
protected I18nizableText _description
protected String _smallImage
protected String _mediumImage
protected String _largeImage
protected long _lastConfUpdate
private long _lastDefaultValuesUpdate
private Map<String,String> _defaultValues
private String _defaultColorTheme
private long _lastColorsUpdate
private Map<String,SkinModel.Theme> _themes
private long _lastCssStylesUpdate
private Map<String,List<SkinModel.CssMenuItem>> _cssStyles
protected void _defaultValues()
public void refreshValues()
public String getDefaultColorTheme()
nullpublic Map<String,SkinModel.Theme> getThemes()
public SkinModel.Theme getTheme(String themeId)
themeId - the theme idpublic List<String> getDefaultColors()
public List<String> getColors(String themeId)
themeId - The theme idpublic Map<String,List<SkinModel.CssMenuItem>> getStyleItems()
public List<SkinModel.CssMenuItem> getStyleItems(String styleId)
styleId - The css style idpublic Map<String,String> getDefaultValues()
private void _refreshColorsValues()
private void _refreshCssStyles()
private List<SkinModel.CssMenuItem> _configureStyleItems(Configuration styleConfig) throws ConfigurationException
ConfigurationExceptionprivate void _refreshDefaultValues()
private String _configureThumbnail(String value, String defaultImage)
private I18nizableText _configureI18nizableText(Configuration configuration, I18nizableText defaultValue) throws ConfigurationException
ConfigurationExceptionprivate String _configureIcon(Configuration iconConf) throws ConfigurationException
ConfigurationExceptionpublic I18nizableText getLabel()
public I18nizableText getDescription()
public String getSmallImage()
public String getMediumImage()
public String getLargeImage()
public String getLocation()