Bug 433912 - [Grid] Fixed first row in Tree/TableViewer
Summary: [Grid] Fixed first row in Tree/TableViewer
Status: NEW
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-01 03:38 EDT by Mitch B. CLA
Modified: 2014-06-03 06:36 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mitch B. CLA 2014-05-01 03:38:23 EDT
For layout issues we need a first fixed row in rwt-jface table- & treeviewer. The use case here is to place control widgets inside the regarding column (like filter etc) - it should not be possible to scroll & hide these controls by the user.

(As a workaround we created a table/treewidget composed by 2 viewerwidgets - but it is not very reliable)
Comment 1 Tim Buschtoens CLA 2014-05-22 05:19:16 EDT
A control placed in a tree/table will not scroll with the content in any case. Therefore it should suffice to just have the first row empty, or am I missing something?
Comment 2 Mitch B. CLA 2014-06-03 06:36:15 EDT
(In reply to Tim Buschtoens from comment #1)
> A control placed in a tree/table will not scroll with the content in any
> case. 

I didn´t notice this and tried to test it, but:

>Therefore it should suffice to just have the first row empty, or am I
> missing something?

Unfortunately i have no clue how to achieve this (neither by using contentprovider for virtual viewers nor simple Arraylists as input. I tried to modify the TableViewerTab in ControlsDemo, added after loc 164:marriedColumn = createMarriedColumn();

 final Table table = viewer.getTable();
        final TableItem item = new TableItem(table, SWT.NONE);
        final TableEditor editor = new TableEditor(table);
        final Button testControl = new Button(table, SWT.CHECK);
        testControl.pack();
        editor.minimumWidth = testControl.getSize().x;
        editor.horizontalAlignment = SWT.CENTER;
        editor.setEditor(testControl, item, 0);

but getting now a AssertionFailedException on setInput(persons) )