public class SkinTemplate extends Object
Modifier and Type | Field and Description |
---|---|
protected I18nizableText |
_description
Template description
|
protected File |
_file
The template directory
|
protected String |
_id
Template id (e.g.
|
protected I18nizableText |
_label
Template label
|
protected String |
_largeImage
Template thumbnail 48px
|
protected long |
_lastConfUpdate
The last time the file was loaded
|
private static Logger |
_logger |
protected String |
_mediumImage
Template thumbnail 32px
|
protected String |
_skinId
The skin id
|
protected String |
_smallImage
Template thumbnail 16px
|
protected Map<String,SkinTemplateZone> |
_zones
Template zones.
|
Constructor and Description |
---|
SkinTemplate(String skinId,
String templateId,
File file)
Creates a template
|
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)
|
String |
getDefaultZoneId()
Get the primary default zone.
|
I18nizableText |
getDescription()
The template description
|
File |
getFile()
Get the template's file directory
|
String |
getId()
The template id
|
I18nizableText |
getLabel()
The template label
|
String |
getLargeImage()
The large image file uri
|
String |
getMediumImage()
The medium image file uri
|
String |
getSmallImage()
The small image file uri
|
SkinTemplateZone |
getZone(String zoneId)
The zone identifier by its id
|
Map<String,SkinTemplateZone> |
getZones()
The zones defined in by the template def
|
void |
refreshValues()
Refresh the conf values
|
protected I18nizableText _label
protected I18nizableText _description
protected String _smallImage
protected String _mediumImage
protected String _largeImage
protected Map<String,SkinTemplateZone> _zones
protected long _lastConfUpdate
public SkinTemplate(String skinId, String templateId, File file)
skinId
- The skin idtemplateId
- The template idfile
- The template fileprotected 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 Map<String,SkinTemplateZone> getZones()
public SkinTemplateZone getZone(String zoneId)
zoneId
- The id of the zone definition to getpublic File getFile()
public String getDefaultZoneId()