EchoPoint
1.0

echopoint.ui.template.taghandlers
Class StyleSheetTagHandler

java.lang.Object
  extended byechopoint.ui.template.taghandlers.AbstractTagHandler
      extended byechopoint.ui.template.taghandlers.RangeTagHandler
          extended byechopoint.ui.template.taghandlers.StyleSheetTagHandler
All Implemented Interfaces:
java.io.Serializable, TagHandler

public class StyleSheetTagHandler
extends RangeTagHandler

The StyleSheetTagHandler tag handler looks for <stylesheet> tags and saves the contents so that it can be applied later to template components.

See Also:
Serialized Form

Constructor Summary
StyleSheetTagHandler()
           
 
Method Summary
 void executeTag(ParseContext context, PositionReader input, boolean parseTime)
          Looks for a Component associated with the name attribute, finds its Component Peer and then renders it into the template output.
 SGMLTag parseTag(CompilationContext context, PositionReader input, long startPosition, SGMLTag startTag)
          Parse tag.
 void postParsePreProperties(CompilationContext context)
          This method is called after the tag has been compiled but BEFORE any tag properties have been processed.
 
Methods inherited from class echopoint.ui.template.taghandlers.AbstractTagHandler
getEndPos, getLineNumber, getNameProperty, getProperties, getStartPos, getTagLength, getTagStart, isTagClosedProperly, postParsePostProperties, reportClosingTagError, reportError, reportNoComponentPeerError, setEndPos, setLineNumber, setName, setNameProperty, setProperties, setStartPos, setTagClosedProperly, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StyleSheetTagHandler

public StyleSheetTagHandler()
Method Detail

executeTag

public void executeTag(ParseContext context,
                       PositionReader input,
                       boolean parseTime)
                throws java.lang.Exception
Description copied from class: AbstractTagHandler
Looks for a Component associated with the name attribute, finds its Component Peer and then renders it into the template output.

Specified by:
executeTag in interface TagHandler
Overrides:
executeTag in class RangeTagHandler
Throws:
java.lang.Exception
See Also:
TagHandler.executeTag(echopoint.ui.template.ParseContext, echopoint.ui.template.PositionReader, boolean)

postParsePreProperties

public void postParsePreProperties(CompilationContext context)
Description copied from interface: TagHandler
This method is called after the tag has been compiled but BEFORE any tag properties have been processed. This allows the tag handler to do some things before actual (and potentially repeated) execution.

Specified by:
postParsePreProperties in interface TagHandler
Overrides:
postParsePreProperties in class AbstractTagHandler
See Also:
TagHandler.postParsePreProperties(CompilationContext)

parseTag

public SGMLTag parseTag(CompilationContext context,
                        PositionReader input,
                        long startPosition,
                        SGMLTag startTag)
                 throws java.io.IOException
Description copied from interface: TagHandler
Parse tag. This method is invoked if a tag with a name this class is registered for is found. The parseTag() method is called before any processing is done. Its purpose is to parse the area this tag spans and probably read in parameters used at execution time.

This method returns the last tag belonging to the area handled by this handler

. For simple one-tag Handlers this is simply the tag passed to this method. If the Handler decides not to handle this tag, this method should return null.

Specified by:
parseTag in interface TagHandler
Overrides:
parseTag in class RangeTagHandler
Throws:
java.io.IOException
See Also:
TagHandler.parseTag(echopoint.template.CompilationContext, echopoint.ui.template.PositionReader, long, echopoint.ui.template.SGMLTag)

EchoPoint
1.0