📄 stylededitorkit.styledtextaction.html
字号:
<TD><CODE><B><A HREF="../../../javax/swing/text/StyledEditorKit.StyledTextAction.html#setParagraphAttributes(javax.swing.JEditorPane, javax.swing.text.AttributeSet, boolean)">setParagraphAttributes</A></B>(<A HREF="../../../javax/swing/JEditorPane.html">JEditorPane</A> editor, <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr, boolean replace)</CODE><BR> Applies the given attributes to paragraphs.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.swing.text.TextAction"><!-- --></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/TextAction.html">TextAction</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/swing/text/TextAction.html#augmentList(javax.swing.Action[], javax.swing.Action[])">augmentList</A>, <A HREF="../../../javax/swing/text/TextAction.html#getFocusedComponent()">getFocusedComponent</A>, <A HREF="../../../javax/swing/text/TextAction.html#getTextComponent(java.awt.event.ActionEvent)">getTextComponent</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.swing.AbstractAction"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.swing.<A HREF="../../../javax/swing/AbstractAction.html">AbstractAction</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/swing/AbstractAction.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A>, <A HREF="../../../javax/swing/AbstractAction.html#clone()">clone</A>, <A HREF="../../../javax/swing/AbstractAction.html#firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)">firePropertyChange</A>, <A HREF="../../../javax/swing/AbstractAction.html#getKeys()">getKeys</A>, <A HREF="../../../javax/swing/AbstractAction.html#getValue(java.lang.String)">getValue</A>, <A HREF="../../../javax/swing/AbstractAction.html#isEnabled()">isEnabled</A>, <A HREF="../../../javax/swing/AbstractAction.html#putValue(java.lang.String, java.lang.Object)">putValue</A>, <A HREF="../../../javax/swing/AbstractAction.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A>, <A HREF="../../../javax/swing/AbstractAction.html#setEnabled(boolean)">setEnabled</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> <A NAME="methods_inherited_from_class_java.awt.event.ActionListener"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.awt.event.<A HREF="../../../java/awt/event/ActionListener.html">ActionListener</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/awt/event/ActionListener.html#actionPerformed(java.awt.event.ActionEvent)">actionPerformed</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.StyledTextAction(java.lang.String)"><!-- --></A><H3>StyledEditorKit.StyledTextAction</H3><PRE>public <B>StyledEditorKit.StyledTextAction</B>(<A HREF="../../../java/lang/String.html">String</A> nm)</PRE><DL><DD>Creates a new StyledTextAction from a string action name.<DD><DL><DT><B>Parameters:</B><DD><CODE>nm</CODE> - the name of the action</DL></DD></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="getEditor(java.awt.event.ActionEvent)"><!-- --></A><H3>getEditor</H3><PRE>protected final <A HREF="../../../javax/swing/JEditorPane.html">JEditorPane</A> <B>getEditor</B>(<A HREF="../../../java/awt/event/ActionEvent.html">ActionEvent</A> e)</PRE><DL><DD>Gets the target editor for an action.<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the action event<DT><B>Returns:</B><DD>the editor</DL></DD></DL><HR><A NAME="getStyledDocument(javax.swing.JEditorPane)"><!-- --></A><H3>getStyledDocument</H3><PRE>protected final <A HREF="../../../javax/swing/text/StyledDocument.html">StyledDocument</A> <B>getStyledDocument</B>(<A HREF="../../../javax/swing/JEditorPane.html">JEditorPane</A> e)</PRE><DL><DD>Gets the document associated with an editor pane.<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the editor<DT><B>Returns:</B><DD>the document<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - for the wrong document type</DL></DD></DL><HR><A NAME="getStyledEditorKit(javax.swing.JEditorPane)"><!-- --></A><H3>getStyledEditorKit</H3><PRE>protected final <A HREF="../../../javax/swing/text/StyledEditorKit.html">StyledEditorKit</A> <B>getStyledEditorKit</B>(<A HREF="../../../javax/swing/JEditorPane.html">JEditorPane</A> e)</PRE><DL><DD>Gets the editor kit associated with an editor pane.<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the editor pane<DT><B>Returns:</B><DD>the kit<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - for the wrong document type</DL></DD></DL><HR><A NAME="setCharacterAttributes(javax.swing.JEditorPane, javax.swing.text.AttributeSet, boolean)"><!-- --></A><H3>setCharacterAttributes</H3><PRE>protected final void <B>setCharacterAttributes</B>(<A HREF="../../../javax/swing/JEditorPane.html">JEditorPane</A> editor, <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr, boolean replace)</PRE><DL><DD>Applies the given attributes to character content. If there is a selection, the attributes are applied to the selection range. If there is no selection, the attributes are applied to the input attribute set which defines the attributes for any new text that gets inserted.<DD><DL><DT><B>Parameters:</B><DD><CODE>editor</CODE> - the editor<DD><CODE>attr</CODE> - the attributes<DD><CODE>replace</CODE> - if true, then replace the existing attributes first</DL></DD></DL><HR><A NAME="setParagraphAttributes(javax.swing.JEditorPane, javax.swing.text.AttributeSet, boolean)"><!-- --></A><H3>setParagraphAttributes</H3><PRE>protected final void <B>setParagraphAttributes</B>(<A HREF="../../../javax/swing/JEditorPane.html">JEditorPane</A> editor, <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr, boolean replace)</PRE><DL><DD>Applies the given attributes to paragraphs. If there is a selection, the attributes are applied to the paragraphs that intersect the selection. if there is no selection, the attributes are applied to the paragraph at the current caret position.<DD><DL><DT><B>Parameters:</B><DD><CODE>editor</CODE> - the editor<DD><CODE>attr</CODE> - the attributes<DD><CODE>replace</CODE> - if true, replace the existing attributes first</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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StyledEditorKit.StyledTextAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/swing/text/StyledEditorKit.ItalicAction.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/swing/text/StyledEditorKit.UnderlineAction.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> <A HREF="StyledEditorKit.StyledTextAction.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#fields_inherited_from_class_javax.swing.AbstractAction">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 + -