Interface COM.tolstoy.jconfig.AppProcess
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface COM.tolstoy.jconfig.AppProcess

public interface AppProcess
extends Object
Represents a currently running instance of an application. Objects of this type are created using the 'performCommand' method of an AppFile object.

Variable Index

 o copyrightString
 o kMaximize
See the move() method.
 o kMinimize
See the move() method.
 o kMoveToBack
See the move() method.
 o kMoveToFront
See the move() method.

Method Index

 o dumpInfo(PrintStream, String)
Writes information about this object to the indicated PrintStream.
 o getAllCommands()
Returns all the commands which this instance can accept.
 o getAppFile()
Returns the AppFile object from which this object was created.
 o getCommand(String)
Returns the indicated command.
 o getPlatformData()
Returns platform-specific data for this process.
 o isRunning()
Indicates whether this instance is indeed still running.
 o move(AppProcess, int, int)
Used to minimize, maximize this process, or send it in front of or behind other processes, if possible.
 o performCommand(AppCommand, int)
Performs the indicated command.

Variables

 o copyrightString
  public final static String copyrightString
 o kMoveToFront
  public final static int kMoveToFront
See the move() method.
 o kMoveToBack
  public final static int kMoveToBack
See the move() method.
 o kMinimize
  public final static int kMinimize
See the move() method.
 o kMaximize
  public final static int kMaximize
See the move() method.

Methods

 o getAppFile
  public abstract AppFile getAppFile()
Returns the AppFile object from which this object was created.
 o getCommand
  public abstract AppCommand getCommand(String commandName)
Returns the indicated command. The 'commandName' argument is one of the constants defined in the AppCommand interface. If this instance cannot accept commands of the indicated type, null is returned.
After retrieving a command using this method, you can add arguments to it, if desired, and then pass the command to the 'performCommand' method to execute the command.
 o getAllCommands
  public abstract AppCommand[] getAllCommands()
Returns all the commands which this instance can accept.
 o performCommand
  public abstract int performCommand(AppCommand command,
                                     int flags)
Performs the indicated command. If the command is not one of those recognized by this application, an IllegalArgumentException exception is thrown. Returns an error code; if this is non-zero, an error occurred.
Parameters:
flags - reserved; set to 0
 o move
  public abstract int move(AppProcess fromProcess,
                           int selector,
                           int flags)
Used to minimize, maximize this process, or send it in front of or behind other processes, if possible.
Parameters:
fromProcess - reserved; set to null
selector - one of the values: kMoveToFront, kMoveToBack, kMinimize, kMaximize
flags - reserved; set to 0
 o isRunning
  public abstract boolean isRunning()
Indicates whether this instance is indeed still running.
 o getPlatformData
  public abstract int[] getPlatformData()
Returns platform-specific data for this process.
On MRJ/PowerMac, the return array contains the ProcessSerialNumber for this process, lowLongOfPSN in the first element of the array, highLongOfPSN in the second.
On MS VM/Win95, the return array contains five 32-bit values: the first element of the array contains the HWND for the main window of the main thread of the process, and the next four elements contain the PROCESS_INFORMATION struct from the call to CreateProcess, with 'hProcess' at the second element of the array, etc.
Other platforms: TBA.
 o dumpInfo
  public abstract void dumpInfo(PrintStream ps,
                                String indent)
Writes information about this object to the indicated PrintStream. Each line will be preceded with the 'indent' argument.

All Packages  Class Hierarchy  This Package  Previous  Next  Index