com.componio.jlicensure.client
Interface LicenseCheck

All Superinterfaces:
PropertiesSettable

public interface LicenseCheck
extends PropertiesSettable

A LicenseCheck implementation checks availability and validity of a license for a given license request.


Method Summary
 boolean checkLicense(LicenseRequest request)
          Check whether a valid license is available for the given license request.
 boolean isUIEnabled()
          Returns whether the license check implementation should use a graphical user interface or not.
 void setUIEnabled(boolean uiEnabled)
          Defines whether the license check implementation should use a graphical user interface or not.
 void setUIParent(java.awt.Component uiParent)
          Set the parent component to be used for ui display.
 
Methods inherited from interface com.componio.jlicensure.shared.PropertiesSettable
setProperties
 

Method Detail

checkLicense

boolean checkLicense(LicenseRequest request)
                     throws java.lang.Exception
Check whether a valid license is available for the given license request.

Parameters:
request - license request
Throws:
java.lang.Exception

setUIEnabled

void setUIEnabled(boolean uiEnabled)
Defines whether the license check implementation should use a graphical user interface or not.

Parameters:
uiEnabled - true or false, default is false

isUIEnabled

boolean isUIEnabled()
Returns whether the license check implementation should use a graphical user interface or not.

Parameters:
uiEnabled - true or false, default is false

setUIParent

void setUIParent(java.awt.Component uiParent)
Set the parent component to be used for ui display. This is only relevant when the uiEnabled property is set to true.