📄 htmldocument.html
字号:
<A NAME="fields_inherited_from_class_javax.swing.text.AbstractDocument"><!-- --></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/AbstractDocument.html">AbstractDocument</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../javax/swing/text/AbstractDocument.html#BAD_LOCATION">BAD_LOCATION</A>, <A HREF="../../../../javax/swing/text/AbstractDocument.html#BidiElementName">BidiElementName</A>, <A HREF="../../../../javax/swing/text/AbstractDocument.html#ContentElementName">ContentElementName</A>, <A HREF="../../../../javax/swing/text/AbstractDocument.html#ElementNameAttribute">ElementNameAttribute</A>, <A HREF="../../../../javax/swing/text/AbstractDocument.html#listenerList">listenerList</A>, <A HREF="../../../../javax/swing/text/AbstractDocument.html#ParagraphElementName">ParagraphElementName</A>, <A HREF="../../../../javax/swing/text/AbstractDocument.html#SectionElementName">SectionElementName</A></CODE></TD></TR></TABLE> <A NAME="fields_inherited_from_class_javax.swing.text.Document"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from interface javax.swing.text.<A HREF="../../../../javax/swing/text/Document.html">Document</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../javax/swing/text/Document.html#StreamDescriptionProperty">StreamDescriptionProperty</A>, <A HREF="../../../../javax/swing/text/Document.html#TitleProperty">TitleProperty</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#HTMLDocument()">HTMLDocument</A></B>()</CODE><BR> Constructs an HTML document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#HTMLDocument(javax.swing.text.AbstractDocument.Content, javax.swing.text.html.StyleSheet)">HTMLDocument</A></B>(<A HREF="../../../../javax/swing/text/AbstractDocument.Content.html">AbstractDocument.Content</A> c, <A HREF="../../../../javax/swing/text/html/StyleSheet.html">StyleSheet</A> styles)</CODE><BR> Constructs an HTML document with the given content storage implementation and the given style/attribute storage mechanism.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#HTMLDocument(javax.swing.text.html.StyleSheet)">HTMLDocument</A></B>(<A HREF="../../../../javax/swing/text/html/StyleSheet.html">StyleSheet</A> styles)</CODE><BR> Constructs an HTML document with the default content storage implementation and the given style/attribute storage mechanism.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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/HTMLDocument.html#create(javax.swing.text.DefaultStyledDocument.ElementSpec[])">create</A></B>(<A HREF="../../../../javax/swing/text/DefaultStyledDocument.ElementSpec.html">DefaultStyledDocument.ElementSpec</A>[] data)</CODE><BR> Replaces the contents of the document with the given element specifications.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/text/Element.html">Element</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#createBranchElement(javax.swing.text.Element, javax.swing.text.AttributeSet)">createBranchElement</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> parent, <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Creates a document branch element, that can contain other elements.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/text/AbstractDocument.AbstractElement.html">AbstractDocument.AbstractElement</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#createDefaultRoot()">createDefaultRoot</A></B>()</CODE><BR> Creates the root element to be used to represent the default document structure.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/text/Element.html">Element</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#createLeafElement(javax.swing.text.Element, javax.swing.text.AttributeSet, int, int)">createLeafElement</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> parent, <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a, int p0, int p1)</CODE><BR> Creates a document leaf element that directly represents text (doesn't have any children).</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/HTMLDocument.html#fireChangedUpdate(javax.swing.event.DocumentEvent)">fireChangedUpdate</A></B>(<A HREF="../../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A> e)</CODE><BR> Notifies all listeners that have registered interest for notification on this event type.</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/HTMLDocument.html#fireUndoableEditUpdate(javax.swing.event.UndoableEditEvent)">fireUndoableEditUpdate</A></B>(<A HREF="../../../../javax/swing/event/UndoableEditEvent.html">UndoableEditEvent</A> e)</CODE><BR> Notifies all listeners that have registered interest for notification on this event type.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/net/URL.html">URL</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getBase()">getBase</A></B>()</CODE><BR> Gets the location to resolve relative URLs against.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/Element.html">Element</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getElement(javax.swing.text.Element, java.lang.Object, java.lang.Object)">getElement</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> e, <A HREF="../../../../java/lang/Object.html">Object</A> attribute, <A HREF="../../../../java/lang/Object.html">Object</A> value)</CODE><BR> Returns the child element of <code>e</code> that contains the attribute, <code>attribute</code> with value <code>value</code>, or null if one isn't found.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/Element.html">Element</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getElement(java.lang.String)">getElement</A></B>(<A HREF="../../../../java/lang/String.html">String</A> id)</CODE><BR> Fetches the element that has the given id attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/html/HTMLDocument.Iterator.html">HTMLDocument.Iterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getIterator(javax.swing.text.html.HTML.Tag)">getIterator</A></B>(<A HREF="../../../../javax/swing/text/html/HTML.Tag.html">HTML.Tag</A> t)</CODE><BR> Fetches an iterator for the following kind of HTML tag.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/html/HTMLEditorKit.Parser.html">HTMLEditorKit.Parser</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getParser()">getParser</A></B>()</CODE><BR> Returns the parser that is used when inserting HTML into the existing document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getPreservesUnknownTags()">getPreservesUnknownTags</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/html/HTMLEditorKit.ParserCallback.html">HTMLEditorKit.ParserCallback</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getReader(int)">getReader</A></B>(int pos)</CODE><BR> Fetches the reader for the parser to use to load the document with HTML.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/html/HTMLEditorKit.ParserCallback.html">HTMLEditorKit.ParserCallback</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getReader(int, int, int, javax.swing.text.html.HTML.Tag)">getReader</A></B>(int pos, int popDepth, int pushDepth, <A HREF="../../../../javax/swing/text/html/HTML.Tag.html">HTML.Tag</A> insertTag)</CODE><BR> Fetches the reader for the parser to use to load the document with HTML.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/html/StyleSheet.html">StyleSheet</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getStyleSheet()">getStyleSheet</A></B>()</CODE><BR> Fetches the StyleSheet with the document-specific display rules (CSS) that were specified in the HTML document itself.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getTokenThreshold()">getTokenThreshold</A></B>()</CODE><BR> Gets the number of tokens to buffer before trying to update the documents element structure.</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/HTMLDocument.html#insert(int, javax.swing.text.DefaultStyledDocument.ElementSpec[])">insert</A></B>(int offset, <A HREF="../../../../javax/swing/text/DefaultStyledDocument.ElementSpec.html">DefaultStyledDocument.ElementSpec</A>[] data)</CODE><BR> Inserts new elements in bulk.</TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -