|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidad.skin.SkinAddition
public class SkinAddition
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.
Constructor Summary | |
---|---|
SkinAddition(String styleSheetName)
Constructor takes a styleSheet name. |
|
SkinAddition(String styleSheetName,
String resourceBundleName)
Constructor takes a styleSheet name and a resourceBundle name. |
|
SkinAddition(String styleSheetName,
javax.faces.el.ValueBinding translationSourceValueBinding)
Deprecated. |
|
SkinAddition(String styleSheetName,
javax.el.ValueExpression translationSourceValueExpression)
Constructor takes a styleSheet name and a translationSource ValueExpression. |
Method Summary | |
---|---|
String |
getResourceBundleName()
Gets the SkinAddition's resource bundle. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SkinAddition(String styleSheetName, String resourceBundleName)
public SkinAddition(String styleSheetName, javax.el.ValueExpression translationSourceValueExpression)
public SkinAddition(String styleSheetName)
@Deprecated public SkinAddition(String styleSheetName, javax.faces.el.ValueBinding translationSourceValueBinding)
Method Detail |
---|
public String getStyleSheetName()
public String getResourceBundleName()
public javax.el.ValueExpression getTranslationSourceValueExpression()
@Deprecated public javax.faces.el.ValueBinding getTranslationSourceValueBinding()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |