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 />

public MyListbox()<br />

{<br />

}<br />

public void removeMedia(final Media media)<br />

{<br />

((MediaListModel)this.getModel()).removeMedia(media);<br />

}<br />

/**<br />

* Setting the id and register the Listbox as listener for the<br />

MediaDAOFactory.<br />

*/<br />

@Override<br />

public void setId(final String id)<br />

{<br />

super.setId(id);<br />

MediaDAOFactory.registerListener(this);<br />

}<br />

This implementation is used through the use attribute of the listbox component.<br />

<br />

[ 73 ]<br />

Chapter 3<br />

To complete the description, the complete implementation of the changed index.<br />

zul page is shown next:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

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

Saved successfully!

Ooh no, something went wrong!