Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix · OSX ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix · OSX ] Distribution Issues

    All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.mac.AppProcessMRJ

    java.lang.Object
       |
       +----com.jconfig.mac.AppProcessMRJ

Summary

    class  AppProcessMRJ
         extends java.lang.Object
         implements com.jconfig.AppProcess
    {
              // Fields 7
         private AppFile appFile;
         private boolean bIsRunning;
         private static final String copyrightString;
         private static final int kNumCommands;
         private int[] ourPSN;
         private AppCommand[] theCommands;
         private AppCommandWatcher watcher;

              // Constructors 1
         AppProcessMRJ(AppFile, int[], AppCommandWatcher);

              // Methods 9
         public void dumpInfo(PrintStream, String);
         public AppCommand[] getAllCommands();
         public AppFile getAppFile();
         private String[] getArgsFromCommand(AppCommand);
         public AppCommand getCommand(String);
         public int[] getPlatformData();
         public boolean isRunning();
         public int move(AppProcess, int, int);
         public int performCommand(AppCommand, int);
    }

Represents a Mac process.

Author:
  Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.

Fields

### · copyrightString | Summary | Top

       private static final String copyrightString

### · appFile | Summary | Top

       private AppFile appFile

> The AppFile from which this process was created.

### · theCommands | Summary | Top

       private AppCommand[] theCommands

> The commands this process can perform

### · watcher | Summary | Top

       private AppCommandWatcher watcher

> Watches commands sent to this process.

### · ourPSN | Summary | Top

       private int[] ourPSN

> The PSN of this process.

### · bIsRunning | Summary | Top

       private boolean bIsRunning

> Are we still running?

### · kNumCommands | Summary | Top

       private static final int kNumCommands

Constructors

### · AppProcessMRJ | Summary | Top

       AppProcessMRJ(AppFile af,
                     int[] psn,
                     AppCommandWatcher acw)

> Create using the PSN of the process The process is created with three commands: open app, open doc, and print doc.

> Parameter | Description
> af | the AppFile corresponding to this process
> psn | the PSN, the low int of the PSN at 'AppUtilsMRJ.kPSNLoOffset', and the high int at 'AppUtilsMRJ.kPSNHiOffset'
> acw | an object which will be called when messages are sent to this process.

Methods

### · getAppFile | Summary | Top

       public AppFile getAppFile()

> Returns the AppFile from which this process was created.

> Implements:
>   getAppFile in interface AppProcess

### · getCommand | Summary | Top

       public AppCommand getCommand(String commandName)

> Search through our cammands, and return a match if found.

> Implements:
>   getCommand in interface AppProcess

### · getAllCommands | Summary | Top

       public AppCommand[] getAllCommands()

> Returns our three built-in commands.

> Implements:
>   getAllCommands in interface AppProcess

### · performCommand | Summary | Top

       public int performCommand(AppCommand command,
                                 int flags)

> If the command is one of our built-in types, launch the app using the command's arguments, if any. If the app launched OK, create an AppProcessMRJ using the PSN of the process. The process will be added to our list of processes created from this app.

> Implements:
>   performCommand in interface AppProcess

### · move | Summary | Top

       public 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.

> Parameter | Description
> fromProcess | reserved; set to null
> selector | one of the values defined in AppProcess.java: APP_MOVE_TOFRONT, APP_MOVE_TOBACK, APP_MOVE_MINIMIZE, APP_MOVE_MAXIMIZE
> flags | reserved; set to 0

> Implements:
>   move in interface AppProcess

### · isRunning | Summary | Top

       public boolean isRunning()

> When this object is created, bIsRunning is set to true. This method checks whether this process is still running, sets bIsRunning appropriately, and returns bIsRunning. If bIsRunning was previously set to false, we just return false: i.e., once the process stops running, we assume it can't be restarted.

> Implements:
>   isRunning in interface AppProcess

### · getPlatformData | Summary | Top

       public int[] getPlatformData()

> Returns the PSN of this process, the low int of the PSN at 'AppUtilsMRJ.kPSNLoOffset', and the high int at 'AppUtilsMRJ.kPSNHiOffset' of the returned array.

> Implements:
>   getPlatformData in interface AppProcess

### · getArgsFromCommand | Summary | Top

       private String[] getArgsFromCommand(AppCommand command)

> Returns an array of Strings created from the arguments to 'command'

### · dumpInfo | Summary | Top

       public void dumpInfo(PrintStream ps,
                            String indent)

    All Packages  This Package  Class Hierarchy  Class Search  Index

Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7