|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.style.BaseStyle
public abstract class BaseStyle
Base class for Style implementations
Field Summary |
---|
Fields inherited from interface org.apache.myfaces.trinidadinternal.style.Style |
---|
BACKGROUND_KEY, BOLD_FONT_WEIGHT, FONT_FAMILIES_KEY, FONT_SIZE_KEY, FONT_STYLE_KEY, FONT_WEIGHT_KEY, FOREGROUND_KEY, ITALIC_FONT_STYLE, PLAIN_FONT_STYLE, PLAIN_FONT_WEIGHT, TEXT_ANTIALIAS_KEY |
Constructor Summary | |
---|---|
BaseStyle()
Creates an empty BaseStyle. |
|
BaseStyle(java.util.Map<java.lang.String,java.lang.String> properties)
Creates a BaseStyle with the specified properties |
|
BaseStyle(Style style)
Creates a BaseStyle from an arbitrary Style object. |
Method Summary | |
---|---|
java.lang.Object |
getParsedProperty(ParsedPropertyKey key)
Returns a parsed Java object corresponding to the specified property key. |
java.lang.String |
getProperty(java.lang.String name)
Returns the value of the property with the specified name. |
java.util.Iterator<java.lang.Object> |
getPropertyNames()
Returns the names of the properties defined by this style. |
protected abstract java.lang.Object |
parseProperty(java.lang.Object key)
Parses the property for the specified key. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the specified property value. |
abstract java.lang.String |
toInlineString()
Converts the style to a String suitable for use as an inline style attribute value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseStyle()
public BaseStyle(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- The properties of this style. The
values must be Strings.public BaseStyle(Style style)
Method Detail |
---|
public java.util.Iterator<java.lang.Object> getPropertyNames()
The property names can be any valid property name.
getPropertyNames
in interface Style
public java.lang.String getProperty(java.lang.String name)
getProperty
in interface Style
name
- The property name for the property to returnpublic java.lang.Object getParsedProperty(ParsedPropertyKey key) throws PropertyParseException
getParsedProperty
in interface Style
PropertyParseException
public void setProperty(java.lang.String name, java.lang.String value)
public abstract java.lang.String toInlineString()
toInlineString
in interface Style
protected abstract java.lang.Object parseProperty(java.lang.Object key) throws PropertyParseException
PropertyParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |