|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScriptReporter
A ScriptReporter
acts as a container for JavaScript generated by children of
the tag. Usually a ScriptReporter
will gather up all of the JavaScript
generated by children into a single <script> element output into the HTML. A script container
will implement a map beteween the TagId and the real name
or id
attribute
written into the HTML.
Method Summary | |
---|---|
void |
addLegacyTagIdMappings(String tagId,
String tagName)
Adds a tagID and tagName to the id to name map. |
void |
addScriptFunction(ScriptPlacement placement,
String script)
This method will add Script as a function. |
void |
addTagIdMappings(String tagId,
String realId,
String realName)
|
void |
writeScript(AbstractRenderAppender sb)
This method will output all of the Script associated with the script reporter. |
Method Detail |
---|
void addScriptFunction(ScriptPlacement placement, String script)
placement
- script
- the text of the function. This value must not be null.void addLegacyTagIdMappings(String tagId, String tagName)
tagId
- - the id of a child tag.tagName
- - the name of a child tag.void addTagIdMappings(String tagId, String realId, String realName)
tagId
- realId
- realName
- void writeScript(AbstractRenderAppender sb)
sb
- The script is written into the provided StringBuilder. This value must not be null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |