📄 action.html
字号:
<BR> An action to toggle the underline attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/TextAction.html">TextAction</A></B></CODE><BR> An Action implementation useful for key bindings that are shared across a number of different text components.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../javax/swing/text/package-summary.html">javax.swing.text</A> that return <A HREF="../../../javax/swing/Action.html">Action</A></FONT></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>JTextComponent.</B><B><A HREF="../../../javax/swing/text/JTextComponent.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/Action.html">Action</A></CODE></FONT></TD><TD><CODE><B>Keymap.</B><B><A HREF="../../../javax/swing/text/Keymap.html#getDefaultAction()">getDefaultAction</A></B>()</CODE><BR> Fetches the default action to fire if a key is typed (i.e.</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>Keymap.</B><B><A HREF="../../../javax/swing/text/Keymap.html#getAction(javax.swing.KeyStroke)">getAction</A></B>(<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A> key)</CODE><BR> Fetches the action appropriate for the given symbolic event sequence.</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>Keymap.</B><B><A HREF="../../../javax/swing/text/Keymap.html#getBoundActions()">getBoundActions</A></B>()</CODE><BR> Fetches all of the actions defined in this keymap.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../javax/swing/Action.html">Action</A>[]</CODE></FONT></TD><TD><CODE><B>EditorKit.</B><B><A HREF="../../../javax/swing/text/EditorKit.html#getActions()">getActions</A></B>()</CODE><BR> 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>static <A HREF="../../../javax/swing/Action.html">Action</A>[]</CODE></FONT></TD><TD><CODE><B>TextAction.</B><B><A HREF="../../../javax/swing/text/TextAction.html#augmentList(javax.swing.Action[], javax.swing.Action[])">augmentList</A></B>(<A HREF="../../../javax/swing/Action.html">Action</A>[] list1, <A HREF="../../../javax/swing/Action.html">Action</A>[] list2)</CODE><BR> Takes one list of commands and augments it with another list of commands.</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>DefaultEditorKit.</B><B><A HREF="../../../javax/swing/text/DefaultEditorKit.html#getActions()">getActions</A></B>()</CODE><BR> 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> <A HREF="../../../javax/swing/Action.html">Action</A>[]</CODE></FONT></TD><TD><CODE><B>StyledEditorKit.</B><B><A HREF="../../../javax/swing/text/StyledEditorKit.html#getActions()">getActions</A></B>()</CODE><BR> Fetches the command list for the editor.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../javax/swing/text/package-summary.html">javax.swing.text</A> with parameters of type <A HREF="../../../javax/swing/Action.html">Action</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static void</CODE></FONT></TD><TD><CODE><B>JTextComponent.</B><B><A HREF="../../../javax/swing/text/JTextComponent.html#loadKeymap(javax.swing.text.Keymap, javax.swing.text.JTextComponent.KeyBinding[], javax.swing.Action[])">loadKeymap</A></B>(<A HREF="../../../javax/swing/text/Keymap.html">Keymap</A> map, <A HREF="../../../javax/swing/text/JTextComponent.KeyBinding.html">JTextComponent.KeyBinding</A>[] bindings, <A HREF="../../../javax/swing/Action.html">Action</A>[] actions)</CODE><BR> Loads a keymap with a bunch of bindings.</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>Keymap.</B><B><A HREF="../../../javax/swing/text/Keymap.html#setDefaultAction(javax.swing.Action)">setDefaultAction</A></B>(<A HREF="../../../javax/swing/Action.html">Action</A> a)</CODE><BR> Set the default action to fire if a key is typed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A>[]</CODE></FONT></TD><TD><CODE><B>Keymap.</B><B><A HREF="../../../javax/swing/text/Keymap.html#getKeyStrokesForAction(javax.swing.Action)">getKeyStrokesForAction</A></B>(<A HREF="../../../javax/swing/Action.html">Action</A> a)</CODE><BR> Fetches the keystrokes that will result in the given action.</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>Keymap.</B><B><A HREF="../../../javax/swing/text/Keymap.html#addActionForKeyStroke(javax.swing.KeyStroke, javax.swing.Action)">addActionForKeyStroke</A></B>(<A HREF="../../../javax/swing/KeyStroke.html">KeyStroke</A> key, <A HREF="../../../javax/swing/Action.html">Action</A> a)</CODE><BR> Adds a binding to the keymap.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../javax/swing/Action.html">Action</A>[]</CODE></FONT></TD><TD><CODE><B>TextAction.</B><B><A HREF="../../../javax/swing/text/TextAction.html#augmentList(javax.swing.Action[], javax.swing.Action[])">augmentList</A></B>(<A HREF="../../../javax/swing/Action.html">Action</A>[] list1, <A HREF="../../../javax/swing/Action.html">Action</A>[] list2)</CODE><BR> Takes one list of commands and augments it with another list of commands.</TD></TR></TABLE> <P><A NAME="javax.swing.text.html"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../javax/swing/Action.html">Action</A> in <A HREF="../../../javax/swing/text/html/package-summary.html">javax.swing.text.html</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Classes in <A HREF="../../../javax/swing/text/html/package-summary.html">javax.swing.text.html</A> that implement <A HREF="../../../javax/swing/Action.html">Action</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/html/HTMLEditorKit.HTMLTextAction.html">HTMLEditorKit.HTMLTextAction</A></B></CODE><BR> An abstract Action providing some convenience methods that may be useful in inserting HTML into an existing document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/html/HTMLEditorKit.InsertHTMLTextAction.html">HTMLEditorKit.InsertHTMLTextAction</A></B></CODE><BR> InsertHTMLTextAction can be used to insert an arbitrary string of HTML into an existing HTML document.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../javax/swing/text/html/package-summary.html">javax.swing.text.html</A> that return <A HREF="../../../javax/swing/Action.html">Action</A></FONT></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>HTMLEditorKit.</B><B><A HREF="../../../javax/swing/text/html/HTMLEditorKit.html#getActions()">getActions</A></B>()</CODE><BR> Fetches the command list for the editor.</TD></TR></TABLE> <P><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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../javax/swing/Action.html"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </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"> PREV NEXT</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Action.html" TARGET="_top"><B>NO FRAMES</B></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/jd
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -