AW: AW: [izpack-users] AW: Process user input

Klaus klaus at vommond.de
Fri Mar 10 15:18:47 CET 2006


-----Ursprüngliche Nachricht-----
Von: Klaus [mailto:klaus at vommond.de] 
Gesendet: Freitag, 10. März 2006 15:19
An: 'izpack-users at berlios.de'
Betreff: AW: AW: [izpack-users] AW: Process user input

Hi Klaus,

Thanks for the quick response. Could you give me a hint, how to comile my
own Listener? Looking into the build.xml a saw a makro <macrodef
name="build-installer-listener">..</makro>. Do I only have to change the
name etc? How do I cal this marko? In the doku stands something about an
atncall, but every time I try to insert this into the build xml, it won't
compile.

My Listerner is in the package src/lib/herbie/install

-----Ursprüngliche Nachricht-----
Von: izpack-users-admin at berlios.de [mailto:izpack-users-admin at berlios.de] Im
Auftrag von Klaus Bartz
Gesendet: Freitag, 10. März 2006 09:21
An: izpack-users at berlios.de
Betreff: Re: AW: [izpack-users] AW: Process user input

The data container which will be present during the hole
installation is an object of the class InstallData. There is
only one object of it. The non-GUI-base-class is AutomatedInstallData.
In a panel which will be derived from IzPanel you can access
via the class member idata.
In a custom action derived from SimpleInstallerListener there is
the getter getInstalldata().
To store informations from one panel to an other (or to a custom
action) it is common to store this information as property, means:

String value = "das was ich mir merken will";
idata.setVariable("myIdentifier", value);

example: JDKPathPanel.java line 102.

To access in a panel:

String myValue = idata.getVariable("myIdentifier");

example: JDKPathPanel.java line 118.

To access in a custom action:

String myValue = getInstalldata().getVariable("myIdentifier");

example: RegistryInstallerListener.java line 138 (little bit complex)

In custom actions there is often an access to all variables:

Properties vars = getInstalldata().getVariables();

You can use SummaryLoggerInstallerListener.afterPacks as an
example for getVariables and other things from InstallData.

Do not try to access the panel objects directly. It will be possible
with some hacks, but you will catch more problems you would have.
This is the common way not only in IzPack. MSI has a "near by mimik".

Hope it helps

Klaus

Am 09.03.2006, 22:52 Uhr, schrieb Klaus <klaus at vommond.de>:

> I need a custom panel and the data of these panel must be available in a
> custom action. I need some username, password etc. to connect to an
> database.
>
> Thx,
>
> Klaus
>
> -----Ursprüngliche Nachricht-----
> Von: izpack-users-admin at berlios.de  
> [mailto:izpack-users-admin at berlios.de] Im
> Auftrag von Klaus Bartz
> Gesendet: Donnerstag, 9. März 2006 18:06
> An: izpack-users at berlios.de
> Betreff: Re: [izpack-users] AW: Process user input
>
> Hi Klaus,
> I do not really understand what you mean.
> Are you speaking of a custom panel or a custom action?
> What user input and what you would process?
>
> Cheers
>
> Klaus
>
> Am 09.03.2006, 17:40 Uhr, schrieb Klaus <klaus at vommond.de>:
>
>> How do I process the user input. I need to know the input in my own
>> action,
>> after the last pack is zipped out. Unfortunately this chapter is missing
>> in
>> the documentation.
>>
>>
>> Thx,
>>
>>
>> Klaus
>>
>> _______________________________________________ izpack-users mailing  
>> list
>> izpack-users at lists.berlios.de
>> http://lists.berlios.de/mailman/listinfo/izpack-users
>>
>>
>> __________ NOD32 1.1422 (20060301) Information __________
>>
>> Diese E-Mail wurde vom NOD32 Antivirus System geprüft
>> http://www.nod32.com
>>
>
>
>



-- 
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
_______________________________________________
izpack-users mailing list
izpack-users at lists.berlios.de
http://lists.berlios.de/mailman/listinfo/izpack-users




More information about the izpack-users mailing list