Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366697 - A RowModel will have a lot of redundancy if you want to use dynamically columns in the ITableRidget
Summary: A RowModel will have a lot of redundancy if you want to use dynamically colum...
Status: CLOSED WONTFIX
Alias: None
Product: Riena
Classification: RT
Component: ridget (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 09:23 EST by Sergei Jochim CLA
Modified: 2016-10-04 09:30 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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