Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

This pages needs a review and misses a practical example. If you got the know-how you can help here to improve the documentation!

Creating Your Own Panels

In IzPack, all of the actual work of installing an application is done in panels. The IzPack framework is primarily there to support supports the operation of the panels and to manage manages the navigation through the installation process. This enables a user to decide which operations are carried out The operations to executed during an installation and the order in which they are carried out, simply is specified by listing the appropriate panels in the desired order.

As far as extending the functionality of IzPack is concerned, the The result of this design is that new functionality can be integrated into IzPack, by adding new panels to the framework and then listing them in the install spec. 

...

The next step would be to have a look at another panel implementation, so you can see how things are done. Make sure you look at the less complicated panels, as the panels with advanced features will only be confusing. All the code for building UI and such, only detracts from the essentials of what a panel needs to do. This means that you shouldn't start with UserInputPanel or ShortcutPanel.  Probably HelloPanel is probably a much better choice at this stage. The source code for panels is located at: /src/lib/com/izforge/izpack/panels.

...

A common way to define language dependant messages for custom panels is to define a resource for custom langpacks.


 

<resources>
    ...
    <res id="CustomLangpack.xml_deu"
        src="myConfigSubPath/CustomLangpack_deu.xml"/>
    ...
</resources>
 


This appears in the install.xml file and defines a German language pack for a custom panel.

...