📄 htmlwriter.html
字号:
<A NAME="textAreaContent(javax.swing.text.AttributeSet)"><!-- --></A><H3>textAreaContent</H3><PRE>protected void <B>textAreaContent</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr) throws <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A>, <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes out text that is contained in a TEXTAREA form element.<DD><DL><DT><B>Parameters:</B><DD><CODE>attr</CODE> - an AttributeSet<DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error<DD><CODE><A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></CODE> - if pos represents an invalid location within the document.</DL></DD></DL><HR><A NAME="text(javax.swing.text.Element)"><!-- --></A><H3>text</H3><PRE>protected void <B>text</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem) throws <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A>, <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes out text. If a range is specified when the constructor is invoked, then only the appropriate range of text is written out.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html#text(javax.swing.text.Element)">text</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>elem</CODE> - an Element<DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error<DD><CODE><A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></CODE> - if pos represents an invalid location within the document.</DL></DD></DL><HR><A NAME="selectContent(javax.swing.text.AttributeSet)"><!-- --></A><H3>selectContent</H3><PRE>protected void <B>selectContent</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr) throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes out the content of the SELECT form element.<DD><DL><DT><B>Parameters:</B><DD><CODE>attr</CODE> - the AttributeSet associated with the form element<DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error</DL></DD></DL><HR><A NAME="writeOption(javax.swing.text.html.Option)"><!-- --></A><H3>writeOption</H3><PRE>protected void <B>writeOption</B>(<A HREF="../../../../javax/swing/text/html/Option.html">Option</A> option) throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes out the content of the Option form element.<DD><DL><DT><B>Parameters:</B><DD><CODE>option</CODE> - an Option<DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error</DL></DD></DL><HR><A NAME="endTag(javax.swing.text.Element)"><!-- --></A><H3>endTag</H3><PRE>protected void <B>endTag</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem) throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes out an end tag for the element.<DD><DL><DT><B>Parameters:</B><DD><CODE>elem</CODE> - an Element<DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error</DL></DD></DL><HR><A NAME="comment(javax.swing.text.Element)"><!-- --></A><H3>comment</H3><PRE>protected void <B>comment</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem) throws <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A>, <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes out comments.<DD><DL><DT><B>Parameters:</B><DD><CODE>elem</CODE> - an Element<DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error<DD><CODE><A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></CODE> - if pos represents an invalid location within the document.</DL></DD></DL><HR><A NAME="synthesizedElement(javax.swing.text.Element)"><!-- --></A><H3>synthesizedElement</H3><PRE>protected boolean <B>synthesizedElement</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem)</PRE><DL><DD>Returns true if the element is a synthesized element. Currently we are only testing for the p-implied tag.</DL><HR><A NAME="matchNameAttribute(javax.swing.text.AttributeSet, javax.swing.text.html.HTML.Tag)"><!-- --></A><H3>matchNameAttribute</H3><PRE>protected boolean <B>matchNameAttribute</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr, <A HREF="../../../../javax/swing/text/html/HTML.Tag.html">HTML.Tag</A> tag)</PRE><DL><DD>Returns true if the StyleConstants.NameAttribute is equal to the tag that is passed in as a parameter.</DL><HR><A NAME="writeEmbeddedTags(javax.swing.text.AttributeSet)"><!-- --></A><H3>writeEmbeddedTags</H3><PRE>protected void <B>writeEmbeddedTags</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr) throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Searches for embedded tags in the AttributeSet and writes them out. It also stores these tags in a vector so that when appropriate the corresponding end tags can be written out.<DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error</DL></DD></DL><HR><A NAME="closeOutUnwantedEmbeddedTags(javax.swing.text.AttributeSet)"><!-- --></A><H3>closeOutUnwantedEmbeddedTags</H3><PRE>protected void <B>closeOutUnwantedEmbeddedTags</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr) throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Searches the attribute set and for each tag that is stored in the tag vector. If the tag isnt found, then the tag is removed from the vector and a corresponding end tag is written out.<DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/io/IOException.html">IOException</A></CODE> - on any I/O error</DL></DD></DL><HR><A NAME="writeLineSeparator()"><!-- --></A><H3>writeLineSeparator</H3><PRE>protected void <B>writeLineSeparator</B>() throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Writes the line separator. This is overriden to make sure we don't replace the newline content in case it is outside normal ascii.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html#writeLineSeparator()">writeLineSeparator</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></CODE></DL></DD></DL><HR><A NAME="output(char[], int, int)"><!-- --></A><H3>output</H3><PRE>protected void <B>output</B>(char[] chars, int start, int length) throws <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>This method is overriden to map any character entities, such as < to &lt;. <code>super.output</code> will be invoked to write the content.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html#output(char[], int, int)">output</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></CODE></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=2 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="class-use/HTMLWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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-files/index-1.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>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../javax/swing/text/html/HTMLFrameHyperlinkEvent.html"><B>PREV CLASS</B></A> <A HREF="../../../../javax/swing/text/html/InlineView.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="HTMLWriter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#fields_inherited_from_class_javax.swing.text.AbstractWriter">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: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -