Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Is it possible to create CustomColumns for tables?
Is it possible to create CustomColumns for tables? [message #1403174] Tue, 22 July 2014 06:58 Go to next message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 367
Registered: October 2012
Location: Bern, Switzerland
Senior Member
We've created a number of custom fields for our application by defining the abstract model class and the corresponding SWT rendering class.

Is it also possible to define custom columns for tables? If so, what steps would I need to take?
Re: Is it possible to create CustomColumns for tables? [message #1403195 is a reply to message #1403174] Tue, 22 July 2014 10:02 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 936
Registered: October 2011
Senior Member
I think there is no API to plug an additional renderer implementation for custom-columns as you can do for custom-fields.

You can work at Table level (having your own table implementation extending the default one). Have a look at this blog article:
Scout tables with fixed columns. It is for RAP but I think it works the same way for SWT.

What is your use case? Have you other value Types? Using AbstractColumn<YourType> is not sufficient?

Re: Is it possible to create CustomColumns for tables? [message #1403204 is a reply to message #1403195] Tue, 22 July 2014 10:42 Go to previous messageGo to next message
Dennis Geesen is currently offline Dennis GeesenFriend
Messages: 43
Registered: June 2014
Member
I stuck into the same problem, since my idea was to provide a "ButtonColumn" for displaying some buttons (or icons with an action). The buttons should offer a more direct menu for different actions (e.g. "edit", "print" and so on). So, if you (will) have further experience, please let me know!
Re: Is it possible to create CustomColumns for tables? [message #1403234 is a reply to message #1403204] Tue, 22 July 2014 14:52 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 936
Registered: October 2011
Senior Member
I often see requirements to have an "action" column with links or buttons:

index.php/fa/18611/0/

In scout the way to add "actions" on a row is with a menu (type TableMenuType.SingleSelection):

index.php/fa/18612/0/

I know it is not the same requirement... But it is all you get in scout (out-of-the-box) for the moment.
Previous Topic:Using icons in a table
Next Topic:Decorating a boolean column with SWT
Goto Forum:
  


Current Time: Wed Apr 01 18:03:26 GMT 2015

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

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