com.denova.JExpress.Installer
Class StatusPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.denova.ui.WizardPanel
                      extended by com.denova.ui.ProgressPanel
                          extended by com.denova.JExpress.Installer.StatusPanel
All Implemented Interfaces:
InstallPropertyNames, com.denova.JExpress.JExpressConstants, com.denova.util.MessageListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class StatusPanel
extends ProgressPanel
implements InstallPropertyNames, com.denova.JExpress.JExpressConstants

StatusPanel gives the various custom classes that run after the files are installed the same look. Ideally all StatusPanels appear to be a single panel that is simply updated with the status.

Author:
DeNova © 1997-2011 DeNova Last modified: 2012-02-08
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class com.denova.ui.ProgressPanel
progressBar, progressBarLabel, progressLog
 
Fields inherited from class com.denova.ui.WizardPanel
CancelButton, NextButton, NoDefault, PreviousButton
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface com.denova.JExpress.Installer.InstallPropertyNames
AbortIfErrorWithDefaultInstallDir, ApplicationDirectory, ApplicationDirectoryTarget, Author, AutoDetectLanguage, AutoupdateEveryStartup, AutoupdateNever, AutoupdateOnDemand, BackgroundColor, BasePath, CheckGuiRunningCommand, CheckLicenseDuringInstall, CheckLicenseDuringUpdate, CheckLicenseFromYourApp, CheckPreVersion, ClickFreeInstaller, ClickFreeUninstaller, ClickFreeUpdater, CompressedFileSize, ConfigureWinRegistry, CreatedMenuDirs, CustomAfterDirectoryWizardPanelClass, CustomAfterFilesInstalledWizardPanelClass, CustomAfterInstallWizardPanelClass, CustomAfterLicenseWizardPanelClass, CustomAfterMenusWizardPanelClass, CustomAfterMultipleInstallsWizardPanelClass, CustomAfterReadMeWizardPanelClass, CustomAfterWelcomeWizardPanelClass, CustomBeforeInstallWizardPanelClass, DefaultApplicationDirectory, DefaultLinuxParentAppDir, DefaultMacParentAppDir, DefaultOtherParentAppDir, DefaultSolarisParentAppDir, DefaultWindowsParentAppDir, DownloadUrl, ExtraParameters, FailIfNoLicenseServer, FileGroupsFolders, FileGroupsTypes, InitialUserName, InstallAsAdmin, InstallationStarted, InstallButtonsPosition, InstallerDefaultLanguage, InstallerExecutable, InstallerExtraFiles, InstallImageFilename, InstallImagePosition, InstallJvmParameters, InstallLicenseFilename, InstallPasswordDigest, InstallReadmeFilename, InstallSuccessful, InstallType, InstallUserClasspath, IsServlet, JavaAppFilesSigned, JvmClasspathSwitch, JvmCommandName, JvmExtraParameters, JvmHomeDir, JvmMaxVersion, JvmMinVersion, JvmName, JvmRequiredVersion, JvmSelfExtractor, JvmVersion, LAFTheme, LicenseAccount, LicenseAppRight, LicenseEndUser, LicenseError, LicenseIdCode, LicenseName, LicensePrimaryContact, LicenseProduct, LicenseRight, LoaderClasspath, LoaderJavaCommand, LookAndFeelInterface, MainClassname, MenuAllUsers, MenuArguments, MenuAssociatedInstallType, MenuAutoStartup, MenuAutoUpdate, MenuCommandLineArguments, MenuDesktopShortcut, MenuExecutableFile, MenuGnome, MenuIconName, MenuInstallAsService, MenuKDE, MenuLongName, MenuMac, MenuRunAsAdmin, MenusAttributeName, MenuShortName, MenuStartAfterInstall, MenuToStart, MenuUnix, MenuUseJavaCommandPrefix, MenuUseJavaConsole, MenuWindows, MenuWorkingDir, MenuXfce, MinimizedImageFilename, MultipleComponents, MultipleFileGroups, MultipleInstallTypes, NativeJvmHomeDir, NativeJvmInstalled, NativeJvmInstalledInTemp, NextInstallTypes, OldApplicationDirectory, OnDemandDesktopShortcut, PackageCopyright, PackageCreated, PackageName, PackageVersion, PackJarFile, PredefinedJvmInstallDir, PreviousApplicationDir, PreviousVersion, ProgressBarColor, PromptForInstallDir, PromptUserBeforeUninstalling, ProxyHost, ProxyPassword, ProxyPort, ProxyUserName, RelativeFileMap, SafePackageName, SaveFilePermissions, SaveInstallEnvironment, SearchForJvm, SecondaryUpdater, SelectedInstallTypes, SetLastModifiedDate, ShowFinalPanel, ShowFrame, ShowWelcomePanel, SilentConfigFilename, SilentInstall, SilentUninstaller, SilentUpdater, SingleInstallType, StartAppName, StartDirectory, StartGuiCommand, Submenu, SystemSecurityPolicyFilename, TestPropertiesFilename, TextColor, TextFileExtensions, TotalBytesNeeded, TotalCompressedFiles, TrackConversions, UncompressedTotalSize, UninstallCommand, UninstallerArgs, UninstallerIconPath, UninstallerPathname, UnzipExecutable, UserRequestedSilentInstall, UserSecurityPolicyFilename, WebSite
 
Fields inherited from interface com.denova.JExpress.JExpressConstants
AdvancedApp, AdvancedEdition, AppDirVariable, AppNameVariable, ArchitectureVariable, AuthorVariable, AutoRunInfFilename, AutoStartupUninstallerFile, BackgroundImageLayout, BasedirPlaceHolder, BasePathArgument, BatchFileExtension, BuildDirArgumentNew, BuildDirArgumentOld, BuilderDirectory, BuilderPackage, BuilderWaitFilename, BuildX32Installer, BuildX64Installer, ClassFileExtension, Classpath, ConfigDirectory, ControlUrlPatchableString, CopyCheqApiJar, CopyCheqDirectory, CopyFileCommand, Copyright, CopyrightSuffix, CreatedFilename, CrossPlatformExecName, CrossPlatformJarVariable, CrossPlatformName, CurrentProjectFilename, CustomClassesCommand, CustomInstallClassesDir, CustomLoaderPrefix, CustomPlatformOptionsFilename, CustomUninstallClassesDir, CustomUninstallDir, CustomUpdateClassesDir, DefaultBackgroundColor, DefaultBrowser, DefaultButtonPosition, DefaultImagePosition, DefaultJpegInstallerImage, DefaultJpegUpdaterImage, DefaultLookAndFeel, DefaultOptionsFilename, DefaultParentAppDir, DefaultProgressBarColor, DefaultProjectFilename, DefaultShowIcons, DefaultShowLaunchDialog, DefaultSynthTheme, DefaultTempDirectory, DefaultTextColor, DefaultUninstallerIcon, DefaultUpdaterIcon, DefaultUseTooltips, DelDirIfEmptyCommand, DelFileCommand, DelManifestCommand, DelPropertyStorageCommand, DelTreeCommand, DownloadUrlFlag, DownloadUrlVariable, EditionEnds, EditionStarts, ExampleProject, ExitIconName, ExitLabel, ExtraParametersFlag, FilesList, GzipFileExtension, GzipListFilename, HtmlFileExtension, InstallerDirectory, InstallerExecVariable, InstallerMainClass, InstallerPackage, InstallersSubdir, InstallerUrlPatchableString, InstallOptionsFilename, JarFileExtension, JarFileSuffix, JavaAppArguments, JavaAppExecutable, JavaAppProgramName, JavaAppPropertiesAltDir, JavaAppPropertiesFilename, JavaAppStandardArguments, JavaAppStartDir, JavaHomeVariable, JexControlPropertiesFilename, JexDataDir, JexDataFilename, JExpressAdvancedApp, JExpressApp, JExpressCopyCheqClassname, JExpressCustomClassName, JExpressInstallerClassName, JExpressJpegLogoFilename, JExpressUninstallerClassName, JExpressUpdaterClassName, JExpressWizardApp, KdePngIconExtension, KdeXpmIconExtension, KeystoreDbFilename, LastTab, LicenseAccountTemplate, LicenseAppRightTemplate, LicenseCheckAppTemplate, LicenseCheckInstallTemplate, LicenseCheckUpdateTemplate, LicenseEmailTemplate, LicenseIDTemplate, LicenseNameTemplate, LicenseOptionsFilename, LicenseProductTemplate, LicenseRightTemplate, LicenseServerFailTemplate, LoaderIsInPackage, LoaderPrefixControl, LocalBuildProperty, LookAndFeelArgument, MacInstallerCommandFilename, MacOsXIconExtension, NativeInstallerLog, NativePropertiesFilename, NativeStartDirFilename, NimbusSubdir, NimRODSubdir, OverwriteFileCommand, PlatformOptionsFilename, PlatformsDirectory, PlatformsParentDir, PlatformVariable, ProgFilesDirVariable, ProjectFileSuffix, ProjectsSubdir, PropertiesFlag, PureJavaDirectory, RawLoaderFilename, RecentJexProjects, RegistrationFilename, RenFileCommand, SearchEverywhereForJvm, SearchIconName, SearchNowhereForJvm, SearchPathForJvm, SelectedNativePlatformsNoJvm, SelectedNativePlatformsWithJvm, SelectedSpecialPlatforms, SilentArgument, SilentFlag, SingleFileGroup, StandaloneDirectory, StandalonePureJavaPrefix, StandardJvmExtraParameters, StandardUserClasspath, SynthSubdir, SystemChangesFilename, TarGzipFileExtension, TellUserHowToStart, TempDirectory, TestDesktopIconPrefix, TestDesktopIcons, TestFlag, ThemesDirectory, TitleCommand, TooManyComputers, TooManyUsers, TrackUninstallCommand, TrialAccount, TrialExpired, TrialLicense, TrialProduct, UninstallerDirectory, UninstallerPackage, UninstallerSubdir, UninstallInstructions, UninstallLinuxServiceCommand, UninstallOptionsFilename, UninstallPathFilename, UninstallWinServiceCommand, UpdateControlPropertiesFilename, UpdateManifestDirectory, UpdateManifestFilename, UpdateMenuPrefix, UpdaterDirectory, UpdaterPackage, UpdateScriptName, UpdatesDirectory, UpdateUrlArgument, UploadDirArgumentNew, UploadDirArgumentOld, UserHomeVariable, UserInstallerDirectory, UserInterface, UserInterfacesFile, UserJExpressDirectory, VersionArgument, VersionEnds, VersionFilename, VersionStarts, VersionVariable, WebDirectory, WebPagesDirectory, WebsiteVariable, WebStartJarVariable, WebStartPlatformName, WebStartWrapperJar, WindowsDirectory, WindowsDirVariable, WindowsIconExtension, WizardApp, WizardEdition, WorkingDirVariable, ZipFileExtension, ZipSkipPatchableString
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
StatusPanel(PropertyList properties)
          A custom class which has no user interaction can inherit from StatusPanel instead of WizardPanel, if you'd like.
StatusPanel(PropertyList properties, Log errorLog)
          Deprecated.  
 
Method Summary
 boolean isCancelButtonEnabled()
          Disables the cancel button.
 boolean isNextButtonEnabled()
          Disables the next button.
 boolean isPreviousButtonEnabled()
          Disables the previous button.
 void setLabels(java.lang.String progressBarStatus)
          Deprecated. use updateProgressBarLabel() or updateLowerStatusLabel()
 void setLabels(java.lang.String upperStatus, java.lang.String lowerStatus)
          Deprecated. use updateProgressBarLabel()
 void setLabels(java.lang.String upperStatus, java.lang.String lowerStatus, java.lang.String progressBarStatus)
          Deprecated. use updateProgressBarLabel()
 
Methods inherited from class com.denova.ui.ProgressPanel
getEstimatedTime, getPanelProgressShares, getProgressBarPanel, getProgressPanel, gotMessage, incrementProgressBar, incrementProgressBar, maximize, pauseProgressBar, prepareToEnter, reset, setBackgroundColor, setEnabledNamedPanel, setForegroundColor, setIndeterminate, showNextPanel, startProgressBar, stopProgressBar, updateProgressBar, updateProgressBarLabel
 
Methods inherited from class com.denova.ui.WizardPanel
abort, ask, ask, cancel, enter, getCancelButton, getCancelButtonIconName, getCancelButtonLabel, getDefaultButton, getDefaultCancelButtonIconName, getDefaultFinishedButtonIconName, getDefaultInstallButtonIconName, getDefaultNextButtonIconName, getDefaultPreviousButtonIconName, getMostRecentPanelIndex, getMostRecentPanelName, getName, getNextButton, getNextButtonExists, getNextButtonIconName, getNextButtonLabel, getPanelIndex, getPreviousButton, getPreviousButtonExists, getPreviousButtonIconName, getPreviousButtonLabel, getPropertyList, getTitle, is32bitJRE, is64bitJRE, isAix, isCurrentPanel, isEnabled, isHpUnix, isLinux, isMac, isMacOsX, isMpeUnix, isNetware, isOk, isOs2, isSolaris, isUnix, isWindows, isWindows2000, isWindows7, isWindows95, isWindows98, isWindowsNT, isWindowsServer2003, isWindowsServer2008, isWindowsVista, isWindowsXP, leave, note, note, note, resetPanel, setActive, setCancelButtonEnabled, setDefaultButton, setDefaultFinishedButtonIconName, setEnabled, setNextButtonEnabled, setPreviousButtonEnabled, setPropertyList, setWizard, showLastActivePanel, showPanel, showPanel, showPreviousPanel, userCanceled, wizardGetDefaultButton
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatusPanel

public StatusPanel(PropertyList properties)
A custom class which has no user interaction can inherit from StatusPanel instead of WizardPanel, if you'd like. The advantage is that the status info to the user will be positioned in the exact same place that the standard installer's status panels, such as the MenusPanel and the UninstallPanel, use. This minimizes the changes on the screen to give a smoother look to an installer which handles a lot of configuration.


StatusPanel

public StatusPanel(PropertyList properties,
                   Log errorLog)
Deprecated. 

Constructor for this object.

Method Detail

setLabels

public void setLabels(java.lang.String progressBarStatus)
Deprecated. use updateProgressBarLabel() or updateLowerStatusLabel()

Set the status message. If smoth() is true, then set the progress bar label; otherwise, set the lower status.


setLabels

public void setLabels(java.lang.String upperStatus,
                      java.lang.String lowerStatus)
Deprecated. use updateProgressBarLabel()


setLabels

public void setLabels(java.lang.String upperStatus,
                      java.lang.String lowerStatus,
                      java.lang.String progressBarStatus)
Deprecated. use updateProgressBarLabel()

Set the status messages, if not smooth().


isCancelButtonEnabled

public boolean isCancelButtonEnabled()
Disables the cancel button.

Overrides:
isCancelButtonEnabled in class ProgressPanel
Returns:
false.

isPreviousButtonEnabled

public boolean isPreviousButtonEnabled()
Disables the previous button.

Overrides:
isPreviousButtonEnabled in class ProgressPanel
Returns:
false.

isNextButtonEnabled

public boolean isNextButtonEnabled()
Disables the next button.

Overrides:
isNextButtonEnabled in class ProgressPanel
Returns:
false.