* slight performance improvement.

This commit is contained in:
Heng Sin Low 2008-07-16 02:00:35 +00:00
parent c9fea0e495
commit aa7dfe359b
3 changed files with 7 additions and 12 deletions

View File

@ -68,11 +68,6 @@ public class CompositeADTab extends AbstractADTab
return div;
}
public Component getRootComponent() {
return div;
}
@Override
protected void doAddTab(GridTab gTab, ADTabpanel tabPanel) {
tabPanel.setParent(div);

View File

@ -85,12 +85,6 @@ public class ADWindowPanel extends AbstractADWindowPanel
toolbar.setHeight("30px");
toolbar.setParent(n);
contentArea = new Center();
contentArea.setParent(layout);
contentArea.setAutoscroll(true);
contentArea.setFlex(true);
adTab.createPart(contentArea);
South s = new South();
layout.appendChild(s);
s.setCollapsible(false);
@ -108,6 +102,12 @@ public class ADWindowPanel extends AbstractADWindowPanel
LayoutUtils.addSclass("adwindow-nav-content", (HtmlBasedComponent) adTab.getTabSelectionComponent());
}
contentArea = new Center();
contentArea.setParent(layout);
contentArea.setAutoscroll(true);
contentArea.setFlex(true);
adTab.createPart(contentArea);
if (parent instanceof Tabpanel) {
TabOnCloseHanlder handler = new TabOnCloseHanlder();
((Tabpanel)parent).setOnCloseHandler(handler);

View File

@ -131,7 +131,7 @@ public class WindowContainer extends AbstractUIPart implements EventListener
private void deferLayout() {
Tabpanel panel = (Tabpanel) tabbox.getSelectedPanel();
if (panel.getFirstChild() instanceof Borderlayout) {
LayoutUtils.sendDeferLayoutEvent((Borderlayout) panel.getChildren().get(0), 350);
LayoutUtils.sendDeferLayoutEvent((Borderlayout) panel.getChildren().get(0), 50);
}
}