|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpicasso.util.NamedCommand<T>
public class NamedCommand<T>
A command with a name (e.g., to display on a button)
| Constructor Summary | |
|---|---|
NamedCommand(java.lang.String name,
Command<T> action)
Create command with a name and an action. |
|
| Method Summary | |
|---|---|
void |
execute(T target)
Run the given command. |
java.lang.String |
getName()
Returns name of this command. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamedCommand(java.lang.String name,
Command<T> action)
| Method Detail |
|---|
public java.lang.String getName()
public void execute(T target)
execute in interface Command<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||