org.apache.myfaces.trinidadinternal.style
Class CSSStyle

java.lang.Object
  extended by org.apache.myfaces.trinidad.style.Style
      extended by org.apache.myfaces.trinidadinternal.style.CoreStyle
          extended by org.apache.myfaces.trinidadinternal.style.BaseStyle
              extended by org.apache.myfaces.trinidadinternal.style.CSSStyle
All Implemented Interfaces:
java.io.Serializable

Deprecated. Use UnmodifiableStyle which cannot be modified once it is created.

public class CSSStyle
extends BaseStyle

Style implementation for CSS. Mutable.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/style/CSSStyle.java#0 $) $Date: 10-nov-2005.18:57:55 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.myfaces.trinidadinternal.style.CoreStyle
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()
          Deprecated. Creates an empty CSSStyle.
CSSStyle(java.util.Map<java.lang.String,java.lang.String> properties)
          Deprecated. Creates an CSSStyle with the specified properties.
 
Method Summary
protected  java.lang.Object parseProperty(java.lang.Object key)
          Deprecated. Parses the property for the specified key.
 void setProperty(java.lang.String name, java.lang.String value)
          Deprecated. Sets the specified property value.
 java.lang.String toInlineString()
          Deprecated. Converts the style to a String suitable for use as an inline style attribute value.
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class org.apache.myfaces.trinidadinternal.style.BaseStyle
getParsedProperty, getProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CSSStyle

public CSSStyle()
Deprecated. 
Creates an empty CSSStyle.


CSSStyle

public CSSStyle(java.util.Map<java.lang.String,java.lang.String> properties)
Deprecated. 
Creates an CSSStyle with the specified properties.

Parameters:
properties - The properties of this style. The values must be Strings.
Method Detail

toInlineString

public java.lang.String toInlineString()
Deprecated. 
Converts the style to a String suitable for use as an inline style attribute value.

Specified by:
toInlineString in class BaseStyle

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Deprecated. 
Sets the specified property value. If the properties are all known up front, it is better for performance to use the CSSStyle(Map<String, String> properties) constructor than to create an empty CSSStyle and call setProperty for each property.

Overrides:
setProperty in class BaseStyle

parseProperty

protected java.lang.Object parseProperty(java.lang.Object key)
                                  throws PropertyParseException
Deprecated. 
Parses the property for the specified key.

Specified by:
parseProperty in class BaseStyle
Throws:
PropertyParseException

toString

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


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.