/* CollectionIndexComposer.java Purpose: Description: History: Created by Dennis Copyright (C) 2011 Potix Corporation. All Rights Reserved. */ package org.zkoss.zktest.bind.basic; import org.zkoss.bind.BindComposer; import org.zkoss.bind.annotation.Command; import org.zkoss.bind.annotation.NotifyChange; import org.zkoss.zul.ListModelList; /** * @author Dennis Chen * */ public class CollectionIndexDefaultComposer extends BindComposer { private String message1; ListModelList<Item> items = new ListModelList<Item>(); public CollectionIndexDefaultComposer() { items = new ListModelList<Item>(); items.add(new Item("A")); items.add(new Item("B")); items.add(new Item("C")); items.add(new Item("D")); } public ListModelList<Item> getItems() { return items; } static public class Item { String name; public Item(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } } }