黑莓数据绑定?

发布于 2024-10-04 11:52:57 字数 172 浏览 0 评论 0原文

我想我已经知道答案了,但是BB(5.0或更早版本)是否支持数据绑定到字段?

例如,如果我有一个项目向量,我可以将其绑定到一个列表(或某个字段),当新数据放入向量中时该列表将自动更新吗?

我认为这是我必须用 ListFieldCallback 编写的内容或其他领域中的等效内容。

谢谢

I think I already know the answer, but does BB (5.0 or earlier) have any support data binding to fields?

For example, if I have a vector of items, could I bind that to a list (or some field) that will get auto-updated when new data is placed into the vector?

I'm thinking that is something I'd have to write with the ListFieldCallback or it's equivalent in other fields.

Thanks

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

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

发布评论

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

评论(2

别念他 2024-10-11 11:52:57

您可以使用自制的观察器来实现这一点。 (http://en.wikipedia.org/wiki/Observer_pattern) 如果您愿意,您可以使用一个能够识别观察者的自定义向量。我以前做过这个并且有效。

You could implement this using a homemade observer. (http://en.wikipedia.org/wiki/Observer_pattern) You could use a custom vector which was aware of the observer if you wanted to. I've done this before and it works.

九八野马 2024-10-11 11:52:57

不幸的是,这种功能并不是开箱即用的。

作为在 BB 上实现 ListField 的起点,请查看 简单的 ListField 示例,作者:peter_strange。

Unfortunatelly such funcionality is not available right out of the box.

As a starting point to ListField implementaion on BB, take a look at Simple ListField example by peter_strange.

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