Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366697

Summary: A RowModel will have a lot of redundancy if you want to use dynamically columns in the ITableRidget
Product: [RT] Riena Reporter: Sergei Jochim <sergei.jochim>
Component: ridgetAssignee: Project Inbox <riena.core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: christian.campo
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Sergei Jochim CLA 2011-12-14 09:23:26 EST
Build Identifier: 20110615-0604

Initial situation:
I have a table, which has a dynamic number of columns.
We always deliver some properties to the table, which will be connected to the variables in the model.
My model has a list(ArrayList) of elements. If i want to use the elements to get/set the values I need to create get-/setter methods for each element in the list. 

Problem:
I want to add a lot of elements (X-elements) into the list, which represent the columns. In this case I need to create X-methodes in the model. This isn't nice, because you will always have to change the class, if more columns are needed. I could implement a buffer of 100 methods/properties, but is this the right way? This class would have a lot of redundant code.



Reproducible: Always