openHandler = createOpenHandler();
TreeImages images = GWT.create(TreeImages.class);
RootPanel rootPanel = RootPanel.get();
DecoratedTabPanel decoratedTabPanel = new DecoratedTabPanel();
decoratedTabPanel.setAnimationEnabled(true);
rootPanel.add(decoratedTabPanel, 10, 10);
decoratedTabPanel.setSize("870px", "480px");
AbsolutePanel absolutePanel = new AbsolutePanel();
absolutePanel.setSize("847px", "425px");
DecoratorPanel decoratorPanelWest = new DecoratorPanel();
absolutePanel.add(decoratorPanelWest, 10, 10);
decoratorPanelWest.setSize("240px", "400px");
AbsolutePanel treePanel = new AbsolutePanel();
treePanel.setSize("230px", "395px");
decoratorPanelWest.setWidget(treePanel);
ScrollPanel treeScrollPanel = new ScrollPanel();
treePanel.add(treeScrollPanel, 10, 10);
treeScrollPanel.setSize("210px", "375px");
final Tree tree = getTree(images);
treeScrollPanel.setWidget(tree);
final DecoratorPanel decoratorPanelCenter = new DecoratorPanel();
absolutePanel.add(decoratorPanelCenter, 256, 10);
decoratorPanelCenter.setSize("400px", "402px");
AbsolutePanel centerAbsolutePanel = new AbsolutePanel();
centerAbsolutePanel.setSize("97%", "100%");
this.header = new HTML("Select an item");
this.header.setDirectionEstimator(true);
centerAbsolutePanel.add(this.header, 10, 10);
this.header.setSize("450px", "50px");
this.header.setStyleName("header-style");
this.details = new HTML("No item selected");
centerAbsolutePanel.add(this.details, 10, 76);
this.details.setSize("450px", "156px");
HTML html = new HTML("<hr />", true);
centerAbsolutePanel.add(html, 10, 43);
html.setSize("380px", "15px");
this.frame = new NamedFrame("download-frame");
frame.setStyleName("download-frame");
rootPanel.add(frame);
this.exportButton = new Button("Export site", new ClickHandler() {
public void onClick(ClickEvent event) {
frame.setUrl(exportHref);
}
});
this.exportButton.setEnabled(false);
centerAbsolutePanel.add(this.exportButton, 10, 359);
decoratorPanelCenter.setWidget(centerAbsolutePanel);
centerAbsolutePanel.setSize("400px", "393px");
DecoratorPanel decoratorPanelEast = new DecoratorPanel();
absolutePanel.add(decoratorPanelEast, 672, 10);
decoratorPanelEast.setSize("165px", "405px");
AbsolutePanel absolutePanelImportLink = new AbsolutePanel();
absolutePanelImportLink.setSize("162px", "395px");
final Anchor importAnchor = new Anchor("Import site");
absolutePanelImportLink.add(importAnchor, 10, 10);
importAnchor.setWidth("90%");
decoratorPanelEast.setWidget(absolutePanelImportLink);
decoratedTabPanel.add(absolutePanel, "Export/Import sites", false);
importAnchor.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
DialogBox dialogBox = createDialogBox();
dialogBox.setPopupPosition(267, 60);
dialogBox.show();
}
});
decoratedTabPanel.selectTab(0);
}