简体   繁体   English

JGoodies列表绑定

[英]JGoodies list binding

Does the JGoodies list binding support binding list contents to a list object in the model? JGoodies列表绑定是否支持将列表内容绑定到模型中的列表对象? I know I can add listeners to the list model and domain model and coordinate changes between the two fairly easily, but I wasn't sure if JGoodies would do that. 我知道我可以将侦听器添加到列表模型和域模型中,并很容易地协调两者之间的更改,但是我不确定JGoodies是否会这样做。 I could only find list binding that dealt with list selection events. 我只能找到处理列表选择事件的列表绑定。

I'd suggest you use GlazedLists . 我建议您使用GlazedLists It's really easy to use and works great. 它真的很容易使用并且效果很好。

One issue is you have to use one of their classes that implements EventList ; 一个问题是您必须使用他们的实现EventList的类之一; you can't just bind a list model to a pre-existing List . 您不能只将列表模型绑定到预先存在的List

It looks like the LinkedListModel and ArrayListModel do this. 看起来LinkedListModel和ArrayListModel可以做到这一点。 I overlooked those before. 我忽略了那些。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM