Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Putting Buttons into Table Headline
Putting Buttons into Table Headline [message #1745846] Tue, 18 October 2016 10:54 Go to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 420
Registered: January 2014
Senior Member
I have a table where the bottom right headline is nearly empty and would allow me to build a more intuitive and concise UI if I could put there in addition to the headline text (left aligned) two buttons (right aligned).

I already googled a bit and looked at the code of table and didn't find an easy solution.

Does anybody know if such a thing would be possible?

And maybe even more important do you think it would be a good idea or am I violating good UI design on many levels?

Maybe at last a short overview on the use-case the table in question is in a property sheet and holds a list of items. The buttons would be add and remove and sofar placing the buttons on all sides of the table looked other awkward, required quite some mouse movement or used a lot of space. Therefore I'm looking for alternatives.
Re: Putting Buttons into Table Headline [message #1745860 is a reply to message #1745846] Tue, 18 October 2016 13:19 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 693
Registered: January 2012
Senior Member

I think you're asking: can I embed one or more widgets inside a table cell?

Yes, you can using a TableEditor. See Snippet126 for an example. Just in case, the SWT snippets are a great source of examples.

Brian.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Re: Putting Buttons into Table Headline [message #1745864 is a reply to message #1745860] Tue, 18 October 2016 13:56 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 420
Registered: January 2014
Senior Member
In principle yes and I've seen this. But I want to use the table headline Cell and I want this one cell be different from the cells in this column.
Previous Topic:Putting Buttons into Table Headline
Next Topic:Rendering of font Roboto Medium seems to be broken with antialiasing != SWT.DEFAULT
Goto Forum:
  


Current Time: Fri Dec 15 00:34:44 GMT 2017

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

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