📄 tag.html
字号:
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="tag"><!-- --></A><H3>
tag</H3>
<PRE>
protected java.lang.String <B>tag</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="result"><!-- --></A><H3>
result</H3>
<PRE>
protected java.lang.StringBuffer <B>result</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="Tag(java.lang.String)"><!-- --></A><H3>
Tag</H3>
<PRE>
public <B>Tag</B>(java.lang.String tag)</PRE>
<DL>
<DD>Creates a tag instance with the given name.
<P>
<DT><B>Parameters:</B><DD><CODE>tag</CODE> - The name that will be enclosed by < and > symbol.</DL>
<HR>
<A NAME="Tag(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
Tag</H3>
<PRE>
public <B>Tag</B>(java.lang.String tag, java.lang.String startLine, java.lang.String endLine)</PRE>
<DL>
<DD>Creates a tag instance with the given name. The final string will have the startLine and endLine strings inserted.
<P>
<DT><B>Parameters:</B><DD><CODE>tag</CODE> - The name that will be enclosed by < and > symbol.<DD><CODE>startLine</CODE> - The string that will precede the tag and text.<DD><CODE>endLine</CODE> - The string that will follow the tag and text.</DL>
<HR>
<A NAME="Tag(org.amic.util.html.Tag, java.lang.String)"><!-- --></A><H3>
Tag</H3>
<PRE>
protected <B>Tag</B>(<A HREF="../../../../org/amic/util/html/Tag.html">Tag</A> parent, java.lang.String tag)</PRE>
<DL>
</DL>
<HR>
<A NAME="Tag(org.amic.util.html.Tag, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
Tag</H3>
<PRE>
protected <B>Tag</B>(<A HREF="../../../../org/amic/util/html/Tag.html">Tag</A> parent, java.lang.String tag, java.lang.String startLine, java.lang.String endLine)</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="addAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3>
addAttribute</H3>
<PRE>
public <A HREF="../../../../org/amic/util/html/Tag.html">Tag</A> <B>addAttribute</B>(java.lang.String name, java.lang.String value)</PRE>
<DL>
<DD>Adds an atribute in the HTML manner to the tag. This action should be requested before any text is added to the tag, otherwise the tag will be enclosed and no attribute added. <pre> out.println( new Tag("A") .addAttribute("href", "http://www.amicworld.com") .text("Welcome") ); </pre> This example will produce the output: <pre> <a href="http://www.amicworld.com">Welcome</a> </pre>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the atribute.<DD><CODE>value</CODE> - The value of the attribute.</DL>
</DD>
</DL>
<HR>
<A NAME="addStyle(java.lang.String, java.lang.String)"><!-- --></A><H3>
addStyle</H3>
<PRE>
public <A HREF="../../../../org/amic/util/html/Tag.html">Tag</A> <B>addStyle</B>(java.lang.String name, java.lang.String value)</PRE>
<DL>
<DD>Adds an style in the HTML manner to the tag. This action should be requested before any text is added to the tag, otherwise the tag will be enclosed and no style added. <pre> out.println( new Tag("div") .addStyle("color", "red") .addStyle("background", "black") .text("Welcome") ); </pre> This example will produce the output: <pre> <div style="color:red;background:black">Welcome</div> </pre>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the style.<DD><CODE>value</CODE> - The value of the style.</DL>
</DD>
</DL>
<HR>
<A NAME="addText(java.lang.String)"><!-- --></A><H3>
addText</H3>
<PRE>
public <A HREF="../../../../org/amic/util/html/Tag.html">Tag</A> <B>addText</B>(java.lang.String value)</PRE>
<DL>
<DD>Adds text that will be enclosed by the tag. This method don't work with the startLine and endLine parameters, the text will be appended as is.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The text that will be appended.</DL>
</DD>
</DL>
<HR>
<A NAME="addText(java.lang.StringBuffer)"><!-- --></A><H3>
addText</H3>
<PRE>
public <A HREF="../../../../org/amic/util/html/Tag.html">Tag</A> <B>addText</B>(java.lang.StringBuffer value)</PRE>
<DL>
<DD>Adds text that will be enclosed by the tag. This method don't work with the startLine and endLine parameters, the text will be appended as is.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The text that will be appended.</DL>
</DD>
</DL>
<HR>
<A NAME="text(java.lang.String)"><!-- --></A><H3>
text</H3>
<PRE>
public java.lang.StringBuffer <B>text</B>(java.lang.String value)</PRE>
<DL>
<DD>Sets the text enclosed by the tag and closes it by calling the end() method.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The text that will be set.</DL>
</DD>
</DL>
<HR>
<A NAME="end()"><!-- --></A><H3>
end</H3>
<PRE>
public java.lang.StringBuffer <B>end</B>()</PRE>
<DL>
<DD>Closes the tag and any associated children tags. You can call this method any time, but the code that closes the tag will execute once, the first time is called.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The resulting string.</DL>
</DD>
</DL>
<HR>
<A NAME="addChildTag(java.lang.String)"><!-- --></A><H3>
addChildTag</H3>
<PRE>
public <A HREF="../../../../org/amic/util/html/Tag.html">Tag</A> <B>addChildTag</B>(java.lang.String tag)</PRE>
<DL>
<DD>Adds a tag that will be treated as a child, any attempt to close the parent tag will close all associated children. There is no limitation on the level of hierarchy applied, any child would also have children, at any level.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tag</CODE> - The childs name that will be enclosed by < and > symbol.<DT><B>Returns:</B><DD>The child tag.</DL>
</DD>
</DL>
<HR>
<A NAME="addChildTag(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
addChildTag</H3>
<PRE>
public <A HREF="../../../../org/amic/util/html/Tag.html">Tag</A> <B>addChildTag</B>(java.lang.String tag, java.lang.String startLine, java.lang.String endLine)</PRE>
<DL>
<DD>Adds a tag that will be treated as a child, any attempt to close the parent tag will close all associated children. There is no limitation on the level of hierarchy applied, any child would also have children, at any level.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tag</CODE> - The childs name that will be enclosed by < and > symbol.<DD><CODE>startLine</CODE> - The string that will precede the tag and text.<DD><CODE>endLine</CODE> - The string that will follow the tag and text.<DT><B>Returns:</B><DD>The child tag.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>Amic utility<br> classes</b></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../org/amic/util/html/Table.Row.html"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="Tag.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<font size=-1>Contact me at <a href='mailto:lluis@turro.org'>Lluis Turro</a></font>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -