📄 htmlwriter.html
字号:
Returns true if the element is a synthesized element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLWriter.html#text(javax.swing.text.Element)">text</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem)</CODE><BR> Writes out text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLWriter.html#textAreaContent(javax.swing.text.AttributeSet)">textAreaContent</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr)</CODE><BR> Writes out text that is contained in a TEXTAREA form element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLWriter.html#write()">write</A></B>()</CODE><BR> Iterates over the Element tree and controls the writing out of all the tags and its attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLWriter.html#writeAttributes(javax.swing.text.AttributeSet)">writeAttributes</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr)</CODE><BR> Writes out the attribute set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLWriter.html#writeEmbeddedTags(javax.swing.text.AttributeSet)">writeEmbeddedTags</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr)</CODE><BR> Searches for embedded tags in the AttributeSet and writes them out.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLWriter.html#writeLineSeparator()">writeLineSeparator</A></B>()</CODE><BR> Writes the line separator.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLWriter.html#writeOption(javax.swing.text.html.Option)">writeOption</A></B>(<A HREF="../../../../javax/swing/text/html/Option.html">Option</A> option)</CODE><BR> Writes out the content of the Option form element.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.swing.text.AbstractWriter"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.swing.text.<A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html#decrIndent()">decrIndent</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getCanWrapLines()">getCanWrapLines</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getCurrentLineLength()">getCurrentLineLength</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getDocument()">getDocument</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getElementIterator()">getElementIterator</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getEndOffset()">getEndOffset</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getIndentLevel()">getIndentLevel</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getIndentSpace()">getIndentSpace</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getLineLength()">getLineLength</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getLineSeparator()">getLineSeparator</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getStartOffset()">getStartOffset</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getText(javax.swing.text.Element)">getText</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#getWriter()">getWriter</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#incrIndent()">incrIndent</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#indent()">indent</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#inRange(javax.swing.text.Element)">inRange</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#isLineEmpty()">isLineEmpty</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#setCanWrapLines(boolean)">setCanWrapLines</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#setCurrentLineLength(int)">setCurrentLineLength</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#setIndentSpace(int)">setIndentSpace</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#setLineLength(int)">setLineLength</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#setLineSeparator(java.lang.String)">setLineSeparator</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#write(char)">write</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#write(char[], int, int)">write</A>, <A HREF="../../../../javax/swing/text/AbstractWriter.html#write(java.lang.String)">write</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="HTMLWriter(java.io.Writer, javax.swing.text.html.HTMLDocument)"><!-- --></A><H3>HTMLWriter</H3><PRE>public <B>HTMLWriter</B>(<A HREF="../../../../java/io/Writer.html">Writer</A> w, <A HREF="../../../../javax/swing/text/html/HTMLDocument.html">HTMLDocument</A> doc)</PRE><DL><DD>Creates a new HTMLWriter.<DD><DL><DT><B>Parameters:</B><DD><CODE>w</CODE> - a Writer<DD><CODE>doc</CODE> - an HTMLDocument</DL></DD></DL><HR><A NAME="HTMLWriter(java.io.Writer, javax.swing.text.html.HTMLDocument, int, int)"><!-- --></A><H3>HTMLWriter</H3><PRE>public <B>HTMLWriter</B>(<A HREF="../../../../java/io/Writer.html">Writer</A> w, <A HREF="../../../../javax/swing/text/html/HTMLDocument.html">HTMLDocument</A> doc, int pos, int len)</PRE><DL><DD>Creates a new HTMLWriter.<DD><DL><DT><B>Parameters:</B><DD><CODE>w</CODE> - a Writer<DD><CODE>doc</CODE> - an HTMLDocument<DD><CODE>pos</CODE> - the document location from which to fetch the content<DD><CODE>len</CODE> - the amount to write out</DL></DD></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="write()"><!-- --></A><H3>write</H3><PRE>public void <B>write</B>() throws <A HREF="../../../../java/io/IOException.html">IOException</A>, <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Iterates over the Element tree and controls the writing out of all the tags and its attributes.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html#write()">write</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html">AbstractWriter</A></CODE></DL></DD><DD><DL><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="writeAttributes(javax.swing.text.AttributeSet)"><!-- --></A><H3>writeAttributes</H3><PRE>protected void <B>writeAttributes</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 attribute set. Ignores all attributes with a key of type HTML.Tag, attributes with a key of type StyleConstants, and attributes with a key of type HTML.Attribute.ENDTAG.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/AbstractWriter.html#writeAttributes(javax.swing.text.AttributeSet)">writeAttributes</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>attr</CODE> - an AttributeSet<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="emptyTag(javax.swing.text.Element)"><!-- --></A><H3>emptyTag</H3><PRE>protected void <B>emptyTag</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 all empty elements (all tags that have no corresponding end tag).<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="isBlockTag(javax.swing.text.AttributeSet)"><!-- --></A><H3>isBlockTag</H3><PRE>protected boolean <B>isBlockTag</B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr)</PRE><DL><DD>Determines if the HTML.Tag associated with the element is a block tag.<DD><DL><DT><B>Parameters:</B><DD><CODE>attr</CODE> - an AttributeSet<DT><B>Returns:</B><DD>true if tag is block tag, false otherwise.</DL></DD></DL><HR><A NAME="startTag(javax.swing.text.Element)"><!-- --></A><H3>startTag</H3><PRE>protected void <B>startTag</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem) throws <A HREF="../../../../java/io/IOException.html">IOException</A>, <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Writes out a start tag for the element. Ignores all synthesized elements.<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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -