private Button clear = new Button("Clear console");
private Button restart = new Button("Restart app");
+ private Button forceLayout = new Button("Force layout");
private HorizontalPanel actions;
private boolean collapsed = false;
private int origLeft;
+ private ApplicationConnection client;
+
private static final String help = "Drag=move, shift-drag=resize, doubleclick=min/max."
+ "Use debug=quiet to log only to browser console.";
ApplicationConfiguration cnf, boolean showWindow) {
super(false, false);
+ this.client = client;
+
panel = new FlowPanel();
if (showWindow) {
DOM.appendChild(getContainerElement(), caption);
actions = new HorizontalPanel();
actions.add(clear);
actions.add(restart);
+ actions.add(forceLayout);
panel.add(actions);
}
});
+
+ forceLayout.addClickListener(new ClickListener() {
+ public void onClick(Widget sender) {
+ IDebugConsole.this.client.forceLayout();
+ }
+ });
}
log("Toolkit application servlet version: " + cnf.getSerletVersion());