org.karora.cooee.ng.stylesheet.propertypeer
Class FontPeer

java.lang.Object
  extended by org.karora.cooee.ng.stylesheet.propertypeer.AbstractCssPropertyPeer
      extended by org.karora.cooee.ng.stylesheet.propertypeer.FontPeer
All Implemented Interfaces:
CssPropertyPeer

public class FontPeer
extends AbstractCssPropertyPeer

FontPeer is used to create Font objects


Constructor Summary
FontPeer()
           
 
Method Summary
protected  boolean canConvert(CssObjectIntrospector ci, java.lang.String propertyValue)
          Is the propertyValue valid in its current form?
protected  java.lang.Class getConversionClass()
          What is an assignable conversion class for this peer
protected  java.lang.Object getObject(CssObjectIntrospector ci, java.lang.String propertyValue)
          Returns an instance of the converted property value.
protected  java.lang.String getString(CssObjectIntrospector ci, java.lang.Object object)
          Get a string representation of the object.
 
Methods inherited from class org.karora.cooee.ng.stylesheet.propertypeer.AbstractCssPropertyPeer
getConstantFromMap, getConstantFromMap, getConstantValue, getInteger, getIntFromMap, getJavaObject, getPeer, getStyleString, isAssignableFrom, isExtent, isInteger, isNullString, makeExtent, tokenize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontPeer

public FontPeer()
Method Detail

getConversionClass

protected java.lang.Class getConversionClass()
Description copied from class: AbstractCssPropertyPeer
What is an assignable conversion class for this peer

Specified by:
getConversionClass in class AbstractCssPropertyPeer
Returns:
- a conversion class
See Also:
AbstractCssPropertyPeer.getConversionClass()

canConvert

protected boolean canConvert(CssObjectIntrospector ci,
                             java.lang.String propertyValue)
Description copied from class: AbstractCssPropertyPeer
Is the propertyValue valid in its current form?

Specified by:
canConvert in class AbstractCssPropertyPeer
Parameters:
ci - - The component Intropector
propertyValue - - the value to inspect
Returns:
true if its a valid, convertable value
See Also:
AbstractCssPropertyPeer.canConvert(CssObjectIntrospector, java.lang.String)

getObject

protected java.lang.Object getObject(CssObjectIntrospector ci,
                                     java.lang.String propertyValue)
Description copied from class: AbstractCssPropertyPeer
Returns an instance of the converted property value. canConvert() will have been called before this is called and hence no sanity checks need be performed again.

Specified by:
getObject in class AbstractCssPropertyPeer
Parameters:
ci - - a object intropector for you to use
propertyValue - - the value to convert into an object
Returns:
the converted value
See Also:
AbstractCssPropertyPeer.getObject(CssObjectIntrospector, java.lang.String)

getString

protected java.lang.String getString(CssObjectIntrospector ci,
                                     java.lang.Object object)
Description copied from class: AbstractCssPropertyPeer
Get a string representation of the object. This default implementation returns String.valueOf(object) or "null";

Overrides:
getString in class AbstractCssPropertyPeer
Parameters:
ci - - the CssObjectIntrospector available
object - - the object to get a string representation of.
Returns:
- the string representation


Copyright © 2009. All Rights Reserved.