Module platform

Class LockProtectedCommand

java.lang.Object
de.grogra.pf.ui.util.LockProtectedCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
Job, RGG.Apply

public abstract class LockProtectedCommand extends Object implements Command
  • Field Details

    • resource

      protected Lockable resource
    • write

      protected boolean write
    • flags

      protected int flags
  • Constructor Details

    • LockProtectedCommand

      public LockProtectedCommand(Lockable resource, boolean write, int flags)
  • Method Details

    • run

      public void run(Object object, Context ctx)
      Description copied from interface: Command
      Performs the actions of this command. This method is invoked by the JobManager 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.
      Specified by:
      run in interface Command
      Parameters:
      object - an argument
      ctx - a context
    • getCommandName

      public String getCommandName()
      Description copied from interface: Command
      Returns a name which can be used in the graphical user interface to represent this command.
      Specified by:
      getCommandName in interface Command
      Returns:
      this commands's name
    • runImpl

      protected abstract void runImpl(Object arg, Context ctx, Lock lock)
    • done

      protected void done(Context c)