19 package org.turro.plugin.command;
21 import java.util.Collection;
22 import org.turro.plugin.contacts.IContact;
23 import org.zkoss.zk.ui.Component;
24 import org.zkoss.zk.ui.ext.AfterCompose;
25 import org.zkoss.zul.Borderlayout;
26 import org.zkoss.zul.Center;
27 import org.zkoss.zul.Vlayout;
28 import org.zkoss.zul.Window;
34 public class SummaryView extends Window implements AfterCompose {
37 private String summary;
40 this.iContact = iContact;
44 this.summary = summary;
49 if(iContact !=
null && iContact.
isValid()) {
54 Borderlayout bl =
new Borderlayout();
58 Center c =
new Center();
61 c.setAutoscroll(
true);
62 Vlayout vbox =
new Vlayout();
64 for(Object comp : comps) {
65 if(comp instanceof Component) {
66 vbox.appendChild((Component) comp);
static Collection< Object > getSummaryFor(IContact contact, String name)
void setIContact(IContact iContact)
void setSummary(String summary)