Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.style
Class CSSStyle

java.lang.Object
  |
  +--oracle.cabo.style.BaseStyle
        |
        +--oracle.cabo.style.CSSStyle
All Implemented Interfaces:
Style

public class CSSStyle
extends BaseStyle

Style implementation for CSS.


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
CSSStyle()
          Creates an empty CSSStyle.
CSSStyle(java.util.Dictionary properties)
          Creates an CSSStyle with the specified properties.
CSSStyle(Style style)
          Creates a BaseStyle from an arbitrary Style object.
 
Method Summary
protected  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.
 java.lang.String toInlineString()
          Converts the style to a String suitable for use as an inline style attribute value.
 java.lang.String toString()
           
 
Methods inherited from class oracle.cabo.style.BaseStyle
getParsedProperty, getProperty, getPropertyNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CSSStyle

public CSSStyle()
Creates an empty CSSStyle.

CSSStyle

public CSSStyle(java.util.Dictionary properties)
Creates an CSSStyle with the specified properties.
Parameters:
properties - The properties of this style. The values must be Strings.

CSSStyle

public CSSStyle(Style style)
Creates a BaseStyle from an arbitrary Style object. All of the properties from the specified Style object are copied into this CSSStyle.
Method Detail

toInlineString

public java.lang.String toInlineString()
Converts the style to a String suitable for use as an inline style attribute value.
Overrides:
toInlineString in class BaseStyle

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Sets the specified property value.
Overrides:
setProperty in class BaseStyle

parseProperty

protected java.lang.Object parseProperty(java.lang.Object key)
                                  throws PropertyParseException
Parses the property for the specified key.
Overrides:
parseProperty in class BaseStyle

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.