|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.denova.JExpress.Installer.CustomInstaller
Provides access to the installer from custom installer classes.
| Field Summary |
| Fields inherited from interface com.denova.JExpress.JExpressConstants |
AdvancedEdition, AppDirVariable, AppNameVariable, AutoRunInfFilename, BasedirPlaceHolder, BasePathArgument, BatchFileExtension, BuildDirArgumentNew, BuildDirArgumentOld, BuildPackage, ClassFileExtension, Classpath, ConfigDirectory, ControlUrlPatchableString, CopyFileCommand, Copyright, CopyrightSuffix, CreatedFilename, CrossPlatformExecName, CrossPlatformName, CurrentProjectFilename, CustomClassesCommand, CustomInstallClassesDir, CustomLoaderPrefix, CustomLookAndFeel, CustomUninstallClassesDir, CustomUninstallDir, CustomUpdateClassesDir, DefaultBrowser, DefaultJpegInstallerImage, DefaultJpegUpdaterImage, DefaultLookAndFeel, DefaultOptionsFilename, DefaultProjectFilename, DefaultTempDirectory, DefaultThemePack, DefaultUninstallerIcon, DefaultUpdaterIcon, DefaultUseTooltips, DelDirIfEmptyCommand, DelFileCommand, DelManifestCommand, DelTreeCommand, EditionEnds, EditionStarts, ExampleProject, ExitIconName, ExitLabel, ExtraParametersFlag, FilesList, GzipFileExtension, GzipListFilename, HtmlFileExtension, InstallerDirectory, InstallerMainClass, InstallerPackage, InstallersSubdir, InstallerUrlPatchableString, InstallOptionsFilename, JarFileExtension, JarFileSuffix, JavaAppArguments, JavaAppExecutable, JavaAppProgramName, JavaAppPropertiesAltDir, JavaAppPropertiesFilename, JavaAppStandardArguments, JavaAppStartDir, JavaDirectory, JavaHomeVariable, JExpressAdvancedApp, JExpressApp, JExpressCustomClassName, JExpressInstallerClassName, JExpressJpegLogoFilename, JExpressUninstallerClassName, JExpressUpdaterClassName, JExpressWizardApp, KdePngIconExtension, KdeXpmIconExtension, KeystoreDbFilename, LoaderDirectory, LoaderIsInPackage, LoaderPackage, LoaderPrefixControl, LocalBuildProperty, MacInstallerCommandFilename, MacOsXIconExtension, MetalLookAndFeel, ModernThemePack, NativeInstallerLog, NativeLookAndFeel, NativePropertiesFilename, NativeStartDirFilename, OverwriteFileCommand, PlatformOptionsFilename, PlatformsDirectory, PlatformsParentDir, PlatformVariable, ProgFilesDirVariable, ProjectFileSuffix, ProjectsSubdir, PropertiesFlag, RawLoaderFilename, RecentJexProjects, RegistrationFilename, RenFileCommand, SearchEverywhereForJvm, SearchIconName, SearchNowhereForJvm, SearchPathForJvm, SelectedNativePlatformsNoJvm, SelectedNativePlatformsWithJvm, SilentInstallFlag, SingleFileGroup, SkinLFPackage, SkinPLAF, StandaloneDirectory, StandalonePureJavaPrefix, StandardJvmExtraParameters, StandardUserClasspath, StartWinAppFilename, SystemChangesFilename, TellUserHowToStart, TempDirectory, ThemePackArgument, ThemePackFilename, TitleCommand, UninstallerDirectory, UninstallerPackage, UninstallerSubdir, UninstallInstructions, UpdateManifestDirectory, UpdateManifestFilename, UpdateMenuPrefix, UpdaterDirectory, UpdaterPackage, UpdateScriptName, UpdatesDirectory, UserHomeVariable, UserInstallerDirectory, UserInterface, UserJExpressDirectory, UserUpdatePropertiesFilename, VersionArgument, VersionFilename, VersionVariable, WebDirectory, WebPagesDirectory, WindowsDirectory, WindowsDirVariable, WindowsIconExtension, WizardEdition, ZipFileExtension, ZipSkipPatchableString |
| 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 com.denova.ui.LocaleTranslator |
getCurrentLocale()
Returns the current locale. |
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. |
static com.denova.ui.Marquee |
getMarquee()
Gets the marquee window. |
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.lang.String |
getUserClasspath()
Returns the classpath the installer uses to configure the user's classpath. |
static boolean |
launchApp(java.lang.String appName,
java.awt.Container parent)
|
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)
Log a message to installer.log, if it exists. |
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 void |
repackWindow()
Repack the window. |
static void |
setInstallerVisible(boolean visible)
Set installer visible if true. |
static void |
setPanelsBackground(java.awt.Color color)
Change the background color of the installer's panels. |
static void |
setVisible(boolean visible)
Set installer's panel visible if true. |
static void |
updateMarquee(com.denova.ui.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 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 com.denova.ui.Marquee getMarquee()
public static void updateMarquee(com.denova.ui.Marquee marquee)
marquee - windowpublic static boolean makeInstallerSilent()
public static void setPanelsBackground(java.awt.Color color)
color - new panels backgroundpublic 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 void logToInstaller(java.lang.String msg)
msg: message to record
See the manual about diagnostic logs (Manual/Diagnostics/inslogs.html).
msg - 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 record
t: the exception
See the manual about diagnostic logs (Manual/Diagnostics/inslogs.html).
msg - t - 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 com.denova.ui.LocaleTranslator getCurrentLocale()
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 boolean launchApp(java.lang.String appName,
java.awt.Container parent)
public static void exit()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||