Map<Element, Module> m;
protected LayoutContainer scrollContainer;
public MainModule(final String html, final String path, final String template, String nodeTypes, GWTEditConfiguration config) {
super("main", path, template, nodeTypes, new FlowLayout());
setScrollMode(Style.Scroll.NONE);
this.id = "main";
this.originalHtml = html;
this.path = path;
this.template = template;
this.config = config;
this.depth = 0;
head = new ToolbarHeader();
head.setText(Messages.get("label.page", "Page") + ": " + path);
head.addStyleName("x-panel-header");
head.setStyleAttribute("z-index", "999");
head.setStyleAttribute("position", "relative");
scrollContainer = new LayoutContainer(new FlowLayout());
add(head);
add(scrollContainer);
scrollContainer.addStyleName("gwt-body-edit");
Hover.getInstance().setMainModule(this);
Selection.getInstance().setMainModule(this);