EchoPoint
1.0

echopoint.template.propertymgr
Class ComponentPropertyManager

java.lang.Object
  extended byechopoint.template.propertymgr.ComponentPropertyManager
All Implemented Interfaces:
PropertyManager, java.io.Serializable
Direct Known Subclasses:
AbstractButtonPropertyManager, LabelPropertyManager, ListPropertyManager, TableGridPropertyManager, TextComponentPropertyManager

public class ComponentPropertyManager
extends java.lang.Object
implements PropertyManager, java.io.Serializable

A property manager for Components in general.

It handles the following properties :

Note that attribute names are NOT case sensitive in the template source.

See Also:
Serialized Form

Constructor Summary
ComponentPropertyManager()
           
 
Method Summary
 java.lang.Class[] getSupportedClasses()
          called to get a list of supported classes
protected  nextapp.echo.Color parseColor(java.lang.Object value)
          Decodes a color string according to the same rules as the EchoPoint CSS support.
protected  nextapp.echo.Font parseFont(java.lang.Object value)
          Decodes a font string according to the same rules as the EchoPoint CSS support.
protected  int parseInt(java.lang.Object value)
          Parses the value until it finds a non digit or non whitespace then returns the integer converted.
 void setComponentProperties(nextapp.echo.Component comp, java.lang.String[] names, java.lang.Object[] values)
          Called to set the various properties of a Component.
 void setProperty(nextapp.echo.Component comp, java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentPropertyManager

public ComponentPropertyManager()
Method Detail

getSupportedClasses

public java.lang.Class[] getSupportedClasses()
Description copied from interface: PropertyManager
called to get a list of supported classes

Specified by:
getSupportedClasses in interface PropertyManager

parseColor

protected nextapp.echo.Color parseColor(java.lang.Object value)
Decodes a color string according to the same rules as the EchoPoint CSS support.

See Also:
CssStyleSheet

parseFont

protected nextapp.echo.Font parseFont(java.lang.Object value)
Decodes a font string according to the same rules as the EchoPoint CSS support.

See Also:
CssStyleSheet

parseInt

protected int parseInt(java.lang.Object value)
Parses the value until it finds a non digit or non whitespace then returns the integer converted. This allows a value to have a form a like x="12px" and the number part will be returned.


setProperty

public void setProperty(nextapp.echo.Component comp,
                        java.lang.String name,
                        java.lang.Object value)

setComponentProperties

public void setComponentProperties(nextapp.echo.Component comp,
                                   java.lang.String[] names,
                                   java.lang.Object[] values)
Description copied from interface: PropertyManager
Called to set the various properties of a Component. Each implementor must decide if the properties apply to them, and discard any that do not.

Specified by:
setComponentProperties in interface PropertyManager
See Also:
PropertyManager.setComponentProperties(nextapp.echo.Component, java.lang.String[], java.lang.Object[])

EchoPoint
1.0