org.apache.myfaces.trinidadinternal.style
Class BaseStyle

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CSSStyle

Deprecated.

public abstract class BaseStyle
extends CoreStyle
implements java.io.Serializable

Base class for Style implementations TODO Remove the ParsedProperty code from Trinidad. It is only used for the un-used image generation code. TODO Then remove CoreStyle and implement the public Style object instead.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/style/BaseStyle.java#0 $) $Date: 10-nov-2005.18:57:54 $
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
BaseStyle()
          Deprecated. Creates an empty BaseStyle.
BaseStyle(java.util.Map<java.lang.String,java.lang.String> propertiesMap)
          Deprecated. Creates a BaseStyle with the specified properties
 
Method Summary
 java.lang.Object getParsedProperty(ParsedPropertyKey key)
          Deprecated. Returns a parsed Java object corresponding to the specified property key.
 java.util.Map<java.lang.String,java.lang.String> getProperties()
          Deprecated. Returns an UnmodifiableMap
protected abstract  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.
abstract  java.lang.String toInlineString()
          Deprecated. 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

BaseStyle

public BaseStyle()
Deprecated. 
Creates an empty BaseStyle. For better performance, use the Base(Map<String, String>) constructor.


BaseStyle

public BaseStyle(java.util.Map<java.lang.String,java.lang.String> propertiesMap)
Deprecated. 
Creates a BaseStyle with the specified properties

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

getProperties

public java.util.Map<java.lang.String,java.lang.String> getProperties()
Deprecated. 
Returns an UnmodifiableMap

Specified by:
getProperties in class org.apache.myfaces.trinidad.style.Style

getParsedProperty

public java.lang.Object getParsedProperty(ParsedPropertyKey key)
                                   throws PropertyParseException
Deprecated. 
Returns a parsed Java object corresponding to the specified property key.

Specified by:
getParsedProperty in class CoreStyle
Throws:
PropertyParseException

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Deprecated. 
Sets the specified property value.


toInlineString

public abstract 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 org.apache.myfaces.trinidad.style.Style

parseProperty

protected abstract java.lang.Object parseProperty(java.lang.Object key)
                                           throws PropertyParseException
Deprecated. 
Parses the property for the specified key. Subclasses should implement this method to perform style sheet language-specific parsing.

Throws:
PropertyParseException


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