de.grogra.pf.ui.util
public abstract class LockProtectedCommand extends java.lang.Object implements Command
| Modifier and Type | Field and Description |
|---|---|
protected int |
flags |
protected Lockable |
resource |
protected boolean |
write |
| Constructor and Description |
|---|
LockProtectedCommand(Lockable resource,
boolean write,
int flags) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
done(Context c) |
java.lang.String |
getCommandName()
Returns a name which can be used in the graphical user interface
to represent this command.
|
void |
run(java.lang.Object object,
Context ctx)
Performs the actions of this command.
|
protected abstract void |
runImpl(java.lang.Object arg,
Context ctx,
Lock lock) |
protected int flags
protected Lockable resource
protected boolean write
public LockProtectedCommand(Lockable resource, boolean write, int flags)
protected void done(Context c)
public java.lang.String getCommandName()
CommandgetCommandName in interface Commandpublic void run(java.lang.Object object,
Context ctx)
CommandJobManager after the command has been submitted
to the job manager by one of execute, runAt,
or runLater-methods. The arguments info
and context are the arguments which have been provided
as arguments to the JobManager-methods.