Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix ] 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 ] Distribution Issues

    All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.mac.AppCommandMRJodoc

    java.lang.Object
       |
       +----com.jconfig.mac.AppCommandMRJ
               |
               +----com.jconfig.mac.AppCommandMRJodoc

Summary

    class  AppCommandMRJodoc
         extends com.jconfig.mac.AppCommandMRJ
    {
              // Fields 3
         private static final String copyrightString;
         private Class[] permissibleClasses;
         private Vector theArgs;

              // Constructors 1
         AppCommandMRJodoc();

              // Methods 12
         public void addArg(Object);
         public String asString();
         public void clearArgs();
         String convertArgToString(Object);
         public Object getArg(int);
         public String getCommand();
         public int getMaxNumArgs();
         public int getNumArgs();
         public Class[] getPermissibleArgumentType(int);
         public boolean isNumArgsUnlimited();
         public boolean isSingleInstanceCapable();
         public AppCommand redup();
    }

Corresponds to an 'ODOC' AppleEvent, which opens one or more documents.

Author:
  Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.

Fields

### · copyrightString | Summary | Top

       private static final String copyrightString

### · theArgs | Summary | Top

       private Vector theArgs

> Holds the arguments to this command.

### · permissibleClasses | Summary | Top

       private Class[] permissibleClasses

> The classes which we can take as arguments.

Constructors

### · AppCommandMRJodoc | Summary | Top

       AppCommandMRJodoc()

> Initializes 'permissibleClasses' with String, File, and DiskObject.

Methods

### · redup | Summary | Top

       public AppCommand redup()

> Returns a new AppCommandMRJodoc object.

> Overrides:
>   redup in class AppCommandMRJ
> Implements:
>   redup in interface AppCommand

### · getCommand | Summary | Top

       public String getCommand()

> Returns AppCommand.kAppCommandOpenDoc

> Overrides:
>   getCommand in class AppCommandMRJ
> Implements:
>   getCommand in interface AppCommand

### · asString | Summary | Top

       public String asString()

> Returns AppCommand.kAppCommandOpenDoc

> Overrides:
>   asString in class AppCommandMRJ
> Implements:
>   asString in interface AppCommand

### · getMaxNumArgs | Summary | Top

       public int getMaxNumArgs()

> Always returns -1, meaning an unlimited number

> Overrides:
>   getMaxNumArgs in class AppCommandMRJ
> Implements:
>   getMaxNumArgs in interface AppCommand

### · getPermissibleArgumentType | Summary | Top

       public Class[] getPermissibleArgumentType(int position)

> Copies and returns permissibleClasses.

> Overrides:
>   getPermissibleArgumentType in class AppCommandMRJ
> Implements:
>   getPermissibleArgumentType in interface AppCommand

### · addArg | Summary | Top

       public void addArg(Object arg)

> If 'arg' is a permissible type, adds it to our list of arguments.

> Overrides:
>   addArg in class AppCommandMRJ
> Implements:
>   addArg in interface AppCommand

### · convertArgToString | Summary | Top

       String convertArgToString(Object arg)

> If 'arg' is a String, returns it. If 'arg' is a File or a DiskObject, converts it to a String, and returns the String.

### · getNumArgs | Summary | Top

       public int getNumArgs()

> Returns the size of 'theArgs'

> Overrides:
>   getNumArgs in class AppCommandMRJ
> Implements:
>   getNumArgs in interface AppCommand

### · getArg | Summary | Top

       public Object getArg(int which)

> Return the specified argument, or null if 'which' is out of bounds.

> Overrides:
>   getArg in class AppCommandMRJ
> Implements:
>   getArg in interface AppCommand

### · clearArgs | Summary | Top

       public void clearArgs()

> Remove any arguments previously added.

> Overrides:
>   clearArgs in class AppCommandMRJ
> Implements:
>   clearArgs in interface AppCommand

### · isNumArgsUnlimited | Summary | Top

       public boolean isNumArgsUnlimited()

> Always returns true.

> Overrides:
>   isNumArgsUnlimited in class AppCommandMRJ
> Implements:
>   isNumArgsUnlimited in interface AppCommand

### · isSingleInstanceCapable | Summary | Top

       public boolean isSingleInstanceCapable()

> Always returns true.

> Overrides:
>   isSingleInstanceCapable in class AppCommandMRJ
> Implements:
>   isSingleInstanceCapable in interface AppCommand

    All Packages  This Package  Class Hierarchy  Class Search  Index

Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7