|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.util.command.AbstractCommand
com.miginfocom.util.command.DefaultCommand
public class DefaultCommand
A generic command that can be interpreted by any class. The values of the different fields in the command is a loose contract between the command specifier and the executor.
Interactor,
AbstractInteractionBroker,
Serialized Form| Constructor Summary | |
|---|---|
DefaultCommand()
Constructs a command which has no command string. |
|
DefaultCommand(java.lang.Object id,
PropertyKey cmd,
PropertyKey property,
java.lang.Object value,
java.lang.String target)
Constructor. |
|
DefaultCommand(java.lang.Object id,
java.lang.String cmd,
java.lang.String property,
java.lang.Object value,
java.lang.String target)
Deprecated. For backwards compatibility. Don't use. |
|
DefaultCommand(PropertyKey cmd,
PropertyKey property,
java.lang.Object value,
java.lang.String target)
Constructor. |
|
DefaultCommand(java.lang.String cmd,
java.lang.String property,
java.lang.Object value,
java.lang.String target)
Deprecated. For backwards compatibility. Don't use. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Compares id. |
java.lang.Object |
execute()
Returns null and does nothing. |
PropertyKey |
getCommandKey()
Returns the command. |
Command[] |
getCommands()
Overridden to return this as the only command. |
PropertyKey |
getPropertyKey()
Returns the property. |
java.lang.String |
getTarget()
Returns the target name for the command. |
java.lang.Object |
getValue()
Return the value that belong to the property. |
java.lang.String |
toString()
|
| Methods inherited from class com.miginfocom.util.command.AbstractCommand |
|---|
createUniqeID, getID, isEnabled, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCommand()
execute() if there are no command string.
public DefaultCommand(java.lang.String cmd,
java.lang.String property,
java.lang.Object value,
java.lang.String target)
public DefaultCommand(PropertyKey cmd,
PropertyKey property,
java.lang.Object value,
java.lang.String target)
cmd - The command.property - The property name. E.g. "land"value - The value that belong to the property. E.g. "Sweden"target - The target name for the command. E.g. "browserSetting"DefaultInteractionBroker
public DefaultCommand(java.lang.Object id,
java.lang.String cmd,
java.lang.String property,
java.lang.Object value,
java.lang.String target)
public DefaultCommand(java.lang.Object id,
PropertyKey cmd,
PropertyKey property,
java.lang.Object value,
java.lang.String target)
cmd - The command.id - The is for this command. Not null.property - The property.value - The value that belong to the property. E.g. "Sweden"target - The target name for the command. E.g. "browserSetting"DefaultInteractionBroker| Method Detail |
|---|
public Command[] getCommands()
this as the only command.
getCommands in interface CommandSetthis in an array.public PropertyKey getCommandKey()
null and if so the only this that should be done is calling
execute().
public PropertyKey getPropertyKey()
null.public java.lang.Object getValue()
null.public java.lang.String getTarget()
null.public java.lang.Object execute()
null and does nothing.
execute in interface Commandnull.public boolean equals(java.lang.Object o)
AbstractCommand
equals in class AbstractCommandpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||