TreeTableRidget: Bind model to modifiable value [message #585717] |
Tue, 08 June 2010 07:40  |
Eclipse User |
|
|
|
Hi,
i need to bind a TreeTableRidget to a global modifiable value. So far changes on that value doesn't force a change in the TreeTable automatically. Only if reassign the binding after the value has changed, the TreeTable displays the new value.
Isn't there a way to bind the TreeTableRidget to an modifiable value like e.g. ITableRidget.bindToModel(IObservableList, ...)?
thanks, matthias
|
|
|
Re: TreeTableRidget: Bind model to modifiable value [message #585730 is a reply to message #585717] |
Tue, 08 June 2010 08:14  |
Eclipse User |
|
|
|
Am 08.06.10 13:40, schrieb Matthias:
> Hi,
>
> i need to bind a TreeTableRidget to a global modifiable value. So far
> changes on that value doesn't force a change in the TreeTable
> automatically. Only if reassign the binding after the value has changed,
> the TreeTable displays the new value.
> Isn't there a way to bind the TreeTableRidget to an modifiable value
> like e.g. ITableRidget.bindToModel(IObservableList, ...)?
>
> thanks, matthias
>
In general in Riena changes in the model are only promoted to the widget either when you bind or by invoking the method
updateFromModel on the ridget. Its the same for all ridgets and its also true for the TreeTableRidget.
So when you finished updating the model, call updateFromModel on the ridget and that should be it.
christian
|
|
|
Powered by
FUDForum. Page generated in 0.71115 seconds