l.setStyleAttribute("border", "2px dashed");
}
public void setMainModule(final MainModule m) {
this.mainModule = m;
m.getContainer().addScrollListener(new ScrollListener() {
@Override
public void widgetScrolled(ComponentEvent ce) {
for (Map.Entry<Module, Box> boxEntry : boxes.entrySet()) {
LayoutContainer ctn = boxEntry.getKey().getContainer();
boxEntry.getValue().setPosition(ctn.getAbsoluteLeft(), ctn.getAbsoluteTop(),ctn.getWidth(), ctn.getHeight());