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

Interface COM.tolstoy.jconfig.AppFile

public interface AppFile
extends Object
Interface for objects which represent an application's disk file. This does not represent a running instance of the application, only the file. Arrays of objects of this class are returned from the 'getApps()' methods of the FileRegistry class.

Variable Index

 o copyrightString
 o kDontSwitchLayer
Used with the performCommand() method.

Method Index

 o dumpInfo(PrintStream, String)
Writes information about this object to the indicated PrintStream.
 o getAllCommands()
Returns all the commands which this application can accept.
 o getAppName()
Returns the name of this application.
 o getCommand(String)
Returns the indicated command.
 o getCreationDate()
Returns the creation date of this application.
 o getCreatorCode()
Returns the Mac-style creator code associated with this application.
 o getFile()
Returns a File object representing the disk location of this application.
 o getFileTypes(int)
Returns the set of FileType's which are associated with this application.
 o getIconBundle()
Returns the IconBundle associated with this application.
 o getInstances()
Returns the set of all instances of this application currently running.
 o getVersion()
Returns the VersionInfo object which is associated with this application.
 o performCommand(AppCommand, int)
Performs the indicated command.

Variables

 o copyrightString
  public final static String copyrightString
 o kDontSwitchLayer
  public final static int kDontSwitchLayer
Used with the performCommand() method.

Methods

 o getAppName
  public abstract String getAppName()
Returns the name of this application.
 o getCreatorCode
  public abstract int getCreatorCode()
Returns the Mac-style creator code associated with this application.
 o getIconBundle
  public abstract IconBundle getIconBundle()
Returns the IconBundle associated with this application. May return null if the application's icons can't be found.
 o getFile
  public abstract File getFile()
Returns a File object representing the disk location of this application.
 o getFileTypes
  public abstract FileType[] getFileTypes(int maxToReturn)
Returns the set of FileType's which are associated with this application. May return null if no file types could be determined.
Parameters:
maxToReturn - the maximum number of file types requested. The actual number returned may be less or more than the requested amount.
 o getVersion
  public abstract VersionInfo getVersion()
Returns the VersionInfo object which is associated with this application. Returns null if no version information is available.
 o getCreationDate
  public abstract Date getCreationDate()
Returns the creation date of this application. May return null if the creation date could not be determined.
 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 application can accept.
 o performCommand
  public abstract AppProcess performCommand(AppCommand command,
                                            int flags)
Performs the indicated command. If an error occurs, or if that command does not cause the creation of a new instance of the application, returns null. Otherwise, returns an AppProcess object representing the new application instance. To open the instance in the background, OR the flags argument with 'kDontSwitchLayer'. If the command is not one of those recognized by this application, an IllegalArgumentException exception is thrown.
 o getInstances
  public abstract AppProcess[] getInstances()
Returns the set of all instances of this application currently running.
 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