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

📄 htmleditorkit.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<A NAME="read(java.io.Reader, javax.swing.text.Document, int)"><!-- --></A><H3>read</H3><PRE>public 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. If <code>doc</code> is an instance of HTMLDocument, this will read HTML 3.2 text. Inserting HTML into a non-empty document must be inside the body Element, if you do not insert into the body an exception will be thrown. When inserting into a non-empty document all tags outside of the body (head, title) will be dropped.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/DefaultEditorKit.html#read(java.io.Reader, javax.swing.text.Document, int)">read</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/DefaultEditorKit.html">DefaultEditorKit</A></CODE></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<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<DD><CODE><A HREF="../../../../java/lang/RuntimeException.html">RuntimeException</A></CODE> - (will eventually be a BadLocationException)            if pos is invalid</DL></DD></DL><HR><A NAME="insertHTML(javax.swing.text.html.HTMLDocument, int, java.lang.String, int, int, javax.swing.text.html.HTML.Tag)"><!-- --></A><H3>insertHTML</H3><PRE>public void <B>insertHTML</B>(<A HREF="../../../../javax/swing/text/html/HTMLDocument.html">HTMLDocument</A>&nbsp;doc,                       int&nbsp;offset,                       <A HREF="../../../../java/lang/String.html">String</A>&nbsp;html,                       int&nbsp;popDepth,                       int&nbsp;pushDepth,                       <A HREF="../../../../javax/swing/text/html/HTML.Tag.html">HTML.Tag</A>&nbsp;insertTag)                throws <A HREF="../../../../javax/swing/text/BadLocationException.html">BadLocationException</A>,                       <A HREF="../../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Inserts HTML into an existing document.<DD><DL><DT><B>Parameters:</B><DD><CODE>doc</CODE> - the document to insert into<DD><CODE>offset</CODE> - the offset to insert HTML at<DD><CODE>popDepth</CODE> - the number of ElementSpec.EndTagTypes to generate before        inserting<DD><CODE>pushDepth</CODE> - the number of ElementSpec.StartTagTypes with a direction        of ElementSpec.JoinNextDirection that should be generated        before inserting, but after the end tags have been generated<DD><CODE>insertTag</CODE> - the first tag to start inserting into document<DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/lang/RuntimeException.html">RuntimeException</A></CODE> - (will eventually be a BadLocationException)            if pos is invalid</DL></DD></DL><HR><A NAME="write(java.io.Writer, javax.swing.text.Document, int, int)"><!-- --></A><H3>write</H3><PRE>public 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>Write content from a document to the given stream in a format appropriate for this kind of content handler.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/DefaultEditorKit.html#write(java.io.Writer, javax.swing.text.Document, int, int)">write</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/DefaultEditorKit.html">DefaultEditorKit</A></CODE></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<DD><CODE>len</CODE> - the amount to write out<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="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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/StyledEditorKit.html#install(javax.swing.JEditorPane)">install</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/StyledEditorKit.html">StyledEditorKit</A></CODE></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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/StyledEditorKit.html#deinstall(javax.swing.JEditorPane)">deinstall</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/StyledEditorKit.html">StyledEditorKit</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the JEditorPane</DL></DD></DL><HR><A NAME="setStyleSheet(javax.swing.text.html.StyleSheet)"><!-- --></A><H3>setStyleSheet</H3><PRE>public void <B>setStyleSheet</B>(<A HREF="../../../../javax/swing/text/html/StyleSheet.html">StyleSheet</A>&nbsp;s)</PRE><DL><DD>Set the set of styles to be used to render the various HTML elements.  These styles are specified in terms of CSS specifications.  Each document produced by the kit will have a copy of the sheet which it can add the  document specific styles to.  By default, the StyleSheet specified is shared by all HTMLEditorKit instances. This should be reimplemented to provide a finer granularity if desired.</DL><HR><A NAME="getStyleSheet()"><!-- --></A><H3>getStyleSheet</H3><PRE>public <A HREF="../../../../javax/swing/text/html/StyleSheet.html">StyleSheet</A> <B>getStyleSheet</B>()</PRE><DL><DD>Get the set of styles currently being used to render the HTML elements.  By default the resource specified by DEFAULT_CSS gets loaded, and is shared by all HTMLEditorKit  instances.</DL><HR><A NAME="getActions()"><!-- --></A><H3>getActions</H3><PRE>public <A HREF="../../../../javax/swing/Action.html">Action</A>[] <B>getActions</B>()</PRE><DL><DD>Fetches the command list for the editor.  This is the list of commands supported by the superclass augmented by the collection of commands defined locally for style operations.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/StyledEditorKit.html#getActions()">getActions</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/StyledEditorKit.html">StyledEditorKit</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the command list</DL></DD></DL><HR><A NAME="createInputAttributes(javax.swing.text.Element, javax.swing.text.MutableAttributeSet)"><!-- --></A><H3>createInputAttributes</H3><PRE>protected void <B>createInputAttributes</B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;element,                                     <A HREF="../../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;set)</PRE><DL><DD>Copies the key/values in <code>element</code>s AttributeSet into <code>set</code>. This does not copy component, icon, or element names attributes. Subclasses may wish to refine what is and what isn't copied here. But be sure to first remove all the attributes that are in <code>set</code>.<p> This is called anytime the caret moves over a different location.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/StyledEditorKit.html#createInputAttributes(javax.swing.text.Element, javax.swing.text.MutableAttributeSet)">createInputAttributes</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/StyledEditorKit.html">StyledEditorKit</A></CODE></DL></DD></DL><HR><A NAME="getInputAttributes()"><!-- --></A><H3>getInputAttributes</H3><PRE>public <A HREF="../../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A> <B>getInputAttributes</B>()</PRE><DL><DD>Gets the input attributes used for the styled  editing actions.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/StyledEditorKit.html#getInputAttributes()">getInputAttributes</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/StyledEditorKit.html">StyledEditorKit</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the attribute set</DL></DD></DL><HR><A NAME="setDefaultCursor(java.awt.Cursor)"><!-- --></A><H3>setDefaultCursor</H3><PRE>public void <B>setDefaultCursor</B>(<A HREF="../../../../java/awt/Cursor.html">Cursor</A>&nbsp;cursor)</PRE><DL><DD>Sets the default cursor.<DD><DL><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="getDefaultCursor()"><!-- --></A><H3>getDefaultCursor</H3><PRE>public <A HREF="../../../../java/awt/Cursor.html">Cursor</A> <B>getDefaultCursor</B>()</PRE><DL><DD>Returns the default cursor.<DD><DL><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="setLinkCursor(java.awt.Cursor)"><!-- --></A><H3>setLinkCursor</H3><PRE>public void <B>setLinkCursor</B>(<A HREF="../../../../java/awt/Cursor.html">Cursor</A>&nbsp;cursor)</PRE><DL><DD>Sets the cursor to use over links.<DD><DL><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="getLinkCursor()"><!-- --></A><H3>getLinkCursor</H3><PRE>public <A HREF="../../../../java/awt/Cursor.html">Cursor</A> <B>getLinkCursor</B>()</PRE><DL><DD>Returns the cursor to use over hyper links.</DL><HR><A NAME="getParser()"><!-- --></A><H3>getParser</H3><PRE>protected <A HREF="../../../../javax/swing/text/html/HTMLEditorKit.Parser.html">HTMLEditorKit.Parser</A> <B>getParser</B>()</PRE><DL><DD>Fetch the parser to use for reading HTML streams. This can be reimplemented to provide a different parser.  The default implementation is loaded dynamically to avoid the overhead of loading the default parser if it's not used.  The default parser is the HotJava parser using an HTML 3.2 DTD.</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/HTMLEditorKit.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/HTMLDocument.RunElement.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../javax/swing/text/html/HTMLEditorKit.HTMLFactory.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="HTMLEditorKit.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><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 + -