EchoPoint
1.0

echopoint.stylesheet
Class CssEchoPointStyleSheetHandler

java.lang.Object
  extended byechopoint.stylesheet.AbstractStyleSheetHandler
      extended byechopoint.stylesheet.CssEchoPointStyleSheetHandler
All Implemented Interfaces:
CssStyleSheetHandler, java.io.Serializable

public class CssEchoPointStyleSheetHandler
extends AbstractStyleSheetHandler

This CssStyleSheetHandler is reponsible for setting the style attributes for all the EchoPoint Components.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class echopoint.stylesheet.AbstractStyleSheetHandler
listOfClasses
 
Constructor Summary
CssEchoPointStyleSheetHandler()
          EchoPointStyleSheetHandler contructor
 
Method Summary
 StyleInfo getStyleInfo(java.lang.Class componentClazz)
          This method can be called to retrieve a StyleInfo object for the specified component class.
 java.lang.Object parseUnknownStyleValue(java.lang.Class componentClazz, java.lang.String attrName, java.lang.String attrValue)
          This method is called to set a parse a style attribute value into its object form.
 java.lang.Object parseUnknownStyleValue(java.lang.String attrValue)
          This method is called to set a parse a style attribute value into its object form.
 boolean setKnownStyleAttribute(java.lang.Class componentClazz, java.lang.Class attrValueClass, nextapp.echo.Style style, java.lang.String attrName, java.lang.String attrValue)
          This method is called to set a specific attribute and value into a style, when the Class of the attribute value is known.
 boolean setUnknownStyleAttribute(java.lang.Class componentClazz, nextapp.echo.Style style, java.lang.String attrName, java.lang.String attrValue)
          This method is called to set a specific attribute and value into a style, when the Class of the attribute value is NOT known.
 
Methods inherited from class echopoint.stylesheet.AbstractStyleSheetHandler
addHandledClass, getFullQualifiedClassName, getHandledClasses
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssEchoPointStyleSheetHandler

public CssEchoPointStyleSheetHandler()
EchoPointStyleSheetHandler contructor

Method Detail

getStyleInfo

public StyleInfo getStyleInfo(java.lang.Class componentClazz)
Description copied from interface: CssStyleSheetHandler
This method can be called to retrieve a StyleInfo object for the specified component class. If the handler does not know about the componentClass it should return null

Parameters:
componentClazz - - the component class
Returns:
- the StyleInfo for that component class or null
See Also:
CssStyleSheetHandler.getStyleInfo(java.lang.Class)

setKnownStyleAttribute

public boolean setKnownStyleAttribute(java.lang.Class componentClazz,
                                      java.lang.Class attrValueClass,
                                      nextapp.echo.Style style,
                                      java.lang.String attrName,
                                      java.lang.String attrValue)
Description copied from interface: CssStyleSheetHandler
This method is called to set a specific attribute and value into a style, when the Class of the attribute value is known.

The CssStyleSheetHandler must perform the Style.setAttribute and return a true indicating this was successful.

See Also:
CssStyleSheetHandler.setKnownStyleAttribute(java.lang.Class, java.lang.Class, nextapp.echo.Style, java.lang.String, java.lang.String)

setUnknownStyleAttribute

public boolean setUnknownStyleAttribute(java.lang.Class componentClazz,
                                        nextapp.echo.Style style,
                                        java.lang.String attrName,
                                        java.lang.String attrValue)
Description copied from interface: CssStyleSheetHandler
This method is called to set a specific attribute and value into a style, when the Class of the attribute value is NOT known.

The CssStyleSheetHandler must perform the Style.setAttribute and return a true indicating this was successful.

See Also:
CssStyleSheetHandler.setUnknownStyleAttribute(java.lang.Class, nextapp.echo.Style, java.lang.String, java.lang.String)

parseUnknownStyleValue

public java.lang.Object parseUnknownStyleValue(java.lang.Class componentClazz,
                                               java.lang.String attrName,
                                               java.lang.String attrValue)
Description copied from interface: CssStyleSheetHandler
This method is called to set a parse a style attribute value into its object form. This is called after the setUnknownStyleAttribute method is called and the style attribute value still cannot be determined.

The CssStyleSheetHandler must perform parse the attrValue string into an object or return null indicating that the value string form is not known, given the current context of componentClazz and attrName.

See Also:
CssStyleSheetHandler.parseUnknownStyleValue(java.lang.Class, java.lang.String, java.lang.String)

parseUnknownStyleValue

public java.lang.Object parseUnknownStyleValue(java.lang.String attrValue)
Description copied from interface: CssStyleSheetHandler
This method is called to set a parse a style attribute value into its object form. This is called after the parseUnknownStyleValue method is called and the style attribute value still cannot be determined.

The CssStyleSheetHandler must perform parse the attrValue string into an object or return null indicating that the value string form is not known.

See Also:
CssStyleSheetHandler.parseUnknownStyleValue(java.lang.String)

EchoPoint
1.0