[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: JFace Table Viewer
|
Swetha schrieb:
> Hi,
> I have one doubt in JFace Table Viewer. Suppose I have table
> Viewer with two columns with the contents.. like column1 is Name and
> column2 is Size.
>
> There are totally 5 rows in the table viewer like
>
> Name Size
>
> project 0 10
> project 1 10 project 2 10 project 3 10 project 4 10
> what are the methods available in JFace Table Viewer so that I can
> access the column0 contents and column1 contents...
>
> Because my need is once the table is constructed with data.. dynamically
> I need to change the second row column1 content something like that...
>
> any one of u please help me.. Its urgent need to me...
> Thanks in advance,
>
> swetha
>
>
>
Hi,
Why does TableViewer needs to provide you with this information,
TableViewer is only the View part of the whole MVC story and is not
responsible for such this kind of task.
It's your model and controller (which you provide your own) who are
responsible. If you use POJOs as a datasources your simply have to
register a listener in your model-instance and if a certain value
changes you need to take some action (update the viewer, add remove
columns, ... ).
Tom