|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopoint.ui.template.taghandlers.AbstractTagHandler
public abstract class AbstractTagHandler
A TemplateTagHandler that acts a base for more specialised
tag handlers related to the the HtmlTemplatePanel
| Constructor Summary | |
|---|---|
AbstractTagHandler()
|
|
| 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. |
long |
getEndPos()
Returns the end position of the tag in the markup source |
long |
getLineNumber()
Returns the line number at which this tag handler was invoked. |
java.lang.String |
getNameProperty()
Returns the name of the tag in question |
java.util.Map |
getProperties()
Called to get a Map of tag attribute properties and their values. |
long |
getStartPos()
Returns the start position of the tag in the markup source |
long |
getTagLength()
Get the length of the area in the sourcefile. |
long |
getTagStart()
Get start position of the area in the sourcefile this handler processes. |
boolean |
isTagClosedProperly()
Returns true if the tag is closed properly |
void |
postParsePostProperties(CompilationContext context)
This method is called after the tag has been compiled and AFTER any tag properties have been processed. |
void |
postParsePreProperties(CompilationContext context)
This method is called after the tag has been compiled but BEFORE any tag properties have been processed. |
protected void |
reportClosingTagError(ParseContext context)
Outputs a consistent error message at execution time when a closing tag is not found during parse time |
protected void |
reportError(ParseContext context,
java.lang.String message,
java.lang.Exception exception)
|
protected void |
reportNoComponentPeerError(ParseContext context)
Outputs a consistent error message at execution time when a Component Peer is not found . |
void |
setEndPos(long l)
Sets the end position of the tag in the markup source |
void |
setLineNumber(long lineNumber)
Sets the line number the tag was encountered at |
protected void |
setName(java.lang.String name)
Called as a last resort for setting the name of a tagHandler, rather than from the NAME tag attribute. |
java.lang.String |
setNameProperty(SGMLTag tag)
Sets the Name property of the TagHandler based on first the "NAME" tag attribute or the "ID" tag attribute. |
void |
setProperties(java.util.Map map)
Sets a Map of properties into the handler |
void |
setStartPos(long l)
Sets the start position of the tag in the markup source |
void |
setTagClosedProperly(boolean tagClosedProperly)
Sets whether the tag was closed properly |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface echopoint.ui.template.taghandlers.TagHandler |
|---|
parseTag |
| Constructor Detail |
|---|
public AbstractTagHandler()
| Method Detail |
|---|
public void executeTag(ParseContext context,
PositionReader input,
boolean parseTime)
throws java.lang.Exception
executeTag in interface TagHandlerjava.lang.Exception - anything can happen .. and throw an Exception
which is caught in PageParserprotected void reportClosingTagError(ParseContext context)
context - - the parse contextprotected void reportNoComponentPeerError(ParseContext context)
context - - the parse context
protected void reportError(ParseContext context,
java.lang.String message,
java.lang.Exception exception)
public void postParsePreProperties(CompilationContext context)
TagHandler
postParsePreProperties in interface TagHandlercontext - The CompilationContext involvedTagHandler.postParsePreProperties(echopoint.template.CompilationContext)public void postParsePostProperties(CompilationContext context)
TagHandler
postParsePostProperties in interface TagHandlercontext - The CompilationContext involvedTagHandler.postParsePostProperties(echopoint.template.CompilationContext)public java.lang.String getNameProperty()
getNameProperty in interface TagHandlerpublic long getTagLength()
getTagLength in interface TagHandlerpublic long getTagStart()
getTagStart in interface TagHandlerpublic java.util.Map getProperties()
TagHandler
getProperties in interface TagHandlerTagHandler.getProperties()public void setProperties(java.util.Map map)
map - - the map of property names and valuespublic long getEndPos()
public long getStartPos()
public void setEndPos(long l)
l - long - the end position of the tag in the markup sourcepublic java.lang.String setNameProperty(SGMLTag tag)
tag - - the tag containing the name or id tag attribute
protected void setName(java.lang.String name)
public void setStartPos(long l)
l - long - the start position of the tag in the markup sourcepublic boolean isTagClosedProperly()
public void setTagClosedProperly(boolean tagClosedProperly)
tagClosedProperly - whether the tagb was closed proerlypublic long getLineNumber()
TagHandler
getLineNumber in interface TagHandlerTagHandler.getLineNumber()public void setLineNumber(long lineNumber)
lineNumber - the line number the tag was encountered atpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||