|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.miginfocom.util.command.AbstractCommand
public abstract class AbstractCommand
Default implementation of a command. Has an id that can optionally be auto generated and will be uniqe for all sublcasses of this class.
| Constructor Summary | |
|---|---|
protected |
AbstractCommand(java.lang.Object id)
Constructor. |
| Method Summary | |
|---|---|
protected static java.lang.Object |
createUniqeID()
Returns a unique id. |
boolean |
equals(java.lang.Object o)
Compares id. |
java.lang.Object |
getID()
Returns the ID. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.miginfocom.util.command.Command |
|---|
execute |
| Constructor Detail |
|---|
protected AbstractCommand(java.lang.Object id)
id - The id. Never null. Use createUniqeID() to get an id if not a particular one should be used.| Method Detail |
|---|
public java.lang.Object getID()
Command
getID in interface Commandnull.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected static java.lang.Object createUniqeID()
Integer increased by one for every call.)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||