|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
dev.gui.JCDialog
dev.gui.OkCancelHelpDialog
dev.gui.wizard.WizardDialog
com.jp.protection.gui.dialogs.BasicLicenseWizard
com.jp.protection.gui.dialogs.LicensingWizard
public class LicensingWizard
This class defines Wizard dialog that simplifies licensing process by allowing to specify license location and providing information about how to get licenses.
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
Default options value |
protected com.jp.protection.gui.dialogs.panes.LicenseLocationWizardPane |
fLicenseLocationWizardPane
|
protected com.jp.protection.gui.dialogs.panes.LicensingWizardPane |
fLicensingWizardPane
|
protected com.jp.protection.gui.dialogs.panes.OfflineLicensingWizardPane |
fOfflineLicensingWizardPane
|
static java.lang.String |
NAME_ENTER_SERIAL_NUMBER_WIZARD_PANE
|
static java.lang.String |
NAME_LICENSING_SERVER_WIZARD_PANE
|
static java.lang.String |
NAME_REQUEST_EVALUATION_WIZARD_PANE
|
static int |
OPTION_ALLOW_EVAL
This option specifies whether getting evaluation licenses is allowed |
static int |
OPTION_ALLOW_EXT_EVAL
This option specifies whether getting extended evaluation licenses is allowed |
static int |
OPTION_ALLOW_GETTING_LS
This option specifies whether getting licenses from Licensing Server is allowed |
static int |
OPTION_ALLOW_OFFLINE
This option specifies whether getting information about how to purchase or download licenses is allowed |
static int |
OPTION_ALLOW_S_N
This option specifies whether getting licenses by Serial Numbers is allowed |
static int |
OPTION_SKIP_CUSTOMER_INFO_S_N
This option specifies whether entering customer information can be skipped during getting licenses for Serial Numbers |
(package private) static java.util.ResourceBundle |
res
|
protected static javax.swing.Icon |
WIZARD_ICON
|
Fields inherited from class com.jp.protection.gui.dialogs.BasicLicenseWizard |
---|
fInitOperation, fLicenseReader, fLicensingFacadeProviderName, FMT_NOTE_GET_LICENSE, FMT_NOTE_GET_LICENSE_SUPPORT, 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 | |
---|---|
LicensingWizard()
Creates a new instance of Licensing Wizard with no owner. |
|
LicensingWizard(java.awt.Component anOwner)
Creates a new instance of Licensing Wizard |
Method Summary | |
---|---|
boolean |
executeModal()
Shows the Wizard on screen |
java.lang.String |
getIssueDescription()
Returns description of the issue this Wizard should help to resolve |
java.lang.String |
getIssueName()
Returns name of the issue this Wizard should help to resolve |
com.jp.protection.gui.dialogs.panes.LicenseLocationWizardPane |
getLicenseLocationWizardPane()
|
com.jp.protection.gui.dialogs.panes.LicensingWizardPane |
getLicensingWizardPane()
|
com.jp.protection.gui.dialogs.panes.OfflineLicensingWizardPane |
getOfflineLicensingWizardPane()
|
int |
getOptions()
Returns options that describes behavior of the Wizard as a set of OPTION_ constants. |
void |
init(LicenseReader aLicenseReader,
ProductInfo aProductInfo)
|
boolean |
isRequestEvalEnabled()
Deprecated. since v2.0. Use setOptions() instead. |
boolean |
isRequestExtEvaluation()
Deprecated. since v2.0. Use setOptions() instead. |
void |
setIssueDescription(java.lang.String aDescription)
Specifies description of the issue this Wizard should help to resolve |
void |
setIssueName(java.lang.String aName)
Specifies name of the issue this Wizard should help to resolve |
void |
setOptions(int anOptions)
Specifies options that describes behavior of the Wizard as a set of OPTION_ constants. |
void |
setProductInfo(ProductInfo aProductInfo)
Specifies product information |
void |
setRequestEvalEnabled(boolean aValue)
Deprecated. since v2.0. Use setOptions() instead. |
void |
setRequestExtEvaluation(boolean aValue)
Deprecated. since v2.0. Use setOptions() instead. |
void |
setVisible(boolean aVisible)
Shows or hides this component depending on the value of parameter aVisible . |
Methods inherited from class com.jp.protection.gui.dialogs.BasicLicenseWizard |
---|
addWizardPane, checkServerStatus, composeMessage, createInternetConnectionWizardPane, error, error, getLicenseReader, 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, doFinish, doNext, finish, first, getActiveWizardPane, getMessageTitle, getWizardIcon, getWizardPane, getWizardPaneCount, getWizardPaneIndex, hasActiveWizardPane, isWizardIconVisible, main, next, onButtonOkActionPerformed, setActiveWizardPane, 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 |
---|
static java.util.ResourceBundle res
public static final java.lang.String NAME_REQUEST_EVALUATION_WIZARD_PANE
public static final java.lang.String NAME_ENTER_SERIAL_NUMBER_WIZARD_PANE
public static final java.lang.String NAME_LICENSING_SERVER_WIZARD_PANE
public static final int OPTION_SKIP_CUSTOMER_INFO_S_N
public static final int OPTION_ALLOW_EVAL
public static final int OPTION_ALLOW_EXT_EVAL
public static final int OPTION_ALLOW_S_N
public static final int OPTION_ALLOW_OFFLINE
public static final int OPTION_ALLOW_GETTING_LS
public static final int DEFAULT_OPTIONS
protected com.jp.protection.gui.dialogs.panes.LicensingWizardPane fLicensingWizardPane
protected com.jp.protection.gui.dialogs.panes.LicenseLocationWizardPane fLicenseLocationWizardPane
protected com.jp.protection.gui.dialogs.panes.OfflineLicensingWizardPane fOfflineLicensingWizardPane
protected static final javax.swing.Icon WIZARD_ICON
Constructor Detail |
---|
public LicensingWizard(java.awt.Component anOwner)
anOwner
- a component from which Licensing Wizard should be displayedpublic LicensingWizard()
Method Detail |
---|
public java.lang.String getIssueDescription()
public void setIssueDescription(java.lang.String aDescription)
aDescription
- description of the issuepublic java.lang.String getIssueName()
public boolean isRequestExtEvaluation()
setOptions()
instead.
true
if getting extended evaluation licenses is enabled;
false
otherwise.public void setRequestExtEvaluation(boolean aValue)
setOptions()
instead.
aValue
- true
if getting extended evaluation licenses should be enabled;
false
otherwise.public boolean isRequestEvalEnabled()
setOptions()
instead.
true
if getting evaluation licenses is enabled;
false
otherwise.public void setRequestEvalEnabled(boolean aValue)
setOptions()
instead.
aValue
- true
if getting evaluation licenses should be enabled;
false
otherwise.public void setIssueName(java.lang.String aName)
aName
- name of the issuepublic int getOptions()
OPTION_
constants.
public void setOptions(int anOptions)
OPTION_
constants.
anOptions
- options to specifypublic com.jp.protection.gui.dialogs.panes.LicensingWizardPane getLicensingWizardPane()
public com.jp.protection.gui.dialogs.panes.LicenseLocationWizardPane getLicenseLocationWizardPane()
public com.jp.protection.gui.dialogs.panes.OfflineLicensingWizardPane getOfflineLicensingWizardPane()
public void setProductInfo(ProductInfo aProductInfo)
setProductInfo
in class BasicLicenseWizard
aProductInfo
- product informationpublic void setVisible(boolean aVisible)
aVisible
. Note, intended way to show this Wizard is using the
executeModal()
method
setVisible
in class dev.gui.wizard.WizardDialog
aVisible
- if true
, shows this component; otherwise, hides
this componentpublic boolean executeModal()
executeModal
in class dev.gui.wizard.WizardDialog
true
if licensing succeeded; false
otherwise.public void init(LicenseReader aLicenseReader, ProductInfo aProductInfo)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |