23.12.2012 Views

ZK Developer's Guide

ZK Developer's Guide

ZK Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

}<br />

}<br />

button.setParent(parent);<br />

return button;<br />

[ 77 ]<br />

Chapter 3<br />

On the index.zul page, we have to extend the listbox component with listheader.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Additionally, we have to add a popup with the tooltip.update id to provide the<br />

tooltip for the pencil symbol.<br />

<br />

Update the media.<br />

<br />

Optimize the Result Presentation<br />

If we have many results in the list, we need paging. This feature is provided through<br />

a mold. In practice, even with a mold, the lists in <strong>ZK</strong> have proven to be too slow<br />

when getting bigger (10K elements). We just have to change the listbox component<br />

on index.zul, and the following presentation of the result.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!