Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Nesting SWT Tables(Nesting SWT Tables)
Nesting SWT Tables [message #638804] Fri, 12 November 2010 16:03 Go to next message
Arun Kumar Simhadri is currently offline Arun Kumar SimhadriFriend
Messages: 5
Registered: November 2010
Location: Cedar Rapids
Junior Member
Hi All,

A new discussion for SWT Tables nesting. I need to implement such a table as part of my current work and I am not sure how to start.

Thanks,
Arun
Re: Nesting SWT Tables [message #638805 is a reply to message #638804] Fri, 12 November 2010 16:05 Go to previous messageGo to next message
Arun Kumar Simhadri is currently offline Arun Kumar SimhadriFriend
Messages: 5
Registered: November 2010
Location: Cedar Rapids
Junior Member
I am planning to implement a Tree Table in which if one of the node is expanded, the expanded node should display a inner table with it's own Column header.

Any inputs are welcome!!!


Thanks,
Arun
Re: Nesting SWT Tables [message #639446 is a reply to message #638805] Tue, 16 November 2010 14:48 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
You would simplify your task greatly if you could change your UI to have a
separate Table beside the Tree, and change the Table's content as needed
whenever a TreeItem was selected.

In the absence of this, trying to give an swt TreeItem the appearance of a
child Table is likely to be painful. The basic approach would be to give
the TreeItem enough empty child items to reserve the appropriate amount of
vertical space for the child table, and then when that TreeItem is expanded
by the user, you would put an ON_TOP Shell containing the Table at the
position where the TreeItem's first child would appear. This may work
reasonably well for a simple Tree, but once details come up like making the
Table's Shell adjust to Tree scrolling and clipping, you may be wishing you
hadn't gone down this route.

Nebula's Grid control may be a bit more helpful with some of this, I'm not
sure. If you want to investigate this see
http://eclipse.org/nebula/widgets/grid/grid.php .

Grant


"Arun Kumar Simhadri" <ArunSimha@hcl.in> wrote in message
news:ibjocj$oga$1@news.eclipse.org...
> I am planning to implement a Tree Table in which if one of the node
> is expanded, the expanded node should display a inner table with it's own
> Column header.
> Any inputs are welcome!!!
>
>
> Thanks,
> Arun
>
Re: Nesting SWT Tables [message #639532 is a reply to message #639446] Tue, 16 November 2010 19:43 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6363
Registered: July 2009
Senior Member
Am 16.11.10 15:48, schrieb Grant Gayed:
> You would simplify your task greatly if you could change your UI to have a
> separate Table beside the Tree, and change the Table's content as needed
> whenever a TreeItem was selected.
>
> In the absence of this, trying to give an swt TreeItem the appearance of a
> child Table is likely to be painful. The basic approach would be to give
> the TreeItem enough empty child items to reserve the appropriate amount of
> vertical space for the child table, and then when that TreeItem is expanded
> by the user, you would put an ON_TOP Shell containing the Table at the
> position where the TreeItem's first child would appear. This may work
> reasonably well for a simple Tree, but once details come up like making the
> Table's Shell adjust to Tree scrolling and clipping, you may be wishing you
> hadn't gone down this route.
>
> Nebula's Grid control may be a bit more helpful with some of this, I'm not
> sure. If you want to investigate this see
> http://eclipse.org/nebula/widgets/grid/grid.php .
>

I'm afraid that beside allowing cells to be off different height Grid is
also not a solution. There has been a widget part of nebula named CTree
IIRC but it only worked on Linux AFAIK.

I can only second Grant to say you should probably rethink your UI-Concept.

Tom
Re: Nesting SWT Tables [message #639963 is a reply to message #638804] Thu, 18 November 2010 14:58 Go to previous message
Arun Kumar Simhadri is currently offline Arun Kumar SimhadriFriend
Messages: 5
Registered: November 2010
Location: Cedar Rapids
Junior Member
Thanks Guys,

Seems to be Nebula grid also doesnt help me. So finally I raised a request for UI Design change and it is in progress.


Arun
Previous Topic:Accessibility issue in a tableViewer
Next Topic:Re: SWT control preferred, minimum and maximum sizes
Goto Forum:
  


Current Time: Mon Oct 23 02:25:53 GMT 2017

Powered by FUDForum. Page generated in 0.02237 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software