⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 htmldocument.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:42:31 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class  HTMLDocument</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/HTMLDocument.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../javax/swing/text/html/HTML.UnknownTag.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../javax/swing/text/html/HTMLDocument.BlockElement.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>  &nbsp;&nbsp;<A HREF="HTMLDocument.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.swing.text.html</FONT><BR>Class  HTMLDocument</H2><PRE><A HREF="../../../../java/lang/Object.html">java.lang.Object</A>  |  +--<A HREF="../../../../javax/swing/text/AbstractDocument.html">javax.swing.text.AbstractDocument</A>        |        +--<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html">javax.swing.text.DefaultStyledDocument</A>              |              +--<B>javax.swing.text.html.HTMLDocument</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../javax/swing/text/Document.html">Document</A>, <A HREF="../../../../java/io/Serializable.html">Serializable</A>, <A HREF="../../../../javax/swing/text/StyledDocument.html">StyledDocument</A></DD></DL><HR><DL><DT>public class <B>HTMLDocument</B><DT>extends <A HREF="../../../../javax/swing/text/DefaultStyledDocument.html">DefaultStyledDocument</A></DL><P>A document that models HTML.  The purpose of this model is to support both browsing and editing.  As a result, the structure described by an HTML document is not  exactly replicated by default.  The element structure that  is modeled by default, is built by the class <code>HTMLDocument.HTMLReader</code>, which implements the <code>HTMLEditorKit.ParserCallback</code> protocol that the parser expects.  To change the structure one can subclass HTMLReader, and reimplement the method <code>getReader</code> to return the new reader implementation.  The documentation for  HTMLReader should be consulted for the details of the default structure created.  The intent is that  the document be non-lossy (although reproducing the HTML format may result in a different format). <p> The document models only HTML, and makes no attempt to store view attributes in it.  The elements are identified by the <code>StyleContext.NameAttribute</code> attribute, which should always have a value of type <code>HTML.Tag</code> that identifies the kind of element.  Some of the elements (such as comments) are synthesized.  The HTMLFactory uses this attribute to determine what kind of view to build. <p> This document supports incremental loading.  The <code>TokenThreshold</code> property controls how much of the parse is buffered before trying to update the element structure of the document.  This property is set by the EditorKit so that subclasses can disable it. <p> The <code>Base</code> property determines the URL against which relative URLs are resolved. By default, this will be the  <code>Document.StreamDescriptionProperty</code> if the value of the property is a URL.  If a &lt;BASE&gt; tag is encountered, the base will become the URL specified by that tag.  Because the base URL is a property, it can of course be set directly. <p> The default content storage mechanism for this document is a gap buffer (GapContent).  Alternatives can be supplied by using the constructor that takes a Content implementation.<P><DL><DT><B>See Also: </B><DD><A HREF="../../../../serialized-form.html#javax.swing.text.html.HTMLDocument">Serialized Form</A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><A NAME="inner_class_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Inner Class Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.BlockElement.html">HTMLDocument.BlockElement</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An element that represents a structural <em>block</em> of HTML.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.HTMLReader.html">HTMLDocument.HTMLReader</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An HTML reader to load an HTML document with an HTML element structure.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.Iterator.html">HTMLDocument.Iterator</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An iterator to iterate over a particular type of tag.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.RunElement.html">HTMLDocument.RunElement</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An element that represents a chunk of text that has a set of HTML character level attributes assigned to it.</TD></TR></TABLE>&nbsp;<A NAME="inner_classes_inherited_from_class_javax.swing.text.DefaultStyledDocument"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Inner classes inherited from class javax.swing.text.<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html">DefaultStyledDocument</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../javax/swing/text/DefaultStyledDocument.AttributeUndoableEdit.html">DefaultStyledDocument.AttributeUndoableEdit</A>, <A HREF="../../../../javax/swing/text/DefaultStyledDocument.ElementBuffer.html">DefaultStyledDocument.ElementBuffer</A>, <A HREF="../../../../javax/swing/text/DefaultStyledDocument.ElementSpec.html">DefaultStyledDocument.ElementSpec</A>, <A HREF="../../../../javax/swing/text/DefaultStyledDocument.SectionElement.html">DefaultStyledDocument.SectionElement</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="inner_classes_inherited_from_class_javax.swing.text.AbstractDocument"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Inner classes inherited from class javax.swing.text.<A HREF="../../../../javax/swing/text/AbstractDocument.html">AbstractDocument</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../javax/swing/text/AbstractDocument.AbstractElement.html">AbstractDocument.AbstractElement</A>, <A HREF="../../../../javax/swing/text/AbstractDocument.AttributeContext.html">AbstractDocument.AttributeContext</A>, <A HREF="../../../../javax/swing/text/AbstractDocument.BranchElement.html">AbstractDocument.BranchElement</A>, <A HREF="../../../../javax/swing/text/AbstractDocument.Content.html">AbstractDocument.Content</A>, <A HREF="../../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html">AbstractDocument.DefaultDocumentEvent</A>, <A HREF="../../../../javax/swing/text/AbstractDocument.ElementEdit.html">AbstractDocument.ElementEdit</A>, <A HREF="../../../../javax/swing/text/AbstractDocument.LeafElement.html">AbstractDocument.LeafElement</A></CODE></TD></TR></TABLE>&nbsp;<!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#AdditionalComments">AdditionalComments</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Document property key value.</TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_javax.swing.text.DefaultStyledDocument"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class javax.swing.text.<A HREF="../../../../javax/swing/text/DefaultStyledDocument.html">DefaultStyledDocument</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#buffer">buffer</A>, <A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#BUFFER_SIZE_DEFAULT">BUFFER_SIZE_DEFAULT</A></CODE></TD></TR></TABLE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -