|Check Data Binding Values [message #682917]
||Sun, 12 June 2011 13:17
| Ken Smith
Registered: May 2011
I am trying to bind some model data to my TableViewer widgets. I have no problems binding the data. But the only thing is that the widget gets bound value and then display it on the widget with the direct data value.|
So for example, if it was some kind of enumeration datatype like Movement.WALK, Movement.RUN, etc, the widget will show directly as WALK, RUN. I wish I could check the bound value and then display the data according to my own preference. In other words, if the bound value had a change in value and it was Movement.WALK, I wish to show in the TableViewer that "Player 1 is walking".
I am using windowsbuilder pro and I am using the generated code with something like this:
IObservableValue tableViewer_myTestObserveSingleSelection = ViewersObservables.observeSingleSelection(tableViewer_myTest);
IObservableList tableViewer_myTestDataContentObserveDetailList = BeansObservables.observeDetailList(tableViewer_myTestObserveSingleSelection, "DataContent", TestModelData.class);
So, is there a way to check a bound value before displaying it on the widget? Thanks!
Powered by FUDForum
. Page generated in 0.01937 seconds