|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.template.LabelTagHandler
public class LabelTagHandler
A TemplateTagHandler
| Constructor Summary | |
|---|---|
LabelTagHandler()
|
|
| Method Summary | |
|---|---|
void |
executeTag(ParseContext context,
InputStream input)
actually perform the action associated with this tag. |
String |
getContent()
|
String |
getFor()
|
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. |
SGMLTag |
parseTag(ParseContext context,
PositionReader input,
long startPosition,
SGMLTag startTag)
Parse tag. |
int |
readContent(Reader r,
StringBuilder content)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LabelTagHandler()
| Method Detail |
|---|
public SGMLTag parseTag(ParseContext context,
PositionReader input,
long startPosition,
SGMLTag startTag)
throws IOException
SpecialTagHandler
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 server side included
servlets, this would be </SERVLET>).
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 parsing contextinput - the PositionReader, located after the name token of the tagstartPosition - the position where parsing of this token beganstartTag - the SGMLTag found in the file.
IOException
public int readContent(Reader r,
StringBuilder content)
throws IOException
IOExceptionpublic String getContent()
public String getFor()
public void executeTag(ParseContext context,
InputStream input)
throws Exception
executeTag in interface SpecialTagHandlerException - anything can happen .. and throw an Exception
which is caught in PageParserpublic long getTagStart()
getTagStart in interface SpecialTagHandlerpublic long getTagLength()
getTagLength in interface SpecialTagHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||