public abstract class ACommand<CONTEXT> extends Object implements ICommand<CONTEXT>, Serializable
| Constructor and Description |
|---|
ACommand(String name,
CONTEXT context,
IChange... changes)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
CONTEXT |
getContext() |
String |
getName() |
void |
run() |
void |
setContext(CONTEXT context) |
String |
toString() |
void |
undo()
undo this command, if already done (through
Runnable.run()). |
public CONTEXT getContext()
getContext in interface ICommand<CONTEXT>public void setContext(CONTEXT context)
setContext in interface ICommand<CONTEXT>context - new context to be set.should only be called inside the framework. if a change-item is null, the
whole context will be set.public void undo()
ICommandRunnable.run()).Copyright © 2012–2021. All rights reserved.