com.jp.protection.gui.dialogs.pro
Class LicenseLockWizard

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
                                      extended by com.jp.protection.gui.dialogs.pro.LicenseLockWizard
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

public class LicenseLockWizard
extends BasicLicenseWizard

Defines Wizard to help the user in the license lock acquisition using the Licensing Server

Since:
3.0
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
static int DEFAULT_OPTIONS
          Specifies default options value
protected  dev.gui.wizard.ProgressWizardPane.Operation fAcquiringLockOperation
           
protected  dev.gui.wizard.ProgressWizardPane.Operation fCanLockOperation
           
protected  dev.gui.wizard.ProgressWizardPane.Operation fConnectingOperation
           
protected  dev.gui.wizard.WizardPane fFinishWizardPane
           
protected  dev.gui.wizard.ProgressWizardPane.Operation fInitConnectionOperation
           
protected  dev.gui.wizard.InternetConnectionWizardPane fInternetConnectionWizardPane
           
protected  LicenseHostPro fLicenseHost
           
protected  com.jp.protection.gui.dialogs.pro.panes.LicenseLockProgressPane fLicenseLockProgressPane
           
protected  com.jp.protection.gui.dialogs.pro.panes.LicenseLockWizardPane fLicenseLockWizardPane
           
protected  com.jp.protection.gui.dialogs.pro.panes.LicensingServerWizardPane fLicensingServerWizardPane
           
protected  boolean fLockLicenseResult
           
protected  dev.gui.wizard.MessageWizardPane fMessageWizardPane
           
protected  dev.gui.wizard.ProgressWizardPane.Operation fWaitingOperation
           
static int OPTION_CHOOSE_LS
          This option specifies whether choosing the Licensing Server is allowed when there is no Licensing Server address is specified for the license
static int OPTION_TRY_AGAIN
          This option specifies whether the "try again" action is allowed
static int OPTION_WAIT
          This option specifies whether waiting for the license lock is allowed
(package private) static java.util.ResourceBundle res
           
static int SLEEP_DECORATION
           
static int SLEEP_NEXT_TRY
           
static int SLEEP_NEXT_TRY_PERIOD
           
protected static javax.swing.Icon WIZARD_ICON
           
 
Fields inherited from class com.jp.protection.gui.dialogs.BasicLicenseWizard
fInitOperation, fLicenseReader, fLicensingFacadeProviderName, FMT_UNABLE_WRITE_LICENSE, fProductInfo, fSaveLicenseOperation, fServerStatus
 
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
LicenseLockWizard()
          Creates a new instance of License Lock Wizard with no owner
LicenseLockWizard(java.awt.Component anOwner)
          Creates a new instance of License Lock Wizard
 
Method Summary
protected  int doFinish()
           
protected  void error(LicensingServiceResult aResult)
           
 boolean executeModal()
          Shows the Wizard on the screen
 dev.gui.wizard.InternetConnectionWizardPane getInternetConnectionWizardPane()
          Returns the Wizard pane used to specify proxy settings
 java.lang.String getIssueDescription()
          Returns description of the issue the Wizard should help to resolve
 java.lang.String getIssueName()
          Returns name of the issue the Wizard should help to resolve
 LicenseHostPro getLicenseHost()
          Returns LicenseHost instance used to provide various utility methods
 com.jp.protection.gui.dialogs.pro.panes.LicenseLockProgressPane getLicenseLockProgressPane()
          Returns the Wizard pane, which shows progress of the license lock acquisition process
 com.jp.protection.gui.dialogs.pro.panes.LicenseLockWizardPane getLicenseLockWizardPane()
          Return root Wizard pane that allows choosing various options on how to to acquire the license lock
 LicenseReader getLicenseReader()
          Returns the License Reader instance used to find the license location
protected  java.lang.String getMessage(LicensingServiceResult aResult)
           
 int getOptions()
          Returns options that describes behavior of the Wizard as a set of OPTION_ constants.
