Interface COM.tolstoy.jconfig.AppFile
All Packages Class Hierarchy This Package Previous Next Index
Interface COM.tolstoy.jconfig.AppFile
- public interface AppFile
- extends Object
- extends DiskFile
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
-
-
k32BitCompatible
- A Mac-specific flag returned by the getSizeFlags method.
-
k68kExe
- Returned by the getExecutableType method.
-
kCanBackground
- A Mac-specific flag returned by the getSizeFlags method.
-
kCFM68Exe
- Returned by the getExecutableType method.
-
kDeskAccessory
- A Mac-specific flag returned by the getSizeFlags method.
-
kDisplayManagerAware
- A Mac-specific flag returned by the getSizeFlags method.
-
kDoesActivateOnFGSwitch
- A Mac-specific flag returned by the getSizeFlags method.
-
kDontSwitchLayer
- Used with the performCommand() method.
-
kDOSExe
- Returned by the getExecutableType method.
-
kGetAppDiedMsg
- A Mac-specific flag returned by the getSizeFlags method.
-
kGetFrontClicks
- A Mac-specific flag returned by the getSizeFlags method.
-
kHighLevelEventAware
- A Mac-specific flag returned by the getSizeFlags method.
-
kLocalAndRemoteHLEvents
- A Mac-specific flag returned by the getSizeFlags method.
-
kMultiLaunch
- A Mac-specific flag returned by the getSizeFlags method.
-
kNeedSuspendResume
- A Mac-specific flag returned by the getSizeFlags method.
-
kOnlyBackground
- A Mac-specific flag returned by the getSizeFlags method.
-
kOS216Exe
- Returned by the getExecutableType method.
-
kPEFExe
- Returned by the getExecutableType method.
-
kPIFExe
- Returned by the getExecutableType method.
-
kPOSIXExe
- Returned by the getExecutableType method.
-
kStationeryAware
- A Mac-specific flag returned by the getSizeFlags method.
-
kUnknownExe
- Returned by the getExecutableType method.
-
kUseTextEditServices
- A Mac-specific flag returned by the getSizeFlags method.
-
kWin32Exe
- Returned by the getExecutableType method.
-
kWOWExe
- Returned by the getExecutableType method.
-
getAllCommands()
- Returns all the commands which this application can accept.
-
getCommand(String)
- Returns the indicated command.
-
getExecutableType()
- Indicates the architecture of this application.
-
getFileTypes(int)
- Returns the set of FileType's which are associated with this application.
-
getIconBundle(FileType)
- Returns the IconBundle associated with this application.
-
getInstances()
- Returns the set of all instances of this application currently running.
-
getMinimumPartition()
- Mac-specific method which returns the minimum memory space which an instance of this application
would occupy.
-
getSizeFlags()
- Mac-specific method which returns the 'SIZE' flags for this application.
-
getSuggestedPartition()
- Mac-specific method which returns the suggested memory space which an instance of this application
would occupy.
-
performCommand(AppCommand, int)
- Performs the indicated command.
copyrightString
public final static String copyrightString
kDontSwitchLayer
public final static int kDontSwitchLayer
- Used with the performCommand() method.
kDisplayManagerAware
public final static int kDisplayManagerAware
- A Mac-specific flag returned by the getSizeFlags method.
kUseTextEditServices
public final static int kUseTextEditServices
- A Mac-specific flag returned by the getSizeFlags method.
kStationeryAware
public final static int kStationeryAware
- A Mac-specific flag returned by the getSizeFlags method.
kLocalAndRemoteHLEvents
public final static int kLocalAndRemoteHLEvents
- A Mac-specific flag returned by the getSizeFlags method.
kHighLevelEventAware
public final static int kHighLevelEventAware
- A Mac-specific flag returned by the getSizeFlags method.
k32BitCompatible
public final static int k32BitCompatible
- A Mac-specific flag returned by the getSizeFlags method.
kGetAppDiedMsg
public final static int kGetAppDiedMsg
- A Mac-specific flag returned by the getSizeFlags method.
kGetFrontClicks
public final static int kGetFrontClicks
- A Mac-specific flag returned by the getSizeFlags method.
kOnlyBackground
public final static int kOnlyBackground
- A Mac-specific flag returned by the getSizeFlags method.
kDoesActivateOnFGSwitch
public final static int kDoesActivateOnFGSwitch
- A Mac-specific flag returned by the getSizeFlags method.
kCanBackground
public final static int kCanBackground
- A Mac-specific flag returned by the getSizeFlags method.
kNeedSuspendResume
public final static int kNeedSuspendResume
- A Mac-specific flag returned by the getSizeFlags method.
kMultiLaunch
public final static int kMultiLaunch
- A Mac-specific flag returned by the getSizeFlags method.
kDeskAccessory
public final static int kDeskAccessory
- A Mac-specific flag returned by the getSizeFlags method.
kWin32Exe
public final static int kWin32Exe
- Returned by the getExecutableType method.
kDOSExe
public final static int kDOSExe
- Returned by the getExecutableType method.
kWOWExe
public final static int kWOWExe
- Returned by the getExecutableType method.
kPIFExe
public final static int kPIFExe
- Returned by the getExecutableType method.
kPOSIXExe
public final static int kPOSIXExe
- Returned by the getExecutableType method.
kOS216Exe
public final static int kOS216Exe
- Returned by the getExecutableType method.
kPEFExe
public final static int kPEFExe
- Returned by the getExecutableType method.
kCFM68Exe
public final static int kCFM68Exe
- Returned by the getExecutableType method.
k68kExe
public final static int k68kExe
- Returned by the getExecutableType method.
kUnknownExe
public final static int kUnknownExe
- Returned by the getExecutableType method.
getIconBundle
public abstract IconBundle getIconBundle(FileType ft)
- Returns the IconBundle associated with this application. May return null if the
application's icons can't be found.
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.
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.
getExecutableType
public abstract int getExecutableType()
- Indicates the architecture of this application. Returns one of the preceding constants.
getSizeFlags
public abstract int getSizeFlags()
- Mac-specific method which returns the 'SIZE' flags for this application.
getMinimumPartition
public abstract int getMinimumPartition()
- Mac-specific method which returns the minimum memory space which an instance of this application
would occupy.
getSuggestedPartition
public abstract int getSuggestedPartition()
- Mac-specific method which returns the suggested memory space which an instance of this application
would occupy.
All Packages Class Hierarchy This Package Previous Next Index