org.apache.myfaces.trinidadinternal.style
Class CoreStyle

java.lang.Object
  extended by org.apache.myfaces.trinidad.style.Style
      extended by org.apache.myfaces.trinidadinternal.style.CoreStyle
Direct Known Subclasses:
BaseStyle

Deprecated. Use the Style interface instead. The parsedProperties should not be used in new code. It's only used now in the image generation code that is not used.

public abstract class CoreStyle
extends org.apache.myfaces.trinidad.style.Style

A CoreStyle object defines a set of visual (or aural) style properties. The CoreStyle interface exposes one method for retrieving properties: getParsedProperty(). getParsedProperty() takes a key object (eg. FONT_WEIGHT_KEY) and returns the parsed, typed, Java object which represents the property value. The type of the returned object is key-specific, eg. for FONT_WEIGHT_KEY, an java.lang.Integer is returned. For BACKGROUND_KEY, a java.awt.Color is returned.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/style/Style.java#0 $) $Date: 10-nov-2005.18:57:56 $

Field Summary
static ParsedPropertyKey BACKGROUND_KEY
          Deprecated. Key for obtaining the Color object which corresponds to the style's "background-color" property.
static java.lang.Object BOLD_FONT_WEIGHT
          Deprecated. Constant for bold font weight.
static ParsedPropertyKey FONT_FAMILIES_KEY
          Deprecated. Key for obtaining the list of font family names for this style.
static ParsedPropertyKey FONT_SIZE_KEY
          Deprecated. This key is passed to Style.parseProperty() to obtain the font size for a Style.
static ParsedPropertyKey FONT_STYLE_KEY
          Deprecated. This key is passed to Style.parseProperty() to obtain the font style for a Style.
static ParsedPropertyKey FONT_WEIGHT_KEY
          Deprecated. This key is passed to Style.parseProperty() to obtain the font weight for a Style.
static ParsedPropertyKey FOREGROUND_KEY
          Deprecated. Key for obtaining the Color object which corresponds to the style's "color" property.
static java.lang.Object ITALIC_FONT_STYLE
          Deprecated. Constant for italic font style.
static java.lang.Object PLAIN_FONT_STYLE
          Deprecated. Constant for plain font style.
static java.lang.Object PLAIN_FONT_WEIGHT
          Deprecated. Constant for plain font weight.
static ParsedPropertyKey TEXT_ANTIALIAS_KEY
          Deprecated. This key is passed to Style.parseProperty() to obtain the text antialias style for a Style object.
 
Constructor Summary
CoreStyle()
          Deprecated.  
 
Method Summary
abstract  java.lang.Object getParsedProperty(ParsedPropertyKey key)
          Deprecated. Returns a parsed Java object corresponding to the specified property key.
 
Methods inherited from class org.apache.myfaces.trinidad.style.Style
getProperties, toInlineString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BACKGROUND_KEY

public static final ParsedPropertyKey BACKGROUND_KEY
Deprecated. 
Key for obtaining the Color object which corresponds to the style's "background-color" property.


FOREGROUND_KEY

public static final ParsedPropertyKey FOREGROUND_KEY
Deprecated. 
Key for obtaining the Color object which corresponds to the style's "color" property.


FONT_FAMILIES_KEY

public static final ParsedPropertyKey FONT_FAMILIES_KEY
Deprecated. 
Key for obtaining the list of font family names for this style. The list is implemented as an oracle.bali.share.collection.ImmutableArray of String objects, sorted from most preferable to least preferable.


FONT_SIZE_KEY

public static final ParsedPropertyKey FONT_SIZE_KEY
Deprecated. 
This key is passed to Style.parseProperty() to obtain the font size for a Style. The font size value returned from parseProperty() is an Integer object which indicates the font size in point units.


FONT_STYLE_KEY

public static final ParsedPropertyKey FONT_STYLE_KEY
Deprecated. 
This key is passed to Style.parseProperty() to obtain the font style for a Style. The font style value returned from parseProperty() is one of the FONT_STYLE constants defined by the Style interface.


FONT_WEIGHT_KEY

public static final ParsedPropertyKey FONT_WEIGHT_KEY
Deprecated. 
This key is passed to Style.parseProperty() to obtain the font weight for a Style. The font weight value returned from parseProperty() is one of the FONT_WEIGHT constants defined by the Style interface.


TEXT_ANTIALIAS_KEY

public static final ParsedPropertyKey TEXT_ANTIALIAS_KEY
Deprecated. 
This key is passed to Style.parseProperty() to obtain the text antialias style for a Style object. The text antialias value returned from parseProperty() is a Boolean object. A returned value of Boolean.TRUE indicates that text rendered using the Style should be antialiased.


PLAIN_FONT_STYLE

public static final java.lang.Object PLAIN_FONT_STYLE
Deprecated. 
Constant for plain font style.


ITALIC_FONT_STYLE

public static final java.lang.Object ITALIC_FONT_STYLE
Deprecated. 
Constant for italic font style.


PLAIN_FONT_WEIGHT

public static final java.lang.Object PLAIN_FONT_WEIGHT
Deprecated. 
Constant for plain font weight.


BOLD_FONT_WEIGHT

public static final java.lang.Object BOLD_FONT_WEIGHT
Deprecated. 
Constant for bold font weight.

Constructor Detail

CoreStyle

public CoreStyle()
Deprecated. 
Method Detail

getParsedProperty

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

The type of object returned is dependent on the type of property requested. For example, when the FONT_SIZE_KEY is requested, an java.lang.Integer object is returned. When BACKGROUND_KEY or FOREGROUND_KEY is requested a java.awt.Color is returned. Null is returned if no value is defined for the specified property.

Parameters:
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.
Throws:
PropertyParseException


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