package zk.support.customer.vw.performancebiglist; import org.zkoss.zk.ui.Page; import org.zkoss.zul.Listitem; public class DebugListitem extends Listitem { private static final long serialVersionUID = 1L; static int count = 0; static long lastTime = System.currentTimeMillis(); public DebugListitem() { super(); logCount(); } public DebugListitem(String label, T value) { super(label, value); logCount(); } public DebugListitem(String label) { super(label); logCount(); } // @Override // public void onPageAttached(Page newpage, Page oldpage) { // super.onPageAttached(newpage, oldpage); // logTimeDiff("attach "); // } // // @Override // public void onPageDetached(Page page) { // System.out.println(count + " "); // logTimeDiff("detach "); // } // // private void logTimeDiff(String message) { // long time = System.currentTimeMillis(); // System.out.println(message + (time - lastTime)); // lastTime = time; // } private void logCount() { System.out.println(count + " "); count++; } }