com.jp.protection.gui.dialogs
Class DefaultLicenseAcceptanceDelegate

java.lang.Object
  extended by com.jp.protection.gui.dialogs.DefaultLicenseAcceptanceDelegate
All Implemented Interfaces:
LicenseAcceptanceDelegate

public class DefaultLicenseAcceptanceDelegate
extends java.lang.Object
implements LicenseAcceptanceDelegate

Default implementation of the LicenseAcceptanceDelegate responsible for showing a dialog containing the text of the license agreement its terms and conditions and prompts the user for the license acceptance.


Field Summary
protected  java.awt.Component fOwner
           
protected  java.lang.String fTitle
           
 
Constructor Summary
DefaultLicenseAcceptanceDelegate(java.awt.Component aOwner, java.lang.String aTitle)
          Constructs an instance of the DefaultLicenseAcceptanceDelegate
 
Method Summary
 boolean acceptLicense(LicenseHost aLicenseHost)
          Implementation of the acceptLicense method responsible for showing a dialog containing the text of the license agreement its terms and conditions and prompts the user for the license acceptance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fOwner

protected java.awt.Component fOwner

fTitle

protected java.lang.String fTitle
Constructor Detail

DefaultLicenseAcceptanceDelegate

public DefaultLicenseAcceptanceDelegate(java.awt.Component aOwner,
                                        java.lang.String aTitle)
Constructs an instance of the DefaultLicenseAcceptanceDelegate

Parameters:
aOwner - a component that acts as an owner for the dialog
aTitle - The title for the dialog
Method Detail

acceptLicense

public boolean acceptLicense(LicenseHost aLicenseHost)
Implementation of the acceptLicense method responsible for showing a dialog containing the text of the license agreement its terms and conditions and prompts the user for the license acceptance.

Specified by:
acceptLicense in interface LicenseAcceptanceDelegate
Parameters:
aLicenseHost - defines caller LicenseHost
Returns:
true if the user have accepted the terms of the license agreement; false otherwise