📄 defaulteditorkit.html
字号:
<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/DefaultEditorKit.html#getActions()"><CODE>getActions()</CODE></A></DL></DD></DL><HR><A NAME="selectionBeginParagraphAction"><!-- --></A><H3>selectionBeginParagraphAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>selectionBeginParagraphAction</B></PRE><DL><DD>Name of the Action for moving the caret to the begining of a paragraph, extending the selection.<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="selectionEndParagraphAction"><!-- --></A><H3>selectionEndParagraphAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>selectionEndParagraphAction</B></PRE><DL><DD>Name of the Action for moving the caret to the end of a paragraph, extending the selection.<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="beginAction"><!-- --></A><H3>beginAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>beginAction</B></PRE><DL><DD>Name of the Action for moving the caret to the begining of the document.<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="endAction"><!-- --></A><H3>endAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>endAction</B></PRE><DL><DD>Name of the Action for moving the caret to the end of the document.<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="selectionBeginAction"><!-- --></A><H3>selectionBeginAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>selectionBeginAction</B></PRE><DL><DD>Name of the Action for moving the caret to the begining of the document.<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="selectionEndAction"><!-- --></A><H3>selectionEndAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>selectionEndAction</B></PRE><DL><DD>Name of the Action for moving the caret to the end of the document.<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="selectWordAction"><!-- --></A><H3>selectWordAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>selectWordAction</B></PRE><DL><DD>Name of the Action for selecting a word around the caret.<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="selectLineAction"><!-- --></A><H3>selectLineAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>selectLineAction</B></PRE><DL><DD>Name of the Action for selecting a line around the caret.<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="selectParagraphAction"><!-- --></A><H3>selectParagraphAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>selectParagraphAction</B></PRE><DL><DD>Name of the Action for selecting a paragraph around the caret.<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="selectAllAction"><!-- --></A><H3>selectAllAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>selectAllAction</B></PRE><DL><DD>Name of the Action for selecting the entire document<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="defaultKeyTypedAction"><!-- --></A><H3>defaultKeyTypedAction</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>defaultKeyTypedAction</B></PRE><DL><DD>Name of the action that is executed by default if a <em>key typed event</em> is received and there is no keymap entry.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/DefaultEditorKit.html#getActions()"><CODE>getActions()</CODE></A></DL></DD></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DefaultEditorKit()"><!-- --></A><H3>DefaultEditorKit</H3><PRE>public <B>DefaultEditorKit</B>()</PRE><DL><DD>default constructor for DefaultEditorKit</DL><!-- ============ 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="getContentType()"><!-- --></A><H3>getContentType</H3><PRE>public <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. The default is <code>text/plain</code>.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/EditorKit.html#getContentType()">getContentType</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/EditorKit.html">EditorKit</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the type</DL></DD></DL><HR><A NAME="getViewFactory()"><!-- --></A><H3>getViewFactory</H3><PRE>public <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. The default is to have the UI produce the factory, so this method has no implementation.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/EditorKit.html#getViewFactory()">getViewFactory</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/EditorKit.html">EditorKit</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the view factory</DL></DD></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 set of commands that can be used on a text component that is using a model and view produced by this kit.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/EditorKit.html#getActions()">getActions</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/EditorKit.html">EditorKit</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the command list</DL></DD></DL><HR><A NAME="createCaret()"><!-- --></A><H3>createCaret</H3><PRE>public <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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/EditorKit.html#createCaret()">createCaret</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/EditorKit.html">EditorKit</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the caret</DL></DD></DL><HR><A NAME="createDefaultDocument()"><!-- --></A><H3>createDefaultDocument</H3><PRE>public <A HREF="../../../javax/swing/text/Document.html">Document</A> <B>createDefaultDocument</B>()</PRE><DL><DD>Creates an uninitialized text storage model (PlainDocument) that is appropriate for this type of editor.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/EditorKit.html#createDefaultDocument()">createDefaultDocument</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/EditorKit.html">EditorKit</A></CODE></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 void <B>read</B>(<A HREF="../../../java/io/InputStream.html">InputStream</A> in, <A HREF="../../../javax/swing/text/Document.html">Document</A> doc, int 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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/EditorKit.html#read(java.io.InputStream, javax.swing.text.Document, int)">read</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/EditorKit.html">EditorKit</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 >= 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 void <B>write</B>(<A HREF="../../../java/io/OutputStream.html">OutputStream</A> out, <A HREF="../../../javax/swing/text/Document.html">Document</A> doc, int pos, int 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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/EditorKit.html#write(java.io.OutputStream, javax.swing.text.Document, int, int)">write</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/EditorKit.html">EditorKit</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 >= 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 void <B>read</B>(<A HREF="../../../java/io/Reader.html">Reader</A> in, <A HREF="../../../javax/swing/text/Document.html">Document</A> doc, int pos) throws <A HREF="../../../java/io/IOException.html">IOException</A>, <A HREF=".
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -