This feature provides a way to extend the functionality of IzPack with your own code that will be run as part of an IzPack panel.
...
The custom code has access to variables defined at the point when the panel is executed.
Attribute | Usage | Required |
---|---|---|
stage | This controls the timing of the execution of the custom |
...
code | required | |
classname | This is the name of the class to be executed. | required |
The class must implement PanelAction and override the executeActionMethodexecuteAction and initialize methods.
The InstallData object is passed in as an argument. Its methods can be used to access the values of the currently defined installation variables.
...
Code Block |
---|
<panel classname="UserInputPanel" id="creature.panel"> <!--Print out the variables saved by the custom field --> <actions> <action stage="postvalidate" classname="com.example.action.PrintCustomFields"/> </actions> </panel> |
This article was inspired by the work done by Miles Tjandrawidjaja and the code example is entirely based on his code.