private Widget createMain2() {
final DrawerLayout layout = new DrawerLayout();
layout.setAnimationDurationFunction(new FixedAnimationDurationFunction(200));
Drawer drawer;
final PanelLayout navigation = new PanelLayout("Navigation");
navigation.setContent(new HTML("Navigation"));
navigation.setClosable(true);
navigation.addCloseHandler(new CloseHandler<PanelLayout>() {
public void onClose(CloseEvent<PanelLayout> event) {
layout.hideDrawer(DrawerLayout.Position.LEFT);
}
});
navigation.getElement().setId("navigation");
drawer = new Drawer("Properties", new HTML("Properties"), DrawerLayout.Position.RIGHT);
drawer.setMinSize(500);
layout.addDrawer(drawer);
drawer = new Drawer("Navigation", navigation, DrawerLayout.Position.LEFT);
layout.addDrawer(drawer);
drawer = new Drawer("Navigation 2", new HTML("Navigation 2"), DrawerLayout.Position.LEFT);
layout.addDrawer(drawer);
Button button = new Button("Close Navigation");
drawer = new Drawer("Console", button, DrawerLayout.Position.BOTTOM);
layout.addDrawer(drawer);
HTML console2 = new HTML("Console 2");
console2.getElement().setId("console2");
drawer = new Drawer("Console2", console2, DrawerLayout.Position.BOTTOM);
drawer.setButtonless(true);
layout.addDrawer(drawer);
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
layout.hideDrawer(DrawerLayout.Position.LEFT, new CompletionCallback() {