Interface COM.tolstoy.jconfig.AppProcess
All Packages Class Hierarchy This Package Previous Next Index
Interface COM.tolstoy.jconfig.AppProcess
- public interface AppProcess
- extends Object
- extends DumpInfo
Represents a currently running instance of an application. Objects of this type are created
using the 'performCommand' method of an AppFile object.
-
copyrightString
-
-
kMaximize
-
See the move() method.
-
kMinimize
-
See the move() method.
-
kMoveToBack
-
See the move() method.
-
kMoveToFront
-
See the move() method.
-
getAllCommands()
- Returns all the commands which this instance can accept.
-
getAppFile()
- Returns the AppFile object from which this object was created.
-
getCommand(String)
- Returns the indicated command.
-
getPlatformData()
- Returns platform-specific data for this process.
-
isRunning()
- Indicates whether this instance is indeed still running.
-
move(AppProcess, int, int)
- Used to minimize, maximize this process, or send it in front of or behind other processes, if possible.
-
performCommand(AppCommand, int)
- Performs the indicated command.
copyrightString
public final static String copyrightString
kMoveToFront
public final static int kMoveToFront
- See the move() method.
kMoveToBack
public final static int kMoveToBack
- See the move() method.
kMinimize
public final static int kMinimize
- See the move() method.
kMaximize
public final static int kMaximize
- See the move() method.
getAppFile
public abstract AppFile getAppFile()
- Returns the AppFile object from which this object was created.
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.
getAllCommands
public abstract AppCommand[] getAllCommands()
- Returns all the commands which this instance can accept.
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
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
isRunning
public abstract boolean isRunning()
- Indicates whether this instance is indeed still running.
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.
All Packages Class Hierarchy This Package Previous Next Index