|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.denova.JExpress.Installer.CustomInstaller
public class CustomInstaller
Interface to the installer for custom classes.
| Field Summary |
|---|
| Fields inherited from interface com.denova.JExpress.Installer.InstallerConstants |
|---|
NoticeFont, SmallFont, TitleFont |
| Constructor Summary | |
|---|---|
CustomInstaller()
|
|
| Method Summary | |
|---|---|
static void |
exit()
Exit the installer. |
static boolean |
extractFile(java.lang.String filename)
Extracts a file to the installer's temporary directory. |
static void |
fatalError(java.lang.String errorMessage)
Show the error message and exit. |
static java.awt.Color |
getBackgroundColor()
Get the color used for the background of panels, buttons, and dialogs. |
static java.lang.String |
getImageFilename()
Get the filename for the image displayed in the installer. |
static java.lang.String |
getLanguage()
Returns the language the installer is using. |
static java.lang.String |
getLocalizedString(java.lang.String key)
Returns a localized string from the installer's primary resources. |
static java.lang.String |
getLocalizedString(java.lang.String key,
java.lang.String variable)
Returns a localized string from the installer's primary resources. |
static java.lang.String |
getLocalizedString(java.lang.String key,
java.lang.String[] variables)
Returns a localized string from the installer's primary resources. |
static javax.swing.JPanel |
getLogoPanel()
Returns the panel for the installer's image if the image is not in the background. |
static Marquee |
getMarquee()
Gets the marquee window. |
static java.lang.String |
getProductUrl()
Get the URL for the product. |
static java.awt.Color |
getProgressBarColor()
Get the color used for progress bars. |
static boolean |
getResourceAsFile(java.lang.String filename)
Looks through the classpath for the filename and saves it to a file in the installer's temporary directory. |
static boolean |
getResourceAsFile(java.lang.String filename,
java.lang.String pathname)
Looks through the classpath for the filename and saves it to the pathname. |
static java.io.InputStream |
getResourceAsStream(java.lang.String name)
Opens an input stream to the resource. |
static java.lang.String |
getStartDirectory()
Returns the installer's starting directory. |
static java.lang.String |
getTempDirectory()
Returns the installer's temporary directory. |
static java.awt.Color |
getTextColor()
Get the color used for text items. |
static java.lang.String |
getUserClasspath()
Returns the classpath the installer uses to configure the user's classpath. |
static java.lang.String |
installerCreatedBy()
Get the program that created the installer. |
static boolean |
isOpaque()
Report if the background is opaque or not. |
static boolean |
launchApp(java.lang.String appName,
java.awt.Container parent)
Start a launcher. |
static void |
log(java.lang.String msg)
Log a message to installer.log, if it exists. |
static void |
logError(java.lang.String msg)
Log an error to the installer's error log. |
static void |
logException(java.lang.String msg,
java.lang.Exception t)
Log an exception to installer.log, if the log exists. |
static void |
logToInstaller(java.lang.String msg)
Deprecated. use log() |
static boolean |
makeInstallerSilent()
Make installer silent. |
static boolean |
multipleComponents()
Returns true if installing multiple install components. |
static boolean |
multipleDirInstall()
Returns true if installing to multiple directories. |
static boolean |
multipleFileGroups()
Returns true if installing multiple install types. |
static boolean |
needSeparateDataDir()
Returns true if need separate data dir. |
protected static boolean |
okToRun()
Check if it's ok to run with CopyCheq server. |
static void |
repackWindow()
Repack the window. |
static void |
setInstallerVisible(boolean visible)
Set installer visible if true. |
static void |
setVisible(boolean visible)
Set installer's panel visible if true. |
static boolean |
singleInstallType()
Returns true if installing a single multiple install type installer. |
static void |
updateMarquee(Marquee marquee)
Update the marquee window. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomInstaller()
| Method Detail |
|---|
public static boolean multipleDirInstall()
public static boolean multipleFileGroups()
public static boolean multipleComponents()
public static boolean singleInstallType()
public static java.lang.String getUserClasspath()
Adjusts the classpath to use the local file separator.
public static javax.swing.JPanel getLogoPanel()
You can use this method to replace the image and create billboards. Don't forget to empty the container before you add your own image. If your image is a different size, you'll want to revalidate, etc. We strongly recommend that you always use the same size image.
public static void repackWindow()
public static boolean isOpaque()
public static java.awt.Color getBackgroundColor()
public static java.awt.Color getProgressBarColor()
public static java.awt.Color getTextColor()
public static Marquee getMarquee()
public static void updateMarquee(Marquee marquee)
marquee - windowpublic static boolean makeInstallerSilent()
public static boolean getResourceAsFile(java.lang.String filename)
Returns true if successful.
filename -
public static boolean getResourceAsFile(java.lang.String filename,
java.lang.String pathname)
filename: name of file to get
pathname: full pathname to save file, not just the directory
Returns true if successful.
filename - pathname -
public static java.io.InputStream getResourceAsStream(java.lang.String name)
name: name of the resource
Returns an input stream.
name -
public static boolean extractFile(java.lang.String filename)
filename: the name of the file to extract
Returns true if successful.
The file is automatically deleted at the end of the installation. If any of your custom panels use other files, such as images or property files, then you must extract them before your custom class needs them.
filename -
public static java.lang.String getImageFilename()
public static java.lang.String getStartDirectory()
You usually don't want to write anything in the starting directory because you don't knoow if the installer started on a write-protected CD ROM.
public static java.lang.String getTempDirectory()
If the installer is not using a temporary directory, then it returns a blank.
public static java.lang.String getLanguage()
public static java.lang.String getLocalizedString(java.lang.String key)
key: the attribute for the value
key -
public static java.lang.String getLocalizedString(java.lang.String key,
java.lang.String variable)
key: the attribute for the value variable: a variable used to replace the literal %VARIABLE%
key - variable -
public static java.lang.String getLocalizedString(java.lang.String key,
java.lang.String[] variables)
key: the attribute for the value variables: list of variables used to replace the literal %VARIABLE%
key - variables -
public static void setVisible(boolean visible)
visible - if true, panel is made visible; otherwise not.public static void setInstallerVisible(boolean visible)
visible - if true, installer is made visible; otherwise not.public static java.lang.String installerCreatedBy()
public static boolean launchApp(java.lang.String appName,
java.awt.Container parent)
public static java.lang.String getProductUrl()
public static boolean needSeparateDataDir()
public static void exit()
public static void fatalError(java.lang.String errorMessage)
errorMessage - message to display, if not silent error.public static void logToInstaller(java.lang.String msg)
msg - message to recordpublic static void log(java.lang.String msg)
msg - message to record
See the manual about diagnostic logs (Manual/Diagnostics/inslogs.html).public static void logError(java.lang.String msg)
msg - message about error.
public static void logException(java.lang.String msg,
java.lang.Exception t)
msg - message to recordt - the exception
See the manual about diagnostic logs (Manual/Diagnostics/inslogs.html).protected static boolean okToRun()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||