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.
-
copyrightString
-
-
kDontSwitchLayer
- Used with the performCommand() method.
-
dumpInfo(PrintStream, String)
- Writes information about this object to the indicated PrintStream.
-
getAllCommands()
- Returns all the commands which this application can accept.
-
getAppName()
- Returns the name of this application.
-
getCommand(String)
- Returns the indicated command.
-
getCreationDate()
- Returns the creation date of this application.
-
getCreatorCode()
- Returns the Mac-style creator code associated with this application.
-
getFile()
- Returns a File object representing the disk location of this application.
-
getFileTypes(int)
- Returns the set of FileType's which are associated with this application.
-
getIconBundle()
- Returns the IconBundle associated with this application.
-
getInstances()
- Returns the set of all instances of this application currently running.
-
getVersion()
- Returns the VersionInfo object which is associated with this application.
-
performCommand(AppCommand, int)
- Performs the indicated command.
copyrightString
public final static String copyrightString
kDontSwitchLayer
public final static int kDontSwitchLayer
- Used with the performCommand() method.
getAppName
public abstract String getAppName()
- Returns the name of this application.
getCreatorCode
public abstract int getCreatorCode()
- Returns the Mac-style creator code associated with this application.
getIconBundle
public abstract IconBundle getIconBundle()
- Returns the IconBundle associated with this application. May return null if the
application's icons can't be found.
getFile
public abstract File getFile()
- Returns a File object representing the disk location of this application.
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.
getVersion
public abstract VersionInfo getVersion()
- Returns the VersionInfo object which is associated with this application. Returns
null if no version information is available.
getCreationDate
public abstract Date getCreationDate()
- Returns the creation date of this application. May return null if the creation date could
not be determined.
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 application can accept.
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.
getInstances
public abstract AppProcess[] getInstances()
- Returns the set of all instances of this application currently running.
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