Details
Description
Hello
I want to built an installer for two different brands. Therefore I need different images on the panels, i.e "Heading.image" or "Installer.image"
I managed to do this on the panels by registering a GUIListener at installerFrame and adjusting the images when switching panel.
But now I have two problems:
a) The explained way is not really nice
b) This is the point: I cannot use different images on LanguageDialog!
Wouldn't it be nice to have the possibility of using conditions for resources? This would solve both of my problems.
i.e.:
...
<res id="installer.langsel.img" src="langsel_Brand1.png" condition="is.Brand1"/>
<res id="installer.langsel.img" src="langsel_Brand2.png" condition="is.Brand2"/>
<res id="Heading.image" src="heading_Brand1.png" condition="is.Brand1"/>
<res id="Heading.image" src="heading_Brand2.png" condition="is.Brand2"/>
...
Thank you in advance for your answer.
Hello again
I have a different suggestion to solve my wish.
How about introducing a "resource bundle"?
We should have the possibility to define bundles of resources. BundleName should be set by SystemProperty and in defining a default in install.xml.
ResourceManager should then look for the asked resource in the following order:
/res/<bundleName>/<resourceName>_<iso3>
/res/<bundleName>/<resourceName>
/res/<resourceName>_<iso3>
/res/<resourceName>
ResourceManager should then already be used for the LanguageDialog and also for JFrameIcon in InstallerFrame.
i.e.
<resources>
<!-- bundle 1 -->
<bundle id="bundle1" default="yes">
<res id="Heading.image" src="path1/HeadingImage.png" />
<res id="installer.langsel.img" src="path1/langselImage.png" />
</bundle>
<!-- bundle 2 -->
<bundle id="bundle2">
<res id="Heading.image" src="path2/HeadingImage.png" />
<res id="installer.langsel.img" src="path2/langselImage.png" />
</bundle>
<!-- common resources -->
<res id="resource.id" src="path.to.resource" />
...
</resources>
Thank you in advance