/* SelectEventDataBuilder.java
Purpose:
Description:
History:
Mar 26, 2012 Created by pao
Copyright (C) 2011 Potix Corporation. All Rights Reserved.
*/
package org.zkoss.zats.mimic.impl.au;
import java.util.Map;
import org.zkoss.zats.mimic.impl.EventDataBuilder;
import org.zkoss.zk.ui.event.SelectEvent;
/**
* AU data builder for SelectEvent.
*
* @author pao
*/
public class SelectEventDataBuilder implements EventDataBuilder<SelectEvent> {
public Map<String, Object> build(SelectEvent evt,Map<String,Object> data) {
AuUtility.setEssential(data,"items",evt.getSelectedItems());//id set of items
AuUtility.setReference(data,evt.getReference());
return data;
}
public Class<SelectEvent> getEventClass(){
return SelectEvent.class;
}
}