|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jp.protection.gui.dialogs.DefaultLicenseReaderIssueResolver
public class DefaultLicenseReaderIssueResolver
Default implementation of "resolver" interface which introduces methods responsible for the resolving of the issues and conflicts occurring during the license locating and reading. It shows Licensing Wizard which provides ways to find or obtain licenses.
Field Summary | |
---|---|
protected LicenseReader |
fLicenseReader
|
protected LicensingWizard |
fLicensingWizard
|
protected java.awt.Component |
fOwner
|
protected ProductInfo |
fProductInfo
|
(package private) static java.util.ResourceBundle |
res
|
Constructor Summary | |
---|---|
DefaultLicenseReaderIssueResolver(LicenseReader aLicenseReader)
Creates a new instance of Issue Resolver with no owner |
|
DefaultLicenseReaderIssueResolver(LicenseReader aLicenseReader,
java.awt.Component anOwner)
Creates a new instance of Issue Resolver |
|
DefaultLicenseReaderIssueResolver(LicenseReader aLicenseReader,
java.awt.Component anOwner,
ProductInfo aProductInfo)
Creates a new instance of Issue Resolver |
Method Summary | |
---|---|
protected LicensingWizard |
createLicensingWizard()
|
LicensingWizard |
getLicensingWizard()
Returns cached Licensing Wizard instance. |
int |
getLicensingWizardOptions()
Returns options that describes behavior of the Licensing Wizard as a set of LicensingWizard.OPTION_ constants. |
ProductInfo |
getProductInfo()
Returns product information |
boolean |
resolveLicenseCorrupted(LicenseReader aSource)
This method is responsible for resolving an issue when license is corrupted. |
boolean |
resolveLicenseMissing(LicenseReader aSource)
This method is responsible for the resolving an issue when license is missing. |
void |
setLicensingWizardLogo(javax.swing.Icon anIcon)
Specifies logo icon shown of the left of Licensing Wizard |
void |
setLicensingWizardOptions(int anOptions)
Specifies options that describes behavior of the Licensing Wizard as a set of LicensingWizard.OPTION_ constants. |
void |
setProductInfo(ProductInfo aProductInfo)
Specifies product information |
boolean |
updateLicense(LicenseReader aSource)
This method is responsible for updating a license to keep it up-to-date. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static java.util.ResourceBundle res
protected java.awt.Component fOwner
protected LicensingWizard fLicensingWizard
protected ProductInfo fProductInfo
protected LicenseReader fLicenseReader
Constructor Detail |
---|
public DefaultLicenseReaderIssueResolver(LicenseReader aLicenseReader, java.awt.Component anOwner, ProductInfo aProductInfo)
aLicenseReader
- License Reader instance used to properly find license locationanOwner
- a component from which Licensing Wizard should be displayedpublic DefaultLicenseReaderIssueResolver(LicenseReader aLicenseReader, java.awt.Component anOwner)
aLicenseReader
- License Reader instance used to properly find license locationanOwner
- a component from which Licensing Wizard should be displayedpublic DefaultLicenseReaderIssueResolver(LicenseReader aLicenseReader)
aLicenseReader
- License Reader instance used to properly find license locationMethod Detail |
---|
public ProductInfo getProductInfo()
public void setProductInfo(ProductInfo aProductInfo)
aProductInfo
- product information to specifypublic LicensingWizard getLicensingWizard()
public int getLicensingWizardOptions()
LicensingWizard.OPTION_
constants.
public void setLicensingWizardOptions(int anOptions)
LicensingWizard.OPTION_
constants.
anOptions
- options to specifypublic void setLicensingWizardLogo(javax.swing.Icon anIcon)
anIcon
- logo iconprotected LicensingWizard createLicensingWizard()
public boolean resolveLicenseMissing(LicenseReader aSource)
LicenseReaderIssueResolver
This method is responsible for the resolving an issue when license is missing. Implementation of this method should:
resolveLicenseMissing
in interface LicenseReaderIssueResolver
aSource
- identifies the license reader calling this method
true
if issue is resolved; false
otherwisepublic boolean resolveLicenseCorrupted(LicenseReader aSource)
LicenseReaderIssueResolver
This method is responsible for resolving an issue when license is corrupted. Implementation of this method should:
resolveLicenseCorrupted
in interface LicenseReaderIssueResolver
aSource
- identifies the license reader calling this method
true
if issue is resolved; false
otherwisepublic boolean updateLicense(LicenseReader aSource)
LicenseReaderIssueResolverExt
This method is responsible for updating a license to keep it up-to-date. Implementation of this method should:
updateLicense
in interface LicenseReaderIssueResolverExt
aSource
- identifies the license reader calling this method
true
if license has been updated or removed; false
otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |