|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mospace.swing.ExtensionInstaller
public class ExtensionInstaller
Description of the Class
| Field Summary | |
|---|---|
protected Component |
parent
|
| Constructor Summary | |
|---|---|
ExtensionInstaller(Component parent)
Constructs a new ExtensionInstaller. |
|
| Method Summary | |
|---|---|
protected boolean |
ask(String question,
String title)
Asks the user to answer yes or no to the given question. |
static boolean |
canWrite(File test)
Tests whether we can write to the given file or directory. |
File |
getFallbackTargetDirectory()
Returns this installer's fallback target directory. |
File |
getTargetDirectory()
Returns the value of the target directory property. |
String |
getWritableExtensionDirectory()
|
boolean |
installExtension(File extjar)
Installs a Java extension. |
boolean |
installExtension(File extjar,
ClassLoaderProvider clp)
|
boolean |
installExtension(File zip,
String extjars)
Installs a Java extension contained in a zip file. |
boolean |
installExtension(File zip,
String extjars,
ClassLoaderProvider clp)
|
static boolean |
isTemporary(File file)
Deprecated. use DefaultClassLoaderProvider.isTemporary(java.io.File)
instead. |
protected File |
queryFile(String message,
String title,
int selectionmode)
Asks the user to provide a File path. |
void |
setFallbackTargetDirectory(File dir)
Sets this installer's fallback target directory. |
void |
setTargetDirectory(File dir)
Sets this installer's target directory. |
protected void |
warn(String message,
String title)
Displays a warning dialog with the given title and message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Component parent
| Constructor Detail |
|---|
public ExtensionInstaller(Component parent)
parent - a parent component for dialogs opened by this installer| Method Detail |
|---|
public static boolean isTemporary(File file)
DefaultClassLoaderProvider.isTemporary(java.io.File)
instead.
public File getTargetDirectory()
public void setTargetDirectory(File dir)
dir - the new value for the target directory property
IllegalArgumentException - if dir exists and is not a directorygetTargetDirectory()public void setFallbackTargetDirectory(File dir)
dir - the new value for the fallback target directory
IllegalArgumentException - if dir exists and is not a directorygetTargetDirectory()public File getFallbackTargetDirectory()
getTargetDirectory()public String getWritableExtensionDirectory()
null
if the user cancelled the dialogpublic static boolean canWrite(File test)
test - the file to test
protected File queryFile(String message,
String title,
int selectionmode)
message - the message text of the input dialog.title - the title of the input dialogselectionmode - one of JFileChooser.FILES_ONLY,
FileChooser.DIRECTORIES_ONLY and JFileChooser.FILES_AND_DIRECTORIES
null if the user cancelled the
dialog.
protected void warn(String message,
String title)
message - the warning messagetitle - the dialog title
protected boolean ask(String question,
String title)
question - the dialog messagetitle - the dialog title
public boolean installExtension(File extjar)
extjar - the jar file containing the extension classes you want to
install
public boolean installExtension(File extjar,
ClassLoaderProvider clp)
public boolean installExtension(File zip,
String extjars)
zip - the zip archive that contains the extension jar fileextjars - the path to the extension jar file relative to the zip root
public boolean installExtension(File zip,
String extjars,
ClassLoaderProvider clp)
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||