Java – beansbinding, jgoodies binding, Jface or glazed list?

I started to investigate beans binding and my head began to rotate There are many options, but this is a core design decision that is difficult to change I have a set of interrelated POJOs that I want to edit with GUI What is the best choice for stable and simple deployment? If there is no good solution, can these options be played together?

The following are the current competitors:

>Beansbinding (aka jsr295) > jgoodies binding (BSD license) > Jface (eclipse public license?) > Glazed lists (LGPL license)

Please share your experience with these libraries Especially if you try one and switch to another

Solution

I have used all of the above except Jface Starting with J goodies, I found it a little difficult to use Beansbinding is easier to understand, but its support for list operations is very poor Enter glazed lists GL is one of the best open source libraries I have ever used Recently, they added a pluggablelist implementation that allows the glassedlists list to be bound to properties listed from POJOs using beansbinding The result is the best of both worlds

We also often use the calculations API (part of the glowed lists) to calculate the attributes of the list range, and bind the results (using BB) to POJOs, GUI widgets, etc... adding a label to show the number of elements in the list (or any other calculation) is a crazy simple list

I would say that BB has a lot of room for improvement. In fact, it has been assigned to better beans binding - if you can, I suggest you move forward with BBB

We have several applications that use a combination of BB and GL (one of which is a very large, complex GUI application) and are satisfied with the results

I suggest you spend some time playing binding before you start using it Switching to declarative programming style takes some practice, but once it's done, the results are almost miraculous I suggest at least 3 small and complete projects so that you can understand it (if you can introduce the concept of presentation model into your design, it will also bring great rewards)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>