📄 stylededitorkit.html
字号:
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class javax.swing.text.<A HREF="../../../javax/swing/text/DefaultEditorKit.html">DefaultEditorKit</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/swing/text/DefaultEditorKit.html#backwardAction">backwardAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#beepAction">beepAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#beginAction">beginAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#beginLineAction">beginLineAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#beginParagraphAction">beginParagraphAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#beginWordAction">beginWordAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#copyAction">copyAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#cutAction">cutAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#defaultKeyTypedAction">defaultKeyTypedAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#deleteNextCharAction">deleteNextCharAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#deletePrevCharAction">deletePrevCharAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#downAction">downAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#endAction">endAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#endLineAction">endLineAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#EndOfLineStringProperty">EndOfLineStringProperty</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#endParagraphAction">endParagraphAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#endWordAction">endWordAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#forwardAction">forwardAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#insertBreakAction">insertBreakAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#insertContentAction">insertContentAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#insertTabAction">insertTabAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#nextWordAction">nextWordAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#pageDownAction">pageDownAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#pageUpAction">pageUpAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#pasteAction">pasteAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#previousWordAction">previousWordAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#readOnlyAction">readOnlyAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectAllAction">selectAllAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectionBackwardAction">selectionBackwardAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectionBeginAction">selectionBeginAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectionBeginLineAction">selectionBeginLineAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectionBeginParagraphAction">selectionBeginParagraphAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectionBeginWordAction">selectionBeginWordAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectionDownAction">selectionDownAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectionEndAction">selectionEndAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectionEndLineAction">selectionEndLineAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectionEndParagraphAction">selectionEndParagraphAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectionEndWordAction">selectionEndWordAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectionForwardAction">selectionForwardAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectionNextWordAction">selectionNextWordAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectionPreviousWordAction">selectionPreviousWordAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectionUpAction">selectionUpAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectLineAction">selectLineAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectParagraphAction">selectParagraphAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#selectWordAction">selectWordAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#upAction">upAction</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#writableAction">writableAction</A></CODE></TD></TR></TABLE> <!-- ======== 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/StyledEditorKit.html#StyledEditorKit()">StyledEditorKit</A></B>()</CODE><BR> </TD></TR></TABLE> <!-- ========== 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> <A HREF="../../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/StyledEditorKit.html#clone()">clone</A></B>()</CODE><BR> Create a copy of the editor kit.</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><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><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/StyledEditorKit.html#createInputAttributes(javax.swing.text.Element, javax.swing.text.MutableAttributeSet)">createInputAttributes</A></B>(<A HREF="../../../javax/swing/text/Element.html">Element</A> element, <A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A> set)</CODE><BR> Copies the key/values in <code>element</code>s AttributeSet into <code>set</code>.</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><A HREF="../../../javax/swing/text/StyledEditorKit.html#deinstall(javax.swing.JEditorPane)">deinstall</A></B>(<A HREF="../../../javax/swing/JEditorPane.html">JEditorPane</A> c)</CODE><BR> Called when the kit is being removed from the JEditorPane.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/Action.html">Action</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/StyledEditorKit.html#getActions()">getActions</A></B>()</CODE><BR> Fetches the command list for 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/Element.html">Element</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/StyledEditorKit.html#getCharacterAttributeRun()">getCharacterAttributeRun</A></B>()</CODE><BR> Fetches the element representing the current run of character attributes for the caret.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/StyledEditorKit.html#getInputAttributes()">getInputAttributes</A></B>()</CODE><BR> Gets the input attributes for the pane.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/StyledEditorKit.html#getViewFactory()">getViewFactory</A></B>()</CODE><BR> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/StyledEditorKit.html#install(javax.swing.JEditorPane)">install</A></B>(<A HREF="../../../javax/swing/JEditorPane.html">JEditorPane</A> c)</CODE><BR> Called when the kit is being installed into a JEditorPane.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.swing.text.DefaultEditorKit"><!-- --></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/DefaultEditorKit.html">DefaultEditorKit</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/swing/text/DefaultEditorKit.html#createCaret()">createCaret</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#getContentType()">getContentType</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#read(java.io.InputStream, javax.swing.text.Document, int)">read</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#read(java.io.Reader, javax.swing.text.Document, int)">read</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#write(java.io.OutputStream, javax.swing.text.Document, int, int)">write</A>, <A HREF="../../../javax/swing/text/DefaultEditorKit.html#write(java.io.Writer, javax.swing.text.Document, int, int)">write</A></CODE></TD></TR></TABLE> <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> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="StyledEditorKit()"><!-- --></A><H3>StyledEditorKit</H3><PRE>public <B>StyledEditorKit</B>()</PRE><DL></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="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 for the pane. When the caret moves and there is no selection, the input attributes are automatically mutated to reflect the character attributes of the current caret location. The styled editing actions use the input attributes to carry out their actions.<DD><DL><DT><B>Returns:</B><DD>the attribute set</DL></DD></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -