EchoPoint
1.0

echopoint.stylesheet
Class AbstractStyleSheetHandler

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

public abstract class AbstractStyleSheetHandler
extends java.lang.Object
implements CssStyleSheetHandler, java.io.Serializable

This abtract CssStyleSheetHandler can be used as the basis other StyleSheetHandler implementations.

See Also:
Serialized Form

Field Summary
protected  java.util.ArrayList listOfClasses
          The array of handled classes is kept here
 
Constructor Summary
AbstractStyleSheetHandler()
           
 
Method Summary
protected  void addHandledClass(java.lang.Class clazz)
          Adds a class to an internal list so it can be indentified as being handled by this StyleSheetHandler
 java.lang.String getFullQualifiedClassName(java.lang.String partialClassName)
          This method is called to ask the StyleSheetHandler to make a name into a fully qualified Java class name.
 java.lang.Class[] getHandledClasses()
          Called to return an array of the classes that a CssStyleSheetHandler manages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface echopoint.stylesheet.CssStyleSheetHandler
getStyleInfo, parseUnknownStyleValue, parseUnknownStyleValue, setKnownStyleAttribute, setUnknownStyleAttribute
 

Field Detail

listOfClasses

protected java.util.ArrayList listOfClasses
The array of handled classes is kept here

Constructor Detail

AbstractStyleSheetHandler

public AbstractStyleSheetHandler()
Method Detail

addHandledClass

protected void addHandledClass(java.lang.Class clazz)
Adds a class to an internal list so it can be indentified as being handled by this StyleSheetHandler


getHandledClasses

public java.lang.Class[] getHandledClasses()
Description copied from interface: CssStyleSheetHandler
Called to return an array of the classes that a CssStyleSheetHandler manages.

Specified by:
getHandledClasses in interface CssStyleSheetHandler
Returns:
a Class array
See Also:
CssStyleSheetHandler.getHandledClasses()

getFullQualifiedClassName

public java.lang.String getFullQualifiedClassName(java.lang.String partialClassName)
This method is called to ask the StyleSheetHandler to make a name into a fully qualified Java class name.

This implementation runs through the list of handled classes and compares their name to the partialClassName specified. If a match is made, the fully qualified class name is returned.

There is no usually need to overrride this method.

Specified by:
getFullQualifiedClassName in interface CssStyleSheetHandler

EchoPoint
1.0