对于绑定String和Combo,我可以使用以下代码:
IObservableValue comboTypeObserveTextObserveWidget = SWTObservables.observeText(comboType);
IObservableValue typeObserveValue = PojoObservables.observeValue(router.getParameters(), "type.data");
bindingContext.bindValue(comboTypeObserveTextObserveWidget, typeObserveValue, updateStrategy, null);
Run Code Online (Sandbox Code Playgroud)
其中"type.data"是String.
但我想将combos的selectionIndex与Integer值绑定.我怎样才能做到这一点?