Screenshot
Usage
A panel to show the PDF form of the licence of the application.
This panel can prompt the user to acknowledge the license agreement. They block unless The installation blocks until the user selects the 'agree' or 'Quit' option.
To specify the license agreement text you have to use the PdfLicencePanelPDFLicencePanel.licence
resource.
You can use multiple instances of PDFLicencePanel this way:
Code Block | ||||
---|---|---|---|---|
| ||||
<resources> <res id="PDFLicencePanel.licence" src="iz/apache-license.pdf"/> </resources> <panels> <panel classname="PDFLicencePanel" id="licencepanel.eula" /> </panels> <jar src="deps/batik-awt-util.jar" /> <jar src="deps/batik-dom.jar" /> <jar src="deps/batik-svg-dom.jar" /> <jar src="deps/batik-svggen.jar" /> <jar src="deps/batik-util.jar" /> <jar src="deps/batik-xml.jar" /> <jar src="deps/commons-logging.jar" /> <jar src="deps/fontbox.jar" /> <jar src="deps/icepdf-core.jar" /> <jar src="deps/icepdf-viewer.jar" /> <jar src="deps/jai-codec.jar" /> <jar src="deps/jai-core.jar" /> <jar src="deps/jempbox.jar" /> <jar src="deps/pdfbox.jar" /> |
You can define multiple instances of PDFLicencePanel. For this case, the license text resource has no longer the default name, but is to be assembled from PDFLicencePanel.<panel id>
.
Code Block | ||||
---|---|---|---|---|
| ||||
<resources>
<res id="PDFLicencePanel.GNU" src="iz/GNU-License.pdf"/>
<res id="PDFLicencePanel.MyLicense" src="iz/My-License.pdf"/>
</resources>
<panels>
<panel classname="PDFLicencePanel" id="GNU" />
<panel classname="PDFLicencePanel" id="MyLicense" />
</panels>
... |
If the id
parameter is left off of the panel
then the old default resource of the PDFLicencePanel.licence
resource is read.
Info |
---|
For capabilities of ICEpdf and compatibility concerns see the ICEpdf Documentation. |
...
Since 5.0.7:
For the console installation mode, the info text can be preformatted for displaying using the following features:
...
The two options work independently on each other. If there are both activated, word wrapping is done before calculating the page size for paging.
Labels/Messages
id | Description |
---|---|
LicencePanel.info | The label text to be shown as panel label above the contents. |
Resources
Resourceid | Description |
---|---|
PDFLicencePanel.licence<panel id> | The name of the PDF file that contains the license agreement text to show on the panel. If you don't specify the panel id then pane id is assumed to be licence (i.e. the resource id will be PDFLicencePanel.licence). |
Localization
The PDFLicencePanel is fully localized.
...
Code Block | ||
---|---|---|
| ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>some-group-id</groupId> <artifactId>some-parent-artifact-id</artifactId> <version>1.0.0-SNAPSHOT</version> </parent> <artifactId>some-artifact-id</artifactId> <name>Sample Installer</name> <description>Installer for Sample</description> <packaging>jar</packaging> <dependencies> <!-- PDF Panel --> <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> <version>1.8.10</version> </dependency> <dependency> <groupId>org.icepdf.os</groupId> <artifactId>icepdf-core</artifactId> <version>6.0.1</version> </dependency> <dependency> <groupId>org.icepdf.os</groupId> <artifactId>icepdf-viewer</artifactId> <version>6.0.1</version> </dependency> <!-- PDF Panel --> </dependencies> <build> <defaultGoal>package</defaultGoal> <resources> <resource> <directory>src/izpack</directory> <filtering>true</filtering> </resource> </resources> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <encoding>${project.build.sourceEncoding}</encoding> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <configuration> <transitive>true</transitive> </configuration> <executions> <execution> <id>pdf</id> <phase>process-resources</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <stripVersion>true</stripVersion> <includeScope>compile</includeScope> <outputDirectory>${stage.dir.fullpath}/deps</outputDirectory> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.izpack</groupId> <artifactId>izpack-maven-plugin</artifactId> <version>${izpack-maven-plugin.version}</version> <dependencies> <dependency> <groupId>org.codehaus.izpack</groupId> <artifactId>izpack-compiler</artifactId> <version>${izpack.version}</version> </dependency> <!-- PDF Panel --> <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> <version>1.8.10</version> </dependency> <dependency> <groupId>org.icepdf.os</groupId> <artifactId>icepdf-core</artifactId> <version>6.0.1</version> </dependency> <dependency> <groupId>org.icepdf.os</groupId> <artifactId>icepdf-viewer</artifactId> <version>6.0.1</version> </dependency> <!-- PDF Panel --> </dependencies> <configuration> <baseDir>${stage.dir.fullpath}</baseDir> <installFile>${stage.dir.fullpath}/install.xml</installFile> <mkdirs>true</mkdirs> <jarName>${project.build.finalName}-standard</jarName> </configuration> <executions> <execution> <id>standard-installer</id> <phase>package</phase> <goals> <goal>izpack</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <repositories> <repository> <id>ice-maven-release</id> <name>Ice Maven Release Repository</name> <url>http://anonsvn.icesoft.org/repo/maven2/releases</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>ice-maven-release</id> <name>Ice Maven Release Repository</name> <url>http://anonsvn.icesoft.org/repo/maven2/releases</url> </pluginRepository> </pluginRepositories> </project> |
Limitations
The panel name & panel id are not taken into account for the panel label, the key is always taken as LicencePanel.info. The label LicencePanel.info is shared with LicencePanel & HTMLLicencePanel as well.