echopointng.stylesheet.propertypeer
Class LocalePeer

java.lang.Object
  extended by echopointng.stylesheet.propertypeer.AbstractCssPropertyPeer
      extended by echopointng.stylesheet.propertypeer.LocalePeer
All Implemented Interfaces:
CssPropertyPeer

public class LocalePeer
extends AbstractCssPropertyPeer

LocalePeer maps to Locale values


Constructor Summary
LocalePeer()
           
 
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.
 
Methods inherited from class echopointng.stylesheet.propertypeer.AbstractCssPropertyPeer
getConstantFromMap, getConstantFromMap, getConstantValue, getInteger, getIntFromMap, getJavaObject, getPeer, getString, 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

LocalePeer

public LocalePeer()
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

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