@@ -0,0 +1,970 @@
+package to.etc.domui.component.misc;%0A%0Aimport to.etc.domui.component.layout.*;%0Aimport to.etc.domui.dom.css.*;%0Aimport to.etc.domui.dom.html.*;%0A%0Apublic class DebugWindow extends Window %7B%0A%09public DebugWindow() %7B%0A%09%09super(false, true, %22Debug%22);%0A%09%7D%0A%0A%09private Div m_log;%0A%0A%09@Override%0A%09public void createContent() throws Exception %7B%0A%09%09Div cont = new Div();%0A%09%09add(cont);%0A%09%09cont.setWidth(%221024%22);%0A%09%09cont.setHeight(%22500%22);%0A%09%09cont.setOverflow(Overflow.AUTO);%0A%09%09m_log = new Div();%0A%09%09cont.add(m_log);%0A%09%7D%0A%0A%09public void logLine(String line) %7B%0A%09%09Div l = new Div();%0A%09%09l.setText(line);%0A%09%09m_log.add(l);%0A%09%7D%0A%0A%09static public void log(NodeBase pageNode, String text) %7B%0A%09%09if(!pageNode.isAttached())%0A%09%09%09return;%0A%09%09DebugWindow w = (DebugWindow) pageNode.getPage().getConversation().getAttribute(%22DebugWindow%22);%0A%09%09if(null == w) %7B%0A%09%09%09w = new DebugWindow();%0A%09%09%09pageNode.getPage().getBody().add(0, w);%0A%09%09%09pageNode.getPage().getConversation().setAttribute(%22DebugWindow%22, w);%0A%09%09%7D%0A%0A%09%09w.logLine(text);%0A%09%7D%0A%0A%7D%0A

Add debug window (experimental)