O'Reilly logo

ZK Developer's Guide by Markus Stauble, Hans-Jurgen Schumacher, Jurgen Schumacher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding Drag-and-Drop

One feature of many desktop applications is drag-and-drop. Therefore, we should implement such a feature, too. We want to have the ability to drag a list item from the result list of media to a separate list to remember the items later. The modified application screen is as shown in the figure:

We added a window component with the title to remember to our application. This component should be moveable around the browser, and should also be able to overlap other components. The following screenshot shows the overlapping feature:

To activate the overlap feature for a window, you simply have to call one method, doOverlapped() ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required