We've released JVx 2.0.2 last friday and you should know that it's available
It's a smaller update with bugfixes and some improvements. One new feature is the support for an additional row in the databook. We use this row for searching records.
Other interesting features, from the changelog, are
- added listener to IConnection for notifications about property changes
- DBAccess isModified introduced
- register value changed of single column
- register key event listener for certain key
- DataBookBuilder introduced
- ICloseable introduced
- Set ORDER BY as property of DBStorage
- new selection modes: CURRENT_ROW_DESELECTED, CURRENT_ROW_SETFILTER
CURRENT_ROW_DESELECTED_SETFILTER
- CommonUtil.close introduced
Have fun
We didn't have support for Buttons with popup menus in JVx because standard Swing doesn't support this feature out-of-the box. But such a component would be very useful for some UIs.
We didn't change our UI definition but we started with support in Swing. Our JVxButton now has support for showing a popup menu. It could be like this one:
DropDown
We've added some buttons to VisionX, because it reduces the amount of buttons
VisionX with new buttons
It's easy to use the new feature in your Swing application and also in your JVx application (for Swing UIs):
UIPopupMenu pmDocumentation = new UIPopupMenu();
pmDocumentation.setTranslation(getLauncher().getTranslation());
pmDocumentation.add(miHelp);
pmDocumentation.add(miSpecification);
((JVxButton)butDocumentation.getResource()).setPopupMenu((JPopupMenu)pmDocumentation.getResource());
//because we add the resource
pmDocumentation.addNotify();
There are some things to know:
- Set the translation because the resource is added and the UIPopupMenu doesn't have a parent.
- Call addNotify to enable translation (same problem because of missing parent)
- You should check if the resource of the button is an instance of JVxButton to be UI technology independent
If you work with above code, you'll have all JVx features like simple event handling or translation.