Modifier and Type | Field and Description |
---|---|
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
|
protected long |
_lastConfUpdate
The last time the file was loaded
|
private static Logger |
_logger |
protected String |
_mediumImage
The skin thumbnail 32x32
|
protected String |
_smallImage
The skin thumbnail 16x16
|
protected Map<String,SkinTemplate> |
_templates
The map of templates id and associated templates
|
Constructor and Description |
---|
Skin(String id,
File file)
Creates a skin
|
Modifier and Type | Method and Description |
---|---|
private I18nizableText |
_configureI18n(Configuration child,
I18nizableText defaultValue) |
private String |
_configureThumbnail(String value,
String defaultImage) |
protected void |
_defaultValues()
The configuration default values (if configuration file does not exist or is unreadable)
|
private boolean |
_templateExists(String id) |
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
|
SkinTemplate |
getTemplate(String id)
Get a template
|
Set<String> |
getTemplates()
Get the list of existing templates
|
void |
refreshValues()
Refresh the conf values
|
protected I18nizableText _label
protected I18nizableText _description
protected String _smallImage
protected String _mediumImage
protected String _largeImage
protected Map<String,SkinTemplate> _templates
protected long _lastConfUpdate
public Set<String> getTemplates()
public SkinTemplate getTemplate(String id)
id
- The id of the templateprivate boolean _templateExists(String id)
protected void _defaultValues()
public void refreshValues()
private String _configureThumbnail(String value, String defaultImage)
private I18nizableText _configureI18n(Configuration child, I18nizableText defaultValue) throws ConfigurationException
ConfigurationException
public I18nizableText getLabel()
public I18nizableText getDescription()
public String getSmallImage()
public String getMediumImage()
public String getLargeImage()
public String getLocation()