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

📄 defaulteditorkit.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<CODE>static&nbsp;<A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/DefaultEditorKit.html#writableAction">writableAction</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Name of the action to set the editor into writeable mode.</TD></TR></TABLE>&nbsp;<!-- ======== 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/DefaultEditorKit.html#DefaultEditorKit()">DefaultEditorKit</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default constructor for DefaultEditorKit</TD></TR></TABLE>&nbsp;<!-- ========== 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>&nbsp;<A HREF="../../../javax/swing/text/Caret.html">Caret</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/DefaultEditorKit.html#createCaret()">createCaret</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches a caret that can navigate through views produced by the associated ViewFactory.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/swing/text/Document.html">Document</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/DefaultEditorKit.html#createDefaultDocument()">createDefaultDocument</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<A HREF="../../../javax/swing/Action.html">Action</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/DefaultEditorKit.html#getActions()">getActions</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the set of commands that can be used on a text component that is using a model and view produced by this kit.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/DefaultEditorKit.html#getContentType()">getContentType</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the MIME type of the data that this kit represents support for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/DefaultEditorKit.html#getViewFactory()">getViewFactory</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches a factory that is suitable for producing  views of any models that are produced by this kit.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><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>&nbsp;in,     <A HREF="../../../javax/swing/text/Document.html">Document</A>&nbsp;doc,     int&nbsp;pos)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><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>&nbsp;in,     <A HREF="../../../javax/swing/text/Document.html">Document</A>&nbsp;doc,     int&nbsp;pos)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts content from the given stream, which will be  treated as plain text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><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>&nbsp;out,      <A HREF="../../../javax/swing/text/Document.html">Document</A>&nbsp;doc,      int&nbsp;pos,      int&nbsp;len)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/DefaultEditorKit.html#write(java.io.Writer, javax.swing.text.Document, int, int)">write</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes content from a document to the given stream as plain text.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.swing.text.EditorKit"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.swing.text.<A HREF="../../../javax/swing/text/EditorKit.html">EditorKit</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/swing/text/EditorKit.html#clone()">clone</A>, <A HREF="../../../javax/swing/text/EditorKit.html#deinstall(javax.swing.JEditorPane)">deinstall</A>, <A HREF="../../../javax/swing/text/EditorKit.html#install(javax.swing.JEditorPane)">install</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="EndOfLineStringProperty"><!-- --></A><H3>EndOfLineStringProperty</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>EndOfLineStringProperty</B></PRE><DL><DD>When reading a document if a CRLF is encountered a property with this name is added and the value will be "\r\n".</DL><HR><A NAME="insertContentAction"><!-- --></A><H3>insertContentAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>insertContentAction</B></PRE><DL><DD>Name of the action to place content into the associated document.  If there is a selection, it is removed before the new content is added.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/DefaultEditorKit.html#getActions()"><CODE>getActions()</CODE></A></DL></DD></DL><HR><A NAME="insertBreakAction"><!-- --></A><H3>insertBreakAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>insertBreakAction</B></PRE><DL><DD>Name of the action to place a line/paragraph break into the document.  If there is a selection, it is removed before the break is added.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/DefaultEditorKit.html#getActions()"><CODE>getActions()</CODE></A></DL></DD></DL><HR><A NAME="insertTabAction"><!-- --></A><H3>insertTabAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>insertTabAction</B></PRE><DL><DD>Name of the action to place a tab character into the document.  If there is a selection, it is removed before the tab is added.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/DefaultEditorKit.html#getActions()"><CODE>getActions()</CODE></A></DL></DD></DL><HR><A NAME="deletePrevCharAction"><!-- --></A><H3>deletePrevCharAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>deletePrevCharAction</B></PRE><DL><DD>Name of the action to delete the character of content that precedes the current caret position.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/DefaultEditorKit.html#getActions()"><CODE>getActions()</CODE></A></DL></DD></DL><HR><A NAME="deleteNextCharAction"><!-- --></A><H3>deleteNextCharAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>deleteNextCharAction</B></PRE><DL><DD>Name of the action to delete the character of content that follows the current caret position.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/DefaultEditorKit.html#getActions()"><CODE>getActions()</CODE></A></DL></DD></DL><HR><A NAME="readOnlyAction"><!-- --></A><H3>readOnlyAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>readOnlyAction</B></PRE><DL><DD>Name of the action to set the editor into read-only mode.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/DefaultEditorKit.html#getActions()"><CODE>getActions()</CODE></A></DL></DD></DL><HR><A NAME="writableAction"><!-- --></A><H3>writableAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>writableAction</B></PRE><DL><DD>Name of the action to set the editor into writeable mode.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/DefaultEditorKit.html#getActions()"><CODE>getActions()</CODE></A></DL></DD></DL><HR><A NAME="cutAction"><!-- --></A><H3>cutAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>cutAction</B></PRE><DL><DD>Name of the action to cut the selected region and place the contents into the system clipboard.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#cut()"><CODE>JTextComponent.cut()</CODE></A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#getActions()"><CODE>getActions()</CODE></A></DL></DD></DL><HR><A NAME="copyAction"><!-- --></A><H3>copyAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>copyAction</B></PRE><DL><DD>Name of the action to copy the selected region and place the contents into the system clipboard.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#copy()"><CODE>JTextComponent.copy()</CODE></A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#getActions()"><CODE>getActions()</CODE></A></DL></DD></DL><HR><A NAME="pasteAction"><!-- --></A><H3>pasteAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>pasteAction</B></PRE><DL><DD>Name of the action to paste the contents of the system clipboard into the selected region, or before the caret if nothing is selected.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/JTextComponent.html#paste()"><CODE>JTextComponent.paste()</CODE></A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#getActions()"><CODE>getActions()</CODE></A></DL></DD></DL><HR>

⌨️ 快捷键说明

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