GUI Commands User GuideVersion 2.1 |
||
Reflection CommandThe
public class Target
{
public void performTask()
{
...
}
}
Target target = new Target();
// create a command that will execute target.performTask()
command = new ReflectionCommand("myCommandId", target, "performTask");
You can optionally implement
Since 2.1 you can also use annotations
to create and bind commands from existing methods.
|
||