History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IZPACK-75
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Jeff Gordon
Reporter: Jeff Gordon
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IzPack

Heading Image on Left

Created: 24/Apr/08 02:54 PM   Updated: 11/May/08 12:02 PM
Component/s: Installer
Affects Version/s: 3.11.0
Fix Version/s: 4.0.0

Time Tracking:
Not Specified


 Description  « Hide
I have a branding need to display the header image on the left rather than the default right side.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Julien Ponge - 24/Apr/08 03:16 PM
Feel free to add an option that puts it on the left side.

Jeff Gordon - 24/Apr/08 03:31 PM
In InstallerFrame I have added an instance variable "imageLeft" which is false by default.

In createHeading() we look for the modifier key headingImageOnLeft:

<guiprefs width="600" height="480" resizable="no">
<modifier key="useHeadingPanel" value="yes"/>
<modifier key="useHeadingForSummary" value="yes"/>
<modifier key="headingImageOnLeft" value="yes"/>
<modifier key="headingLineCount" value="2"/>
<modifier key="headingFontSize" value="1.5"/>
<modifier key="headingBackgroundColor" value="0x00ffffff"/>
<modifier key="headingForegroundColor" value="0x00002d94"/>
<modifier key="headingPanelCounter" value="text"/>
<modifier key="headingPanelCounterPos" value="inHeading"/>
</guiprefs>

If its true then we:

  • Set the image to use a west layout - imgPanel.add(iconLab, BorderLayout.WEST);
  • Add an 8 pixel border to leftHeadingPanel (which will now be on the right)
  • Add to the northPanel the imgPanel, HorizontalGlue, and leftHeadingPanel
  • For all the heading labels set the X alignment to RIGHT

I have tested with various settings and it all looks OK. Only heading text and summaries should be affected.

Anyone see any issues?

  • Jeff

Julien Ponge - 24/Apr/08 03:47 PM
Sounds good, you can go ahead (just don't forget the documentation).

Jeff Gordon - 24/Apr/08 06:51 PM
Done as specified.