用于通过 SWT/JFace 与 WindowBuilder 进行数据绑定的资源

发布于 2024-10-03 03:24:00 字数 532 浏览 1 评论 0 原文

我刚刚开始使用 Google 的(现在免费)WindowBuilder(以前的实例化)创建 SWT/JFace 应用程序。

我发现数据绑定部分很困难,尽管它应该让我更容易。

例如,我无法将按钮的启用属性绑定到(我自己定义的)布尔函数。

是否有任何有关使用 WindowBuilder GUI 和/或数据绑定原理的资源(演示、文本、教程、示例)?

Google 页面实例化页面对我的帮助不够。

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

I find 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

趁微风不噪 2024-10-10 03:24:01

其价值在于:

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

Eclipse 新闻组是提出这些问题的好地方。尝试 eclipse.platform.jface 新闻组

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文