Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » AbstractTable: Dynamic Columns
AbstractTable: Dynamic Columns [message #690270] Wed, 29 June 2011 09:53 Go to next message
Adrian Moser
Messages: 67
Registered: March 2011
Member
Is there a way to add dynamic columns to an instance of AbstractTable?
I know there are several methods to add rows.
Re: AbstractTable: Dynamic Columns [message #690304 is a reply to message #690270] Wed, 29 June 2011 10:38 Go to previous messageGo to next message
Ivan Motsch is currently offline Ivan Motsch
Messages: 100
Registered: March 2010
Senior Member
Yes, you can either directly override

AbstractTable.injectColumnsInternal(List<IColumn<?>> columnList)

or setting a ITableCustomizer to the table that delegates the add of custom columns.
ITable.setTableCustomizer(myTableCustomizer);

Using the interface ITableCustomizer also adds menus to the table header, so the user can "Add column", "Modify column", etc.

That way you have control on both, adding dynamic columns and runtime management of those.
Re: AbstractTable: Dynamic Columns [message #696724 is a reply to message #690304] Thu, 14 July 2011 17:52 Go to previous message
Adrian Moser
Messages: 67
Registered: March 2011
Member
Thank you, Ivan.

Is there a way to get rid of the additional menus (add column...) using ITableCustomizer, since I just want to add some dynamic columns, but I don't want any menu actions for the user.

[Updated on: Thu, 14 July 2011 17:54]

Report message to a moderator

Previous Topic:NullPointerException when connecting to http://localhost/TutorialMiniCrm/process
Next Topic:(Really) dynamic form fields?
Goto Forum:
  


Current Time: Fri Oct 24 07:54:52 GMT 2014

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

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