|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidad.skin.Skin
public abstract class Skin
Defines the components (icons, styles, etc) which are used to implement a particular skin.
SkinFactory
Constructor Summary | |
---|---|
Skin()
|
Method Summary | |
---|---|
abstract java.lang.String |
getFamily()
Returns the name of the skin "family" for this skin. |
abstract Icon |
getIcon(java.lang.String iconName)
Our renderers call this to get the icon. |
abstract Icon |
getIcon(java.lang.String iconName,
boolean resolveIcon)
Returns an Icon object; can be a ReferenceIcon. |
abstract java.lang.String |
getId()
Returns an string identifier which uniquely identies this Skin implementation. |
abstract java.lang.Object |
getProperty(java.lang.Object key)
Retrieves a property that was set via a call to setProperty(). |
abstract java.lang.String |
getRenderKitId()
Returns the renderKitId for the Skin. |
abstract java.util.Map<java.lang.String,java.lang.String> |
getStyleClassMap(RenderingContext arc)
Returns the style class map, or null if there is no map. |
abstract java.lang.String |
getStyleSheetDocumentId(RenderingContext arc)
Returns the id of the Skin's stylesheet document. |
abstract java.lang.String |
getStyleSheetName()
Returns the name of the XSS style sheet for this Skin. |
abstract java.lang.String |
getTranslatedString(LocaleContext lContext,
java.lang.String key)
Returns a translated String in the LocaleContext's translation Locale. |
abstract java.lang.Object |
getTranslatedValue(LocaleContext lContext,
java.lang.String key)
Returns a translated value in the LocaleContext's translation Locale. |
abstract void |
registerIcon(java.lang.String iconName,
Icon icon)
Registers an Icon for the specified icon name. |
abstract void |
registerStyleSheet(java.lang.String styleSheetName)
Registers a style sheet which defines extension-specific styles. |
abstract void |
setProperty(java.lang.Object key,
java.lang.Object value)
Sets a value for the specified property key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Skin()
Method Detail |
---|
public abstract java.lang.String getId()
SkinFactory.getSkin(javax.faces.context.FacesContext, java.lang.String)
public abstract java.lang.String getFamily()
public abstract java.lang.String getRenderKitId()
public abstract java.lang.String getStyleSheetDocumentId(RenderingContext arc)
public abstract java.util.Map<java.lang.String,java.lang.String> getStyleClassMap(RenderingContext arc)
public abstract java.lang.String getStyleSheetName()
public abstract java.lang.String getTranslatedString(LocaleContext lContext, java.lang.String key) throws java.util.MissingResourceException
java.util.MissingResourceException
public abstract java.lang.Object getTranslatedValue(LocaleContext lContext, java.lang.String key) throws java.util.MissingResourceException
lContext
- The LocaleContext which provides the translation Locale.
Cannot be null.key
- The key of the translation to retrieve. Cannot be null.
java.lang.NullPointerException
- if lContext or key is null.
java.util.MissingResourceException
public abstract Icon getIcon(java.lang.String iconName)
public abstract Icon getIcon(java.lang.String iconName, boolean resolveIcon)
iconName
- The name of the icon to retrieve. Cannot be null
java.lang.NullPointerException
- if iconName is null.public abstract java.lang.Object getProperty(java.lang.Object key)
public abstract void setProperty(java.lang.Object key, java.lang.Object value)
public abstract void registerIcon(java.lang.String iconName, Icon icon)
iconName
- The name of the icon. Cannot be null.icon
- The Icon to register.
java.lang.NullPointerException
- if iconName is null.public abstract void registerStyleSheet(java.lang.String styleSheetName)
styleSheetName
- The name of the style sheet which
defines the extension's styles.
java.lang.NullPointerException
- if styleSheetName is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |