action.html
来自「java GUI编程」· HTML 代码 · 共 496 行 · 第 1/2 页
HTML
496 行
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="Action(java.lang.String, java.lang.String)"><!-- --></A><H3>
Action</H3>
<PRE>
public <B>Action</B>(java.lang.String verb, java.lang.String command)</PRE>
<DL>
<DD>Constructor of an <code>Action</code> object. <p> On Microsoft Windows platforms, the verb could be "open", "edit", or any given name; on Gnome/UNIX platforms, it could only be "open", other verbs will be ignored.
<P>
<DT><B>Parameters:</B><DD><CODE>verb</CODE> - a given verb string.<DD><CODE>command</CODE> - a given command string.</DL>
<HR>
<A NAME="Action(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
Action</H3>
<PRE>
public <B>Action</B>(java.lang.String verb, java.lang.String command, java.lang.String desc)</PRE>
<DL>
<DD>Constructor of an <code>Action</code> object.
<P>
<DT><B>Parameters:</B><DD><CODE>verb</CODE> - a given verb value.<DD><CODE>command</CODE> - a given command value.<DD><CODE>desc</CODE> - a given description value.</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="getDescription()"><!-- --></A><H3>
getDescription</H3>
<PRE>
public java.lang.String <B>getDescription</B>()</PRE>
<DL>
<DD>Returns the value of the description field.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the value of the description field.</DL>
</DD>
</DL>
<HR>
<A NAME="setDescription(java.lang.String)"><!-- --></A><H3>
setDescription</H3>
<PRE>
public void <B>setDescription</B>(java.lang.String description)</PRE>
<DL>
<DD>Sets the description field. <P> This field is optional for a valid action, and only used for Microsoft Windows platforms.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>description</CODE> - a given description value.</DL>
</DD>
</DL>
<HR>
<A NAME="getVerb()"><!-- --></A><H3>
getVerb</H3>
<PRE>
public java.lang.String <B>getVerb</B>()</PRE>
<DL>
<DD>Returns the value of the verb field.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the value of the verb field.</DL>
</DD>
</DL>
<HR>
<A NAME="setVerb(java.lang.String)"><!-- --></A><H3>
setVerb</H3>
<PRE>
public void <B>setVerb</B>(java.lang.String verb)</PRE>
<DL>
<DD>Sets the verb field.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>verb</CODE> - a given verb value.</DL>
</DD>
</DL>
<HR>
<A NAME="getCommand()"><!-- --></A><H3>
getCommand</H3>
<PRE>
public java.lang.String <B>getCommand</B>()</PRE>
<DL>
<DD>Returns the value of the command field.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the value of the command field.</DL>
</DD>
</DL>
<HR>
<A NAME="setCommand(java.lang.String)"><!-- --></A><H3>
setCommand</H3>
<PRE>
public void <B>setCommand</B>(java.lang.String command)</PRE>
<DL>
<DD>Sets the command field.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>command</CODE> - a given command value.</DL>
</DD>
</DL>
<HR>
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object otherObj)</PRE>
<DL>
<DD>Overrides the same method of <code>java.lang.Object</code>. <p> Determines whether or not two actions are equal. Two instances of <code>Action</code> are equal if the values of all the fields are the same.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>otherObj</CODE> - an object to be compared with this <code>Action</code><DT><B>Returns:</B><DD><code>true</code> if the object to be compared is an instance of <code>Action</code> and has the same values; <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>
<A NAME="hashCode()"><!-- --></A><H3>
hashCode</H3>
<PRE>
public int <B>hashCode</B>()</PRE>
<DL>
<DD>Overrides the same method of <code>java.lang.Object</code>. <p> Returns the hashcode for this <code>Action</code>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a hash code for this <code>Action<code>.</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Overrides the same method of <code>java.lang.Object</code>. <p> Returns a <code>String</code> that represents the value of this <code>Action</code>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a string representation of this <code>Action</code>.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<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/Action.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-all.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>
JDIC API V2006 Release 0308</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../../org/jdesktop/jdic/filetypes/Association.html" title="class in org.jdesktop.jdic.filetypes"><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="Action.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <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>
<A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<font size=-1>For more information and documentation on JDIC, see <a href=https://jdic.dev.java.net>JDIC website</a>. <p>That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, working code examples, license terms and bug report information. <p>Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href= https://jdic.dev.java.net/source/browse/jdic/src/COPYING>license terms</a>. </font>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?