Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365458 - SWT: Form should have a header
Summary: SWT: Form should have a header
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-02 11:36 EST by Claudio Guglielmo CLA
Modified: 2021-08-19 11:18 EDT (History)
1 user (show)

See Also:


Attachments
header example (6.09 KB, image/png)
2011-12-02 11:43 EST, Claudio Guglielmo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio Guglielmo CLA 2011-12-02 11:36:12 EST
There should be a possibility to set a header

The eclipse form provides a possiblity to set a text which is shown on its header. Additionally it is possible to decorate the header which looks very well. Adding such a header should be possible when using scout. 

Suggestion: Use the existing subtitle property of the IForm and show the header if that property is set. Also show the image set with IForm.getIcon() in the header section.

Some example code:

form.setText(header);

Image image=getIcon(iconId);
if(image != null){
  form.setImage(image);
}

getFormToolkit().decorateFormHeading(form);
Comment 1 Claudio Guglielmo CLA 2011-12-02 11:43:26 EST
Created attachment 207851 [details]
header example
Comment 2 Ivan Motsch CLA 2011-12-04 16:19:52 EST
Added the call to decorate header to the default form toolkit method createForm in the swt/swing environments.
Comment 3 Matthias Zimmermann CLA 2012-07-09 06:50:25 EDT
ticket closed.
deliverd as part of eclipse scout 3.8.0 (juno release train)