public class SkinAddition extends Object implements Comparable
SkinAddition objects are used by custom component developers who have created custom components, and they need a way to 'push' in their own stylesheet and resource bundle for these components into some skin of their choosing, most likely the simple skin.
A Skin object contains zero or more SkinAdditions. The SkinAdditions' stylesheets are merged into the Skin's own stylesheet. The SkinAdditions' resource bundle is looked at along with the Skin's own resource bundle when Skin's getTranslatedValue is called.
If you want to 'push' your styles into a specific skin, then you would create a skin-addition in the trinidad-skins.xml file. You specify a <skin-addition>. The children are: <skin-id>, <style-sheet-name>, <bundle-name>, and <translation-source>. The <skin-id> is used to specify which skin you want to 'push' your stylesheet/resource bundle into. Most likely this is the simple.desktop skin. The other elements are used to create a SkinAddition object.
Modifier and Type | Class and Description |
---|---|
static class |
SkinAddition.Builder
convenience builder for SkinAddition
does not support the deprecated ValueBinding for translationSource
|
Constructor and Description |
---|
SkinAddition(Map<String,String> features)
Deprecated.
Use builder to create a SkinAddition object.
|
SkinAddition(String styleSheetName)
Deprecated.
Use builder to create a SkinAddition object.
|
SkinAddition(String styleSheetName,
Map<String,String> features)
Deprecated.
Use builder to create a SkinAddition object.
|
SkinAddition(String styleSheetName,
String resourceBundleName)
Deprecated.
Use builder to create a SkinAddition object.
|
SkinAddition(String styleSheetName,
String resourceBundleName,
Map<String,String> features)
Deprecated.
Use builder to create a SkinAddition object.
|
SkinAddition(String styleSheetName,
javax.faces.el.ValueBinding translationSourceValueBinding)
Deprecated.
Use builder to create a SkinAddition object.
|
SkinAddition(String styleSheetName,
javax.el.ValueExpression translationSourceValueExpression)
Deprecated.
Use builder to create a SkinAddition object.
|
SkinAddition(String styleSheetName,
javax.el.ValueExpression translationSourceValueExpression,
Map<String,String> features)
Deprecated.
Use builder to create a SkinAddition object.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object t)
Compares two skinning additions for the purposes of ordering.
|
boolean |
equals(Object o) |
String |
getResourceBundleName()
Gets the SkinAddition's resource bundle.
|
Map<String,String> |
getSkinFeatures()
Gets any skin features added through the skin addition
|
String |
getSkinId()
Gets the skin id to which this skin addition belongs to.
|
String |
getStyleSheetName()
Gets the SkinAddition's style sheet name.
|
javax.faces.el.ValueBinding |
getTranslationSourceValueBinding()
Deprecated.
|
javax.el.ValueExpression |
getTranslationSourceValueExpression()
Gets the SkinAddition's translation source ValueExpresion.
|
int |
hashCode() |
String |
toString() |
@Deprecated public SkinAddition(String styleSheetName, String resourceBundleName)
@Deprecated public SkinAddition(String styleSheetName, javax.el.ValueExpression translationSourceValueExpression)
@Deprecated public SkinAddition(String styleSheetName)
@Deprecated public SkinAddition(String styleSheetName, String resourceBundleName, Map<String,String> features)
@Deprecated public SkinAddition(String styleSheetName, javax.el.ValueExpression translationSourceValueExpression, Map<String,String> features)
@Deprecated public SkinAddition(String styleSheetName, Map<String,String> features)
@Deprecated public SkinAddition(Map<String,String> features)
@Deprecated public SkinAddition(String styleSheetName, javax.faces.el.ValueBinding translationSourceValueBinding)
public String getSkinId()
public String getStyleSheetName()
public String getResourceBundleName()
public javax.el.ValueExpression getTranslationSourceValueExpression()
@Deprecated public javax.faces.el.ValueBinding getTranslationSourceValueBinding()
public Map<String,String> getSkinFeatures()
public int compareTo(Object t)
compareTo
in interface Comparable
t
- NullPointerException
- if t is nullClassCastException
- id t is not an instance of StyleSheetAdditionCopyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.