com.jp.protection.gui.dialogs
Class BasicLicenseWizard

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by javax.swing.JDialog
                      extended by dev.gui.JCDialog
                          extended by dev.gui.OkCancelHelpDialog
                              extended by dev.gui.wizard.WizardDialog
                                  extended by com.jp.protection.gui.dialogs.BasicLicenseWizard
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.beancontext.BeanContextProxy, java.beans.beancontext.BeanContextServiceRevokedListener, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants
Direct Known Subclasses:
LicenseActivationWizard, LicenseDeactivationWizard, LicenseLockWizard, LicenseUpgradeWizard, LicensingWizard

public class BasicLicenseWizard
extends dev.gui.wizard.WizardDialog

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class dev.gui.OkCancelHelpDialog
dev.gui.OkCancelHelpDialog.RightGapBorder
 
Nested classes/interfaces inherited from class dev.gui.JCDialog
dev.gui.JCDialog.CloseController, dev.gui.JCDialog.TemporaryComponentHighlighter, dev.gui.JCDialog.WatermarkComponent
 
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
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.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  dev.gui.wizard.ProgressWizardPane.Operation fInitOperation
           
protected  LicenseReader fLicenseReader
           
protected  java.lang.String fLicensingFacadeProviderName
           
(package private) static java.text.MessageFormat FMT_NOTE_GET_LICENSE
           
(package private) static java.text.MessageFormat FMT_NOTE_GET_LICENSE_SUPPORT
           
protected static java.text.MessageFormat FMT_UNABLE_WRITE_LICENSE
           
protected  ProductInfo fProductInfo
           
protected  dev.gui.wizard.ProgressWizardPane.Operation fSaveLicenseOperation
           
protected  dev.net.NetworkResourceStatus fServerStatus
           
(package private) static java.util.ResourceBundle res
           
 
Fields inherited from class dev.gui.wizard.WizardDialog
btnBack, btnNext, fActiveWizardPane, fComponentAdapter, fIsNextOperation, ICON_WIZARD, lblDivider, lblWizardImage, NEXT_PANE_NONE, pnlContent, PROPERTY_TOPIC_ID
 
Fields inherited from class dev.gui.OkCancelHelpDialog
btnCancel, btnHelp, btnOk, DEFAULT_INSET, fComponentHelpDelegate, OK_ACTION, pnlButtons
 
Fields inherited from class dev.gui.JCDialog
fBeanContextChild, fCloseOnEscape, fDefaultFocusOwner, fInsetContentPane, fKeyEventDispatcher, fModalResult, fNeedSoftResizable, fSoftResizable, fWaitStateSupport, fWatermarkComponent, RESULT_CANCEL, RESULT_HELP, RESULT_NO, RESULT_NONE, RESULT_OK, RESULT_YES
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
protected BasicLicenseWizard()
           
protected BasicLicenseWizard(java.awt.Component anOwner)
           
 
Method Summary
 void addWizardPane(dev.gui.wizard.WizardPane aWizardPane)
          Adds a Wizard Pane to the Wizard and let it listen for property change events of the product information
protected static boolean checkServerStatus(dev.net.NetworkResourceStatus aStatus)
           
protected  java.lang.String composeMessage(LicensingFacadeResult aResult)
           
protected  dev.gui.wizard.InternetConnectionWizardPane createInternetConnectionWizardPane()
           
protected  void error(java.lang.String aMessage)
           
protected  void error(java.lang.Throwable ex)
           
 LicenseReader getLicenseReader()
          Returns the License Reader instance used to find the license location
protected  LicensingFacade getLicensingFacade()
           
 java.lang.String getLicensingFacadeProviderName()
          Returns name of LicensingFacadeProvider is used to get access to the licensing functionality
 java.util.Map getMacroContext()
           
 ProductInfo getProductInfo()
          Returns product information
 java.net.URL getServerStatusURL()
          Return URL of XML file containing status of the server this Wizard can deal with
protected  void initMessagePane(dev.gui.wizard.MessageWizardPane aMessageWizardPane, LicensingFacadeResult aResult)
           
protected  boolean isLicensingFacadeUseHTTPS()
           
protected static java.lang.String makeHTML(java.lang.String aMessage)
           
 void removeWizardPane(dev.gui.wizard.WizardPane aWizardPane)
          Removes Wizard Pane from the Wizard
protected  boolean saveLicense(byte[] licenseBytes)
           
 void setComponentHelpDelegate(dev.gui.ComponentHelpDelegate aComponentHelpDelegate)
           
 void setLicenseReader(LicenseReader aLicenseReader)
          Specifies License Reader instance used to properly find license location
 void setLicensingFacadeProviderName(java.lang.String aName)
          Specifies name of LicensingFacadeProvider should be used to get access to the licensing functionality
 void setProductInfo(ProductInfo aProductInfo)
          Specifies product information
 void setServerStatusURL(java.net.URL anURL)
          Specifies URL of XML file containing status of the server this Wizard should deal with
protected static void updateForServerStatus(dev.gui.wizard.MessageWizardPane aMessagePane, dev.net.NetworkResourceStatus aStatus)
           
 
Methods inherited from class dev.gui.wizard.WizardDialog
back, canBack, canFinish, canNext, doBack, doCancel, doFinish, doNext, executeModal, finish, first, getActiveWizardPane, getMessageTitle, getWizardIcon, getWizardPane, getWizardPaneCount, getWizardPaneIndex, hasActiveWizardPane, isWizardIconVisible, main, next, onButtonOkActionPerformed, setActiveWizardPane, setVisible, setWizardIcon, setWizardIconVisible, update, updateSize
 
Methods inherited from class dev.gui.OkCancelHelpDialog
actionPerformed, executeModal, executeModal, executeModal, executeModal, executeModal, getButtonsPanel, getCancelButton, getComponentHelpDelegate, getHelpButton, getOkButton, onAnyComponentKeyPressed, onButtonHelpActionPerformed, showHelp
 
Methods inherited from class dev.gui.JCDialog
canCancel, canClose, canUse, centerOnOwner, centerOnScreen, componentResized, dispose, error, executeModal, getAdjustedSize, getBeanContext, getBeanContextProxy, getDefaultFocusOwner, getDialogMaximumSize, getDialogMinimumSize, getMessageTitle, getModalResult, getParentDialog, getParentFrame, getService, getService, getWatermarkComponent, hasVisiblePopups, initBeanContext, isCloseOnEscape, isCloseOnEscape, isInsetContentPane, isInUse, isSoftResizable, isWaitState, message, pack, prompt, prompt, releaseService, serviceRevoked, setBeanContext, setCloseOnEscape, setDefaultButton, setDefaultFocusOwner, setDialogMaximumSize, setDialogMinimumSize, setInsetContentPane, setModalResult, setResizable, setWaitState, setWatermarkComponent, updateSizeToFitRange, useBegin, useEnd, warning, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

res

static java.util.ResourceBundle res

FMT_NOTE_GET_LICENSE

static final java.text.MessageFormat FMT_NOTE_GET_LICENSE

FMT_NOTE_GET_LICENSE_SUPPORT

static final java.text.MessageFormat FMT_NOTE_GET_LICENSE_SUPPORT

fProductInfo

protected ProductInfo fProductInfo

fInitOperation

protected dev.gui.wizard.ProgressWizardPane.Operation fInitOperation

fSaveLicenseOperation

protected dev.gui.wizard.ProgressWizardPane.Operation fSaveLicenseOperation

FMT_UNABLE_WRITE_LICENSE

protected static final java.text.MessageFormat FMT_UNABLE_WRITE_LICENSE

fLicenseReader

protected LicenseReader fLicenseReader

fLicensingFacadeProviderName

protected java.lang.String fLicensingFacadeProviderName

fServerStatus

protected dev.net.NetworkResourceStatus fServerStatus
Constructor Detail

BasicLicenseWizard

protected BasicLicenseWizard()

BasicLicenseWizard

protected BasicLicenseWizard(java.awt.Component anOwner)
Method Detail

initMessagePane

protected void initMessagePane(dev.gui.wizard.MessageWizardPane aMessageWizardPane,
                               LicensingFacadeResult aResult)

composeMessage

protected java.lang.String composeMessage(LicensingFacadeResult aResult)

getProductInfo

public ProductInfo getProductInfo()
Returns product information

Returns:
product information

setProductInfo

public void setProductInfo(ProductInfo aProductInfo)
Specifies product information

Parameters:
aProductInfo - product information

addWizardPane

public void addWizardPane(dev.gui.wizard.WizardPane aWizardPane)
Adds a Wizard Pane to the Wizard and let it listen for property change events of the product information

Overrides:
addWizardPane in class dev.gui.wizard.WizardDialog
Parameters:
aWizardPane - a Wizard Pane to add

removeWizardPane

public void removeWizardPane(dev.gui.wizard.WizardPane aWizardPane)
Removes Wizard Pane from the Wizard

Overrides:
removeWizardPane in class dev.gui.wizard.WizardDialog
Parameters:
aWizardPane - Wizard Pane to remove

getLicenseReader

public LicenseReader getLicenseReader()
Returns the License Reader instance used to find the license location

Returns:
License Reader instance

setLicenseReader

public void setLicenseReader(LicenseReader aLicenseReader)
Specifies License Reader instance used to properly find license location

Parameters:
aLicenseReader - a License Reader instance

getLicensingFacade

protected LicensingFacade getLicensingFacade()
                                      throws java.lang.Throwable
Throws:
java.lang.Throwable

error

protected void error(java.lang.Throwable ex)

error

protected void error(java.lang.String aMessage)
Overrides:
error in class dev.gui.wizard.WizardDialog

saveLicense

protected boolean saveLicense(byte[] licenseBytes)

getLicensingFacadeProviderName

public java.lang.String getLicensingFacadeProviderName()
Returns name of LicensingFacadeProvider is used to get access to the licensing functionality

Returns:
name of LicensingFacadeProvider

setLicensingFacadeProviderName

public void setLicensingFacadeProviderName(java.lang.String aName)
Specifies name of LicensingFacadeProvider should be used to get access to the licensing functionality

Parameters:
aName - name of LicensingFacadeProvider

setComponentHelpDelegate

public void setComponentHelpDelegate(dev.gui.ComponentHelpDelegate aComponentHelpDelegate)
Overrides:
setComponentHelpDelegate in class dev.gui.OkCancelHelpDialog

getMacroContext

public java.util.Map getMacroContext()

createInternetConnectionWizardPane

protected dev.gui.wizard.InternetConnectionWizardPane createInternetConnectionWizardPane()

isLicensingFacadeUseHTTPS

protected boolean isLicensingFacadeUseHTTPS()

getServerStatusURL

public java.net.URL getServerStatusURL()
Return URL of XML file containing status of the server this Wizard can deal with

Returns:
URL

setServerStatusURL

public void setServerStatusURL(java.net.URL anURL)
Specifies URL of XML file containing status of the server this Wizard should deal with

Parameters:
anURL - URL

updateForServerStatus

protected static void updateForServerStatus(dev.gui.wizard.MessageWizardPane aMessagePane,
                                            dev.net.NetworkResourceStatus aStatus)

makeHTML

protected static java.lang.String makeHTML(java.lang.String aMessage)

checkServerStatus

protected static boolean checkServerStatus(dev.net.NetworkResourceStatus aStatus)