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

📄 abstractaction.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
                     <A HREF="../../java/lang/Object.html">Object</A>&nbsp;newValue)</PRE><DL><DD>Sets the <code>Value</code> associated with the specified key.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/swing/Action.html#putValue(java.lang.String, java.lang.Object)">putValue</A></CODE> in interface <CODE><A HREF="../../javax/swing/Action.html">Action</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the <code>String</code> that identifies the stored object<DD><CODE>newValue</CODE> - the <code>Object</code> to store using this key<DT><B>See Also: </B><DD><A HREF="../../javax/swing/Action.html#putValue(java.lang.String, java.lang.Object)"><CODE>Action.putValue(java.lang.String, java.lang.Object)</CODE></A></DL></DD></DL><HR><A NAME="isEnabled()"><!-- --></A><H3>isEnabled</H3><PRE>public boolean <B>isEnabled</B>()</PRE><DL><DD>Returns true if the action is enabled.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/swing/Action.html#isEnabled()">isEnabled</A></CODE> in interface <CODE><A HREF="../../javax/swing/Action.html">Action</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the action is enabled, false otherwise<DT><B>See Also: </B><DD><A HREF="../../javax/swing/Action.html#isEnabled()"><CODE>Action.isEnabled()</CODE></A></DL></DD></DL><HR><A NAME="setEnabled(boolean)"><!-- --></A><H3>setEnabled</H3><PRE>public void <B>setEnabled</B>(boolean&nbsp;newValue)</PRE><DL><DD>Enables or disables the action.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/swing/Action.html#setEnabled(boolean)">setEnabled</A></CODE> in interface <CODE><A HREF="../../javax/swing/Action.html">Action</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newValue</CODE> - true to enable the action, false to                  disable it<DT><B>See Also: </B><DD><A HREF="../../javax/swing/Action.html#setEnabled(boolean)"><CODE>Action.setEnabled(boolean)</CODE></A></DL></DD></DL><HR><A NAME="getKeys()"><!-- --></A><H3>getKeys</H3><PRE>public <A HREF="../../java/lang/Object.html">Object</A>[] <B>getKeys</B>()</PRE><DL><DD>Returns an array of <code>Object</code>s which are keys for which values have been set for this <code>AbstractAction</code>, or <code>null</code> if no keys have values set.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of key objects, or <code>null</code> if no			keys have values set<DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)"><!-- --></A><H3>firePropertyChange</H3><PRE>protected void <B>firePropertyChange</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;propertyName,                                  <A HREF="../../java/lang/Object.html">Object</A>&nbsp;oldValue,                                  <A HREF="../../java/lang/Object.html">Object</A>&nbsp;newValue)</PRE><DL><DD>Supports reporting bound property changes.  This method can be called when a bound property has changed and it will send the appropriate <code>PropertyChangeEvent</code> to any registered  <code>PropertyChangeListeners</code>.<DD><DL></DL></DD></DL><HR><A NAME="addPropertyChangeListener(java.beans.PropertyChangeListener)"><!-- --></A><H3>addPropertyChangeListener</H3><PRE>public void <B>addPropertyChangeListener</B>(<A HREF="../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A>&nbsp;listener)</PRE><DL><DD>Adds a <code>PropertyChangeListener</code> to the listener list. The listener is registered for all properties. <p> A <code>PropertyChangeEvent</code> will get fired in response to setting a bound property, e.g. <code>setFont</code>, <code>setBackground</code>, or <code>setForeground</code>. Note that if the current component is inheriting its foreground,  background, or font from its container, then no event will be  fired in response to a change in the inherited property.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/swing/Action.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A></CODE> in interface <CODE><A HREF="../../javax/swing/Action.html">Action</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - The <code>PropertyChangeListener</code> to be added<DT><B>See Also: </B><DD><A HREF="../../javax/swing/Action.html#addPropertyChangeListener(java.beans.PropertyChangeListener)"><CODE>Action.addPropertyChangeListener(java.beans.PropertyChangeListener)</CODE></A></DL></DD></DL><HR><A NAME="removePropertyChangeListener(java.beans.PropertyChangeListener)"><!-- --></A><H3>removePropertyChangeListener</H3><PRE>public void <B>removePropertyChangeListener</B>(<A HREF="../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A>&nbsp;listener)</PRE><DL><DD>Removes a <code>PropertyChangeListener</code> from the listener list. This removes a <code>PropertyChangeListener</code> that was registered for all properties.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../javax/swing/Action.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A></CODE> in interface <CODE><A HREF="../../javax/swing/Action.html">Action</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the <code>PropertyChangeListener</code> to be removed<DT><B>See Also: </B><DD><A HREF="../../javax/swing/Action.html#removePropertyChangeListener(java.beans.PropertyChangeListener)"><CODE>Action.removePropertyChangeListener(java.beans.PropertyChangeListener)</CODE></A></DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>protected <A HREF="../../java/lang/Object.html">Object</A> <B>clone</B>()                throws <A HREF="../../java/lang/CloneNotSupportedException.html">CloneNotSupportedException</A></PRE><DL><DD>Clones the abstract action. This gives the clone its own copy of the key/value list, which is not handled for you by <code>Object.clone()</code>.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/lang/Object.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../java/lang/Object.html">Object</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.lang.Object</CODE></DD><DD><DL><DT><B>Returns:</B><DD>a clone of this instance.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/CloneNotSupportedException.html">CloneNotSupportedException</A></CODE> - if the object's class does not               support the <code>Cloneable</code> interface. Subclasses               that override the <code>clone</code> method can also               throw this exception to indicate that an instance cannot               be cloned.<DD><CODE><A HREF="../../java/lang/OutOfMemoryError.html">OutOfMemoryError</A></CODE> - if there is not enough memory.<DT><B>See Also: </B><DD><A HREF="../../java/lang/Cloneable.html"><CODE>Cloneable</CODE></A></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AbstractAction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../javax/swing/AbstractButton.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>  &nbsp;&nbsp;<A HREF="AbstractAction.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -