📄 document.html
字号:
<CODE> interface</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/StyledDocument.html">StyledDocument</A></B></CODE><BR> Interface for a generic styled document.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Classes in <A HREF="../../../../javax/swing/text/package-summary.html">javax.swing.text</A> that implement <A HREF="../../../../javax/swing/text/Document.html">Document</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/AbstractDocument.html">AbstractDocument</A></B></CODE><BR> An implementation of the document interface to serve as a basis for implementing various kinds of documents.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.html">DefaultStyledDocument</A></B></CODE><BR> A document that can be marked up with character and paragraph styles in a manner similar to the Rich Text Format.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/PlainDocument.html">PlainDocument</A></B></CODE><BR> A plain document that maintains no character attributes.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../javax/swing/text/package-summary.html">javax.swing.text</A> that return <A HREF="../../../../javax/swing/text/Document.html">Document</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/Document.html">Document</A></CODE></FONT></TD><TD><CODE><B>JTextComponent.</B><B><A HREF="../../../../javax/swing/text/JTextComponent.html#getDocument()">getDocument</A></B>()</CODE><BR> Fetches the model associated with the editor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/Document.html">Document</A></CODE></FONT></TD><TD><CODE><B>View.</B><B><A HREF="../../../../javax/swing/text/View.html#getDocument()">getDocument</A></B>()</CODE><BR> Fetches the model associated with the view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/Document.html">Document</A></CODE></FONT></TD><TD><CODE><B>Element.</B><B><A HREF="../../../../javax/swing/text/Element.html#getDocument()">getDocument</A></B>()</CODE><BR> Fetches the document associated with this element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../../javax/swing/text/Document.html">Document</A></CODE></FONT></TD><TD><CODE><B>EditorKit.</B><B><A HREF="../../../../javax/swing/text/EditorKit.html#createDefaultDocument()">createDefaultDocument</A></B>()</CODE><BR> Creates an uninitialized text storage model that is appropriate for this type of editor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/text/Document.html">Document</A></CODE></FONT></TD><TD><CODE><B>AbstractWriter.</B><B><A HREF="../../../../javax/swing/text/AbstractWriter.html#getDocument()">getDocument</A></B>()</CODE><BR> Fetches the document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/Document.html">Document</A></CODE></FONT></TD><TD><CODE><B>DefaultEditorKit.</B><B><A HREF="../../../../javax/swing/text/DefaultEditorKit.html#createDefaultDocument()">createDefaultDocument</A></B>()</CODE><BR> Creates an uninitialized text storage model (PlainDocument) that is appropriate for this type of editor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/Document.html">Document</A></CODE></FONT></TD><TD><CODE><B>AbstractDocument.AbstractElement.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.AbstractElement.html#getDocument()">getDocument</A></B>()</CODE><BR> Retrieves the underlying model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/Document.html">Document</A></CODE></FONT></TD><TD><CODE><B>AbstractDocument.DefaultDocumentEvent.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#getDocument()">getDocument</A></B>()</CODE><BR> Gets the document that sourced the change event.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/Document.html">Document</A></CODE></FONT></TD><TD><CODE><B>StyledEditorKit.</B><B><A HREF="../../../../javax/swing/text/StyledEditorKit.html#createDefaultDocument()">createDefaultDocument</A></B>()</CODE><BR> Creates an uninitialized text storage model that is appropriate for this type of editor.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../javax/swing/text/package-summary.html">javax.swing.text</A> with parameters of type <A HREF="../../../../javax/swing/text/Document.html">Document</A></FONT></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>JTextComponent.</B><B><A HREF="../../../../javax/swing/text/JTextComponent.html#setDocument(javax.swing.text.Document)">setDocument</A></B>(<A HREF="../../../../javax/swing/text/Document.html">Document</A> doc)</CODE><BR> Associates the editor with a text document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B>EditorKit.</B><B><A HREF="../../../../javax/swing/text/EditorKit.html#read(java.io.InputStream, javax.swing.text.Document, int)">read</A></B>(<A HREF="../../../../java/io/InputStream.html">InputStream</A> in, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos)</CODE><BR> Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B>EditorKit.</B><B><A HREF="../../../../javax/swing/text/EditorKit.html#write(java.io.OutputStream, javax.swing.text.Document, int, int)">write</A></B>(<A HREF="../../../../java/io/OutputStream.html">OutputStream</A> out, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos, int len)</CODE><BR> Writes content from a document to the given stream in a format appropriate for this kind of content handler.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B>EditorKit.</B><B><A HREF="../../../../javax/swing/text/EditorKit.html#read(java.io.Reader, javax.swing.text.Document, int)">read</A></B>(<A HREF="../../../../java/io/Reader.html">Reader</A> in, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos)</CODE><BR> Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B>EditorKit.</B><B><A HREF="../../../../javax/swing/text/EditorKit.html#write(java.io.Writer, javax.swing.text.Document, int, int)">write</A></B>(<A HREF="../../../../java/io/Writer.html">Writer</A> out, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos, int len)</CODE><BR> Writes content from a document to the given stream in a format appropriate for this kind of content handler.</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>DefaultEditorKit.</B><B><A HREF="../../../../javax/swing/text/DefaultEditorKit.html#read(java.io.InputStream, javax.swing.text.Document, int)">read</A></B>(<A HREF="../../../../java/io/InputStream.html">InputStream</A> in, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos)</CODE><BR> Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.</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>DefaultEditorKit.</B><B><A HREF="../../../../javax/swing/text/DefaultEditorKit.html#write(java.io.OutputStream, javax.swing.text.Document, int, int)">write</A></B>(<A HREF="../../../../java/io/OutputStream.html">OutputStream</A> out, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos, int len)</CODE><BR> Writes content from a document to the given stream in a format appropriate for this kind of content handler.</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>DefaultEditorKit.</B><B><A HREF="../../../../javax/swing/text/DefaultEditorKit.html#read(java.io.Reader, javax.swing.text.Document, int)">read</A></B>(<A HREF="../../../../java/io/Reader.html">Reader</A> in, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos)</CODE><BR> Inserts content from the given stream, which will be treated as plain text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -