| java.lang.Object com.salmonllc.jsp.TagWriter
TagWriter | public class TagWriter (Code) | | This class is used in custom tag component's generateHtml method. For complex tags, the generateHtml method in the correspnding component is responsible for wrapping the output in the appropriate DreamWeaver html MMBeginLock and MMEndLock tags when the JSP is being rendered in Dreamweaver.
This class facilitates this by providing methods that will wrap the tags (dreamWeaverConv). It also provides state information that indicates whether or not DreamWeaver tags or regular JSP tags should be rendered at a given time.
A JspComponent need only call the print method in this object to write out its generated Html and this object will do the rest.
|
Method Summary | |
public static String | dreamWeaverConv(String prefix, String tagName, String orig, String conv) This method will wrap an Html Tag in a Dreamweaver tag. | public boolean | getDreamWeaverConv() Returns true if the writer is doing Dreamweaver conversion and false if it is regular Html. | public void | print(String text) | public void | print(String text, int type) This method will insert content into the page based on the type of content and current mode
Parameters: text - java.lang.String The text to output Parameters: type - the type of content to render. | public void | println() | public void | println(String text) | public void | setWriter(JspWriter w) | public static void | urlEncode(String s, StringBuffer b) This method will remove illegal characters for strings and append the results to a string buffer. |
TYPE_BEGIN_TAG | final public static int TYPE_BEGIN_TAG(Code) | | |
TYPE_CONTENT | final public static int TYPE_CONTENT(Code) | | |
TYPE_END_TAG | final public static int TYPE_END_TAG(Code) | | |
TYPE_INSERTED_CONTENT | final public static int TYPE_INSERTED_CONTENT(Code) | | |
_dreamWeaverConv | boolean _dreamWeaverConv(Code) | | |
TagWriter | public TagWriter()(Code) | | |
dreamWeaverConv | public static String dreamWeaverConv(String prefix, String tagName, String orig, String conv)(Code) | | This method will wrap an Html Tag in a Dreamweaver tag.
Parameters: prefix - The tag's prefix Parameters: name - The tag's name Parameters: orig - The original jsp that described the custom tag Parameters: conv - The converted Html to render the content |
getDreamWeaverConv | public boolean getDreamWeaverConv()(Code) | | Returns true if the writer is doing Dreamweaver conversion and false if it is regular Html.
|
print | public void print(String text) throws IOException(Code) | | This method will print the content of the text exactly as passed
Parameters: text - java.lang.String The text to output |
print | public void print(String text, int type) throws IOException(Code) | | This method will insert content into the page based on the type of content and current mode
Parameters: text - java.lang.String The text to output Parameters: type - the type of content to render. Valid Values are TYPE_BEGIN_TAG: This content is replacing an opening tag TYPE_END_TAG: This content is replacing a closing tag TYPE_CONTENT: This content is replaing the content in the tag TYPE_INSERTED_CONTENT: This content is entirely new and is not replacing any specific part of the JSP Tag that spawned the request.replaing the content in the tag
|
println | public void println() throws IOException(Code) | | This method will print a Blank Line
|
println | public void println(String text) throws IOException(Code) | | This method will print the content of the text exactly as passed
Parameters: text - java.lang.String The text to output |
setWriter | public void setWriter(JspWriter w)(Code) | | Sets the JSP Writer that the tag writer will write it's output too
|
urlEncode | public static void urlEncode(String s, StringBuffer b)(Code) | | This method will remove illegal characters for strings and append the results to a string buffer.
|
|
|