PageRenderTime 24ms CodeModel.GetById 21ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/webportal/src/main/java/au/org/emii/portal/databinding/EmptyActiveLayersRenderer.java

http://alageospatialportal.googlecode.com/
Java | 17 lines | 12 code | 5 blank | 0 comment | 0 complexity | 2779b545253e023f27b4c3cdada881ed MD5 | raw file
 1package au.org.emii.portal.databinding;
 2
 3import au.org.emii.portal.event.ActiveLayerDNDEventListener;
 4import org.zkoss.zul.Listitem;
 5import org.zkoss.zul.ListitemRenderer;
 6
 7public class EmptyActiveLayersRenderer implements ListitemRenderer {
 8
 9	public void render(Listitem item, Object data) throws Exception {
10		item.setDraggable("false");
11		item.setDroppable("true");
12		
13		item.setLabel((String) data);
14		item.addEventListener("onDrop", new ActiveLayerDNDEventListener());
15	}
16
17}