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

📄 editorkit.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!-- ============ 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="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>clone</B>()</PRE><DL><DD>Creates a copy of the editor kit.  This is implemented to use Object.clone</em>.  If the kit cannot be cloned, null is returned.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the copy</DL></DD></DL><HR><A NAME="install(javax.swing.JEditorPane)"><!-- --></A><H3>install</H3><PRE>public void <B>install</B>(<A HREF="../../../javax/swing/JEditorPane.html">JEditorPane</A>&nbsp;c)</PRE><DL><DD>Called when the kit is being installed into the a JEditorPane.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the JEditorPane</DL></DD></DL><HR><A NAME="deinstall(javax.swing.JEditorPane)"><!-- --></A><H3>deinstall</H3><PRE>public void <B>deinstall</B>(<A HREF="../../../javax/swing/JEditorPane.html">JEditorPane</A>&nbsp;c)</PRE><DL><DD>Called when the kit is being removed from the JEditorPane.  This is used to unregister any  listeners that were attached.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the JEditorPane</DL></DD></DL><HR><A NAME="getContentType()"><!-- --></A><H3>getContentType</H3><PRE>public abstract <A HREF="../../../java/lang/String.html">String</A> <B>getContentType</B>()</PRE><DL><DD>Gets the MIME type of the data that this kit represents support for.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the type</DL></DD></DL><HR><A NAME="getViewFactory()"><!-- --></A><H3>getViewFactory</H3><PRE>public abstract <A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A> <B>getViewFactory</B>()</PRE><DL><DD>Fetches a factory that is suitable for producing  views of any models that are produced by this kit.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the factory</DL></DD></DL><HR><A NAME="getActions()"><!-- --></A><H3>getActions</H3><PRE>public abstract <A HREF="../../../javax/swing/Action.html">Action</A>[] <B>getActions</B>()</PRE><DL><DD>Fetches the set of commands that can be used on a text component that is using a model and view produced by this kit.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the set of actions</DL></DD></DL><HR><A NAME="createCaret()"><!-- --></A><H3>createCaret</H3><PRE>public abstract <A HREF="../../../javax/swing/text/Caret.html">Caret</A> <B>createCaret</B>()</PRE><DL><DD>Fetches a caret that can navigate through views produced by the associated ViewFactory.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the caret</DL></DD></DL><HR><A NAME="createDefaultDocument()"><!-- --></A><H3>createDefaultDocument</H3><PRE>public abstract <A HREF="../../../javax/swing/text/Document.html">Document</A> <B>createDefaultDocument</B>()</PRE><DL><DD>Creates an uninitialized text storage model that is appropriate for this type of editor.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the model</DL></DD></DL><HR><A NAME="read(java.io.InputStream, javax.swing.text.Document, int)"><!-- --></A><H3>read</H3><PRE>public abstract void <B>read</B>(<A HREF="../../../java/io/InputStream.html">InputStream</A>&nbsp;in,                          <A HREF="../../../javax/swing/text/Document.html">Document</A>&nbsp;doc,                          int&nbsp;pos)                   throws <A HREF="../../../java/io/IOException.html">IOException</A>,                          <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Inserts content from the given stream which is expected  to be in a format appropriate for this kind of content handler.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - The stream to read from<DD><CODE>doc</CODE> - The destination for the insertion.<DD><CODE>pos</CODE> - The location in the document to place the   content >= 0.<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="write(java.io.OutputStream, javax.swing.text.Document, int, int)"><!-- --></A><H3>write</H3><PRE>public abstract void <B>write</B>(<A HREF="../../../java/io/OutputStream.html">OutputStream</A>&nbsp;out,                           <A HREF="../../../javax/swing/text/Document.html">Document</A>&nbsp;doc,                           int&nbsp;pos,                           int&nbsp;len)                    throws <A HREF="../../../java/io/IOException.html">IOException</A>,                           <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Writes content from a document to the given stream in a format appropriate for this kind of content handler.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - The stream to write to<DD><CODE>doc</CODE> - The source for the write.<DD><CODE>pos</CODE> - The location in the document to fetch the   content from >= 0.<DD><CODE>len</CODE> - The amount to write out >= 0.<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="read(java.io.Reader, javax.swing.text.Document, int)"><!-- --></A><H3>read</H3><PRE>public abstract void <B>read</B>(<A HREF="../../../java/io/Reader.html">Reader</A>&nbsp;in,                          <A HREF="../../../javax/swing/text/Document.html">Document</A>&nbsp;doc,                          int&nbsp;pos)                   throws <A HREF="../../../java/io/IOException.html">IOException</A>,                          <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Inserts content from the given stream which is expected  to be in a format appropriate for this kind of content handler. <p> Since actual text editing is unicode based, this would  generally be the preferred way to read in the data.   Some types of content are stored in an 8-bit form however, and will favor the InputStream.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - The stream to read from<DD><CODE>doc</CODE> - The destination for the insertion.<DD><CODE>pos</CODE> - The location in the document to place the   content >= 0.<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="write(java.io.Writer, javax.swing.text.Document, int, int)"><!-- --></A><H3>write</H3><PRE>public abstract void <B>write</B>(<A HREF="../../../java/io/Writer.html">Writer</A>&nbsp;out,                           <A HREF="../../../javax/swing/text/Document.html">Document</A>&nbsp;doc,                           int&nbsp;pos,                           int&nbsp;len)                    throws <A HREF="../../../java/io/IOException.html">IOException</A>,                           <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Writes content from a document to the given stream in a format appropriate for this kind of content handler. <p> Since actual text editing is unicode based, this would  generally be the preferred way to write the data.   Some types of content are stored in an 8-bit form however, and will favor the OutputStream.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>out</CODE> - The stream to write to<DD><CODE>doc</CODE> - The source for the write.<DD><CODE>pos</CODE> - The location in the document to fetch the   content >= 0.<DD><CODE>len</CODE> - The amount to write out >= 0.<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><!-- ========= 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>&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/EditorKit.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/DefaultTextUI.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/swing/text/ElementIterator.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="EditorKit.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -