|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object echopoint.ui.template.taghandlers.AbstractTagHandler echopoint.ui.template.taghandlers.TextSubstitutionTagHandler
This tag handler will replace "TEXT" tags with named values
Constructor Summary | |
TextSubstitutionTagHandler()
TextSubstitutionTagHandler constructor. |
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. |
Methods inherited from class echopoint.ui.template.taghandlers.AbstractTagHandler |
getEndPos, getLineNumber, getNameProperty, getProperties, getStartPos, getTagLength, getTagStart, isTagClosedProperly, postParsePostProperties, postParsePreProperties, 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 |
public TextSubstitutionTagHandler()
Method Detail |
public void executeTag(ParseContext context, PositionReader input, boolean parseTime) throws java.lang.Exception
AbstractTagHandler
executeTag
in interface TagHandler
executeTag
in class AbstractTagHandler
java.lang.Exception
TagHandler.executeTag(echopoint.ui.template.ParseContext, echopoint.ui.template.PositionReader, boolean)
public SGMLTag parseTag(CompilationContext context, PositionReader input, long startPosition, SGMLTag startTag) throws java.io.IOException
TagHandler
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
.
context
- The CompilationContext involvedinput
- The PositionReader, located after the Name token
of the TagstartPosition
- The Position parsing of this token beganstartTag
- the SGMLTag found in the file.
java.io.IOException
TagHandler.parseTag(echopoint.template.CompilationContext, echopoint.ui.template.PositionReader, long, echopoint.ui.template.SGMLTag)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |