开发者

Resources for data binding with WindowBuilder with SWT/JFace

I just started creating a SWT/JFace application using the (now free) WindowBuilder from Google (previously instantiations).

I fin开发者_高级运维d the Data binding part difficult although it -should- make it easier for me.

For instance, I cannot bind the enabling-property of a button to a (myself defined) boolean function.

Are there any resources (demos, text, tutorials, examples) about using the WindowBuilder GUI and/or the data binding principle?

The information found on the google page or the instantiations page did not help me enough.


For what it's worth:

bindingContext.bindValue(
    new ComputedValue() {
      public Object calculate() {
        // calculate the enablement using the value of other, previously
        // created observables.
      }
    },
    WidgetProperties.enabled().observe(theButton)
  );

The Eclipse newsgroups are a great place to ask these questions. Try the eclipse.platform.jface newsgroup.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