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
java.lang.Object | +----com.jconfig.win.DiskFileMSVM | +----com.jconfig.win.AppFileMSVM
Summary |
class AppFileMSVM extends com.jconfig.win.DiskFileMSVM implements com.jconfig.AppFile, com.jconfig.AppCommandWatcher { // Fields 3 private AppFileCommandMgrMSVM commandMgr; private static final String copyrightString; private Vector instances; // Constructors 2 AppFileMSVM(String) throws FileNotFoundException, DiskFileException; AppFileMSVM(String, RegCommandMSVM[]) throws FileNotFoundException, DiskFileException; // Methods 14 public void dumpInfo(PrintStream, String); public String executableTypeToString(int); public AppCommand[] getAllCommands(); public AppCommand getCommand(String); public int getExecutableType(); public FileType[] getFileTypes(int); public IconBundle getIconBundle(FileType); public AppProcess[] getInstances(); public int getMinimumPartition(); public int getSizeFlags(); public int getSuggestedPartition(); public AppProcess performCommand(AppCommand, int); public boolean watchPost(Object, AppCommand, int); public boolean watchPre(Object, AppCommand, int); }
Represents a Windows app, as stored on disk, not a running process.
Fields |
· copyrightString | Summary | Top |
private static final String copyrightString
· commandMgr | Summary | Top |
private AppFileCommandMgrMSVM commandMgr
· instances | Summary | Top |
private Vector instances
Constructors |
· AppFileMSVM | Summary | Top |
AppFileMSVM(String path) throws FileNotFoundException, DiskFileException
Construct from the full path of the application. Throws an exception if the file is not an executable. An instance of 'AppFileCommandMgrMSVM' is created to manage this object's commands.
· AppFileMSVM | Summary | Top |
AppFileMSVM(String path, RegCommandMSVM[] regCommands) throws FileNotFoundException, DiskFileException
Construct from the full path of the application and an array of RegCommandMSVM objects. Throws an exception if the file is not an executable. An instance of 'AppFileCommandMgrMSVM' is created to manage this object's commands.
Methods |
· performCommand | Summary | Top |
public AppProcess performCommand(AppCommand command, int flags)
Calls the AppFileCommandMgrMSVM object to perform the given command. If an AppProcess is created, it is added to this object's list of running processes.
- Implements:
- performCommand in interface AppFile
· getIconBundle | Summary | Top |
public IconBundle getIconBundle(FileType ft)
Returns the IconBundle for this app.
- Implements:
- getIconBundle in interface AppFile
· getFileTypes | Summary | Top |
public FileType[] getFileTypes(int maxToReturn)
Calls through to the AppFileCommandMgrMSVM object.
- Implements:
- getFileTypes in interface AppFile
· getCommand | Summary | Top |
public AppCommand getCommand(String commandName)
Calls through to the AppFileCommandMgrMSVM object.
- Implements:
- getCommand in interface AppFile
· getAllCommands | Summary | Top |
public AppCommand[] getAllCommands()
Calls through to the AppFileCommandMgrMSVM object.
- Implements:
- getAllCommands in interface AppFile
· getInstances | Summary | Top |
public AppProcess[] getInstances()
Returns an array of the AppProcesses created from this object, or null if none were created or if all that were created have been terminated. Does not check that the processes are still running.
- Implements:
- getInstances in interface AppFile
· watchPre | Summary | Top |
public boolean watchPre(Object target, AppCommand command, int flags)
Part of the AppCommandWatcher interface. Always returns false.
- Implements:
- watchPre in interface AppCommandWatcher
· watchPost | Summary | Top |
public boolean watchPost(Object target, AppCommand command, int flags)
Part of the AppCommandWatcher interface. If the command is 'quit', removes the process from the list of processes.
- Implements:
- watchPost in interface AppCommandWatcher
· getExecutableType | Summary | Top |
public int getExecutableType()
Calls native code to retrieve the type of this application.
- Implements:
- getExecutableType in interface AppFile
· getSizeFlags | Summary | Top |
public int getSizeFlags()
Mac-specific. Always returns 0.
- Implements:
- getSizeFlags in interface AppFile
· getMinimumPartition | Summary | Top |
public int getMinimumPartition()
Mac-specific. Always returns 0.
- Implements:
- getMinimumPartition in interface AppFile
· getSuggestedPartition | Summary | Top |
public int getSuggestedPartition()
Mac-specific. Always returns 0.
- Implements:
- getSuggestedPartition in interface AppFile
· executableTypeToString | Summary | Top |
public String executableTypeToString(int f)
Convenience method which converts the return value of getExecutableType() into a string representation.
- Implements:
- executableTypeToString in interface AppFile
· dumpInfo | Summary | Top |
public void dumpInfo(PrintStream ps, String indent)
- Overrides:
- dumpInfo in class DiskFileMSVM
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7