EchoPoint
1.0

echopoint.stylesheet
Class CssEchoStyleSheetHandler

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

public class CssEchoStyleSheetHandler
extends AbstractStyleSheetHandler

This CssStyleSheetHandler is reponsible for all the nextapp.echo Components.

At the time this class was written the supplied Echo components did not have any StyleInfo support in them. Therefore it has been provided here in this class. All the Echo StyleInfo objects are then static added to the StyleSheetIntrospector ready for use.

In this way, fully complaint StyleInfo support is added to the basic Echo components.

See Also:
Serialized Form

Nested Class Summary
static class CssEchoStyleSheetHandler.AbstractButtonStyleInfo
          StyleInfo support for nextapp.echo.AbstractButton
static class CssEchoStyleSheetHandler.AbstractPaneStyleInfo
          StyleInfo support for nextapp.echo.AbstractPane
static class CssEchoStyleSheetHandler.ComponentStyleInfo
          StyleInfo support for nextapp.echo.Component
static class CssEchoStyleSheetHandler.ContainerPaneStyleInfo
          StyleInfo support for nextapp.echo.ContainerPane
static class CssEchoStyleSheetHandler.ContentPaneStyleInfo
          StyleInfo support for nextapp.echo.ContentPane
static class CssEchoStyleSheetHandler.GridCellStyleInfo
          StyleInfo support for nextapp.echo.Grid.Cell
static class CssEchoStyleSheetHandler.GridStyleInfo
          StyleInfo support for nextapp.echo.Grid
static class CssEchoStyleSheetHandler.LabelStyleInfo
          StyleInfo support for nextapp.echo.Label
static class CssEchoStyleSheetHandler.ListBoxStyleInfo
          StyleInfo support for nextapp.echo.ListBox
static class CssEchoStyleSheetHandler.PanelStyleInfo
          StyleInfo support for nextapp.echo.Panel
static class CssEchoStyleSheetHandler.SelectFieldStyleInfo
          StyleInfo support for nextapp.echo.SelectField
static class CssEchoStyleSheetHandler.TableStyleInfo
          StyleInfo support for nextapp.echo.Table
static class CssEchoStyleSheetHandler.TextAreaStyleInfo
          StyleInfo support for nextapp.echo.text.TextArea
static class CssEchoStyleSheetHandler.TextComponentStyleInfo
          StyleInfo support for nextapp.echo.text.TextComponent
static class CssEchoStyleSheetHandler.TextFieldStyleInfo
          StyleInfo support for nextapp.echo.text.TextField
static class CssEchoStyleSheetHandler.ToggleButtonStyleInfo
          StyleInfo support for nextapp.echo.ToggleButton
static class CssEchoStyleSheetHandler.WindowStyleInfo
          StyleInfo support for nextapp.echo.Window
 
Field Summary
 
Fields inherited from class echopoint.stylesheet.AbstractStyleSheetHandler
listOfClasses
 
Constructor Summary
CssEchoStyleSheetHandler()
          EchoStyleSheetHandler contructor
 
Method Summary
 StyleInfo getStyleInfo(java.lang.Class cc)
          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

CssEchoStyleSheetHandler

public CssEchoStyleSheetHandler()
EchoStyleSheetHandler contructor

Method Detail

getStyleInfo

public StyleInfo getStyleInfo(java.lang.Class cc)
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:
cc - - 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