|
JDIC API V2006 Release 0308 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 | |||||||||
java.lang.Objectorg.jdesktop.jdic.filetypes.Action
public class Action
This class represents an action that could be applied to a particular file type.
An action could be added to an Association object as part of an
association.
An Action object is a triple containing a description string,
a verb string and a command string. Common examples of verb are "open", "edit",
and "print". The command string consists of the executable file path followed
by command line parameters.
Association| 构造函数摘要 | |
|---|---|
Action(java.lang.String verb,
java.lang.String command)
Constructor of an Action object. |
|
Action(java.lang.String verb,
java.lang.String command,
java.lang.String desc)
Constructor of an Action object. |
|
| 方法摘要 | |
|---|---|
boolean |
equals(java.lang.Object otherObj)
Overrides the same method of java.lang.Object. |
java.lang.String |
getCommand()
Returns the value of the command field. |
java.lang.String |
getDescription()
Returns the value of the description field. |
java.lang.String |
getVerb()
Returns the value of the verb field. |
int |
hashCode()
Overrides the same method of java.lang.Object. |
void |
setCommand(java.lang.String command)
Sets the command field. |
void |
setDescription(java.lang.String description)
Sets the description field. |
void |
setVerb(java.lang.String verb)
Sets the verb field. |
java.lang.String |
toString()
Overrides the same method of java.lang.Object. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 构造函数详细信息 |
|---|
public Action(java.lang.String verb,
java.lang.String command)
Action object.
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.
verb - a given verb string.command - a given command string.
public Action(java.lang.String verb,
java.lang.String command,
java.lang.String desc)
Action object.
verb - a given verb value.command - a given command value.desc - a given description value.| 方法详细信息 |
|---|
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
This field is optional for a valid action, and only used for Microsoft Windows platforms.
description - a given description value.public java.lang.String getVerb()
public void setVerb(java.lang.String verb)
verb - a given verb value.public java.lang.String getCommand()
public void setCommand(java.lang.String command)
command - a given command value.public boolean equals(java.lang.Object otherObj)
java.lang.Object.
Determines whether or not two actions are equal. Two instances
of Action are equal if the values of all the fields
are the same.
java.lang.Object 中的 equalsotherObj - an object to be compared with this Action
true if the object to be compared is an instance of
Action and has the same values;
false otherwise.public int hashCode()
java.lang.Object.
Returns the hashcode for this Action.
java.lang.Object 中的 hashCodeAction.public java.lang.String toString()
java.lang.Object.
Returns a String that represents the value of this
Action.
java.lang.Object 中的 toStringAction.
|
JDIC API V2006 Release 0308 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 | |||||||||
That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, working code examples, license terms and bug report information.
Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.