protected  java.util.prefs.Preferences getPreferences()
           
 java.lang.String getProtocol()
           
 boolean isLicensingServerAddressKnown()
          Returns whether the Licensing Server address is known
 void lockLicense()
          Starts the license lock acquisition process
 void processLockLicenseResult()
          Processes result of the license lock acquisition operation
 void setIssueDescription(java.lang.String aDescription)
          Specifies description of the issue the Wizard should help to resolve
 void setIssueName(java.lang.String aName)
          Specifies the name of the issue the Wizard should help to resolve
 void setLicenseHost(LicenseHostPro aLicenseHost)
          Specifies LicenseHost instance used to provide various utility methods
 void setOptions(int anOptions)
          Specifies options that describes behavior of the Wizard as a set of OPTION_ constants.
 void setProductInfo(ProductInfo aProductInfo)
          Specifies the product information
 void setProtocol(java.lang.String aProtocol)
           
protected  void tryOnce()
           
protected  void tryWait()
           
 
Methods inherited from class com.jp.protection.gui.dialogs.BasicLicenseWizard
addWizardPane, checkServerStatus, composeMessage, createInternetConnectionWizardPane, error, error, getLicensingFacade, getLicensingFacadeProviderName, getMacroContext, getProductInfo, getServerStatusURL, initMessagePane, isLicensingFacadeUseHTTPS, makeHTML, removeWizardPane, saveLicense, setComponentHelpDelegate, setLicenseReader, setLicensingFacadeProviderName, setServerStatusURL, updateForServerStatus
 
Methods inherited from class dev.gui.wizard.WizardDialog
back, canBack, canFinish, canNext, doBack, doCancel, doNext, 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

fLicenseLockWizardPane

protected com.jp.protection.gui.dialogs.pro.panes.LicenseLockWizardPane fLicenseLockWizardPane

fInternetConnectionWizardPane

protected dev.gui.wizard.InternetConnectionWizardPane fInternetConnectionWizardPane

fMessageWizardPane

protected dev.gui.wizard.MessageWizardPane fMessageWizardPane

fLicensingServerWizardPane

protected com.jp.protection.gui.dialogs.pro.panes.LicensingServerWizardPane fLicensingServerWizardPane

fLicenseLockProgressPane

protected com.jp.protection.gui.dialogs.pro.panes.LicenseLockProgressPane fLicenseLockProgressPane

WIZARD_ICON

protected static final javax.swing.Icon WIZARD_ICON

fInitConnectionOperation

protected dev.gui.wizard.ProgressWizardPane.Operation fInitConnectionOperation

fConnectingOperation

protected dev.gui.wizard.ProgressWizardPane.Operation fConnectingOperation

fCanLockOperation

protected dev.gui.wizard.ProgressWizardPane.Operation fCanLockOperation

fAcquiringLockOperation

protected dev.gui.wizard.ProgressWizardPane.Operation fAcquiringLockOperation

fWaitingOperation

protected dev.gui.wizard.ProgressWizardPane.Operation fWaitingOperation

fLicenseHost

protected LicenseHostPro fLicenseHost

fFinishWizardPane

protected dev.gui.wizard.WizardPane fFinishWizardPane

OPTION_TRY_AGAIN

public static final int OPTION_TRY_AGAIN
This option specifies whether the "try again" action is allowed

See Also:
Constant Field Values

OPTION_WAIT

public static final int OPTION_WAIT
This option specifies whether waiting for the license lock is allowed

See Also:
Constant Field Values

OPTION_CHOOSE_LS

public static final int OPTION_CHOOSE_LS
This option specifies whether choosing the Licensing Server is allowed when there is no Licensing Server address is specified for the license

See Also:
Constant Field Values

DEFAULT_OPTIONS

public static final int DEFAULT_OPTIONS
Specifies default options value

See Also:
Constant Field Values

fLockLicenseResult

protected boolean fLockLicenseResult

SLEEP_DECORATION

public static final int SLEEP_DECORATION
See Also:
Constant Field Values

SLEEP_NEXT_TRY

public static final int SLEEP_NEXT_TRY
See Also:
Constant Field Values

SLEEP_NEXT_TRY_PERIOD

public static final int SLEEP_NEXT_TRY_PERIOD
See Also:
Constant Field Values
Constructor Detail

LicenseLockWizard

public LicenseLockWizard(java.awt.Component anOwner)
Creates a new instance of License Lock Wizard

Parameters:
anOwner - a component from which License Lock Wizard should be displayed

LicenseLockWizard

public LicenseLockWizard()
Creates a new instance of License Lock Wizard with no owner

Method Detail

getPreferences

protected java.util.prefs.Preferences getPreferences()

setProductInfo

public void setProductInfo(ProductInfo aProductInfo)
Specifies the product information

Overrides:
setProductInfo in class BasicLicenseWizard
Parameters:
aProductInfo - product information

getInternetConnectionWizardPane

public dev.gui.wizard.InternetConnectionWizardPane getInternetConnectionWizardPane()
Returns the Wizard pane used to specify proxy settings

Returns:
Wizard pane used to specify proxy settings

getLicenseLockWizardPane

public com.jp.protection.gui.dialogs.pro.panes.LicenseLockWizardPane getLicenseLockWizardPane()
Return root Wizard pane that allows choosing various options on how to to acquire the license lock

Returns:
root Wizard pane that allows choosing way to acquire license lock

getLicenseLockProgressPane

public com.jp.protection.gui.dialogs.pro.panes.LicenseLockProgressPane getLicenseLockProgressPane()
Returns the Wizard pane, which shows progress of the license lock acquisition process

Returns:
Wizard pane, which shows progress of license lock acquiring

getLicenseHost

public LicenseHostPro getLicenseHost()
Returns LicenseHost instance used to provide various utility methods


setLicenseHost

public void setLicenseHost(LicenseHostPro aLicenseHost)
Specifies LicenseHost instance used to provide various utility methods

Parameters:
aLicenseHost - a LicenseHost instance to specify

getLicenseReader

public LicenseReader getLicenseReader()
Description copied from class: BasicLicenseWizard
Returns the License Reader instance used to find the license location

Overrides:
getLicenseReader in class BasicLicenseWizard
Returns:
License Reader instance

executeModal

public boolean executeModal()
Shows the Wizard on the screen

Overrides:
executeModal in class dev.gui.wizard.WizardDialog
Returns:
true if activation succeeded; false otherwise.

getOptions

public int getOptions()
Returns options that describes behavior of the Wizard as a set of OPTION_ constants.

Returns:
options

setOptions

public void setOptions(int anOptions)
Specifies options that describes behavior of the Wizard as a set of OPTION_ constants.

Parameters:
anOptions - options to specify

getIssueDescription

public java.lang.String getIssueDescription()
Returns description of the issue the Wizard should help to resolve

Returns:
description of the issue

setIssueDescription

public void setIssueDescription(java.lang.String aDescription)
Specifies description of the issue the Wizard should help to resolve

Parameters:
aDescription - description of the issue

getIssueName

public java.lang.String getIssueName()
Returns name of the issue the Wizard should help to resolve

Returns:
name of the issue

setIssueName

public void setIssueName(java.lang.String aName)
Specifies the name of the issue the Wizard should help to resolve

Parameters:
aName - name of the issue

doFinish

protected int doFinish()
Overrides:
doFinish in class dev.gui.wizard.WizardDialog

processLockLicenseResult

public void processLockLicenseResult()
Processes result of the license lock acquisition operation


tryOnce

protected void tryOnce()

error

protected void error(LicensingServiceResult aResult)

getMessage

protected java.lang.String getMessage(LicensingServiceResult aResult)

tryWait

protected void tryWait()

isLicensingServerAddressKnown

public boolean isLicensingServerAddressKnown()
Returns whether the Licensing Server address is known

Returns:
true if Licensing Server address is known; false otherwise

lockLicense

public void lockLicense()
Starts the license lock acquisition process


getProtocol

public java.lang.String getProtocol()

setProtocol

public void setProtocol(java.lang.String aProtocol)