public class ConfigApp extends Object implements Serializable, Cloneable
Mission,
SystemUtilities,
Serialized Form| Constructor and Description |
|---|
ConfigApp(String sName,
String sTooltip,
String sImage,
String sContentType,
boolean bShow)
constructor - without specifying command and default parameter
|
ConfigApp(String sName,
String sTooltip,
String sImage,
String sContentType,
boolean bShow,
String workingDir) |
ConfigApp(String sName,
String sTooltip,
String sImage,
String sCommand,
String sDefaultParam,
String sContentType,
boolean bShow)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(String sCommand)
add a command to the list
|
String |
getBackupURL() |
String |
getImagePath() |
String |
getName() |
boolean |
getShow() |
String |
getTooltip() |
boolean |
olderrunApp()
run/execute application,
the first command that can be found shall be executed.
|
boolean |
oldrunApp(String[] parameters,
boolean waitFor,
String workingDirOverride)
run/execute application,
the first command that can be found shall be executed.
|
boolean |
runApp() |
boolean |
runApp(String[] parameters) |
boolean |
runApp(String[] parameters,
boolean waitFor) |
boolean |
runApp(String[] parameters,
boolean waitFor,
String workingDirOverride) |
void |
setBackupURL(String url) |
void |
setConfigParam(String sP) |
void |
setParam(String sParam)
set parameter to be passed upon application invocation
|
String |
toString()
get Mission Point information
|
boolean |
verifyAndOpenFile(String sFile)
verify the content type of the file before trying to open it
e.g. if current ConfigApp object has "image/bmp" and "image/gif"
content type, if a file "c:/hello.bmp" is passed in,
it returns true and try to invoke the application (stored in _lstCommands)
|
public ConfigApp(String sName, String sTooltip, String sImage, String sCommand, String sDefaultParam, String sContentType, boolean bShow)
sName - name of applicationsTooltip - tooltipsImage - location of imagesCommand - command to be invokedsDefaultParam - default file parameter to be passed in as a parameter
when application is invoked.sContentType - content type (delimited by commas)bShow - to determine whether to add to toolbarpublic ConfigApp(String sName, String sTooltip, String sImage, String sContentType, boolean bShow)
sName - name of applicationsTooltip - tootipsImage - location of imagesContentType - content type (delimited by commas)bShow - to determine whether to add to toolbarpublic void addCommand(String sCommand)
sCommand - command to be addedpublic boolean olderrunApp()
public boolean runApp()
public boolean runApp(String[] parameters)
parameters - list of parameter string values to be appended to executable, e.g. a file path/namepublic boolean runApp(String[] parameters, boolean waitFor)
parameters - list of parameter string values to be appended to executable, e.g. a file path/namewaitFor - public boolean oldrunApp(String[] parameters, boolean waitFor, String workingDirOverride)
parameters - list of parameter string values to be appended to executable, e.g. a file path/namewaitFor - workingDirOverride - public boolean runApp(String[] parameters, boolean waitFor, String workingDirOverride)
parameters - list of parameter string values to be appended to executable, e.g. a file path/namewaitFor - workingDirOverride - public boolean verifyAndOpenFile(String sFile)
sFile - file to be openedpublic String toString()
public String getBackupURL()
public String getImagePath()
public String getName()
public boolean getShow()
public String getTooltip()
public void setBackupURL(String url)
url - string for backup urlpublic void setParam(String sParam)
sParam - public void setConfigParam(String sP)
sP -