|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.style.BaseStyle
Base class for Style implementations
Fields inherited from interface oracle.cabo.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.Dictionary 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.Enumeration |
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.Dictionary properties)
properties
- The properties of this style. The
values must be Strings.public BaseStyle(Style style)
Method Detail |
public java.util.Enumeration 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
oracle.cabo.style.Style
One
- of the KEY constants (eg. FONT_SIZE_KEY, BACKGROUND_KEY,
etc...) defined by the Style interface.throws
- PropertyParseException Thrown if the property value
can not be parsed.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
|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |