public class SkinTemplateZone extends Object
Modifier and Type | Field and Description |
---|---|
protected I18nizableText |
_description
Zone description
|
protected String |
_id
Template id (e.g.
|
protected Map<String,String> |
_inheritance
The zone inheritance description.
|
protected I18nizableText |
_label
Zone label
|
protected String |
_largeImage
Zone thumbnail 48px
|
private static Logger |
_logger |
protected String |
_mediumImage
Zone thumbnail 32px
|
protected String |
_skinId
The skin id
|
protected String |
_smallImage
Zone thumbnail 16px
|
protected String |
_templateId
The template id
|
protected String |
_type
Zone type (primary or secondary)
|
static String |
TYPE_PRIMARY
The type of a primary zone
|
static String |
TYPE_SECONDARY
The type of a secondary zone
|
Constructor and Description |
---|
SkinTemplateZone(String skinId,
String templateId,
String id,
String type,
I18nizableText label,
I18nizableText description,
String smallImage,
String mediumImage,
String largeImage,
String inheritanceString)
Create a zone
|
Modifier and Type | Method and Description |
---|---|
private Map<String,String> |
_parseInheritance(String inheritanceString)
Parse the inheritance argument for the constructor
|
I18nizableText |
getDescription()
The template description
|
String |
getId()
The template id
|
String |
getInheritance(String templateName)
Get the name of the zone to inherit in the given template
|
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
|
String |
getType()
Get the zone type (primary or secondary)
|
boolean |
hasInheritance()
Determine if this zone inherits another one
|
public static final String TYPE_PRIMARY
public static final String TYPE_SECONDARY
protected String _templateId
protected I18nizableText _label
protected I18nizableText _description
protected String _smallImage
protected String _mediumImage
protected String _largeImage
protected Map<String,String> _inheritance
public SkinTemplateZone(String skinId, String templateId, String id, String type, I18nizableText label, I18nizableText description, String smallImage, String mediumImage, String largeImage, String inheritanceString)
skinId
- The id of the skin owning the template owning the zonetemplateId
- The id of the template owning the zoneid
- The id of the zonetype
- The zone type between primary and secondary.label
- The label of the zonedescription
- The description of the zonesmallImage
- The small image to represent the zonemediumImage
- The medium image to represent the zonelargeImage
- The large image to represent the zoneinheritanceString
- The inheritance scheme following the pattern "TemplateName->,ZoneNameInThatTemplate,..." where TemplateName can be "*" or "". A completely empty string is equals to "*->CurrentZoneName". A blank string after the arrow means "no inheritance for this template".private Map<String,String> _parseInheritance(String inheritanceString)
inheritanceString
- the representation of the zone inheritance for the templatespublic I18nizableText getLabel()
public I18nizableText getDescription()
public String getSmallImage()
public String getMediumImage()
public String getLargeImage()
public boolean hasInheritance()
public String getInheritance(String templateName)
templateName
- The name of the template. Cannot be empty, null or a joker.