@Override public void onSuccess(Void result) { EnterKeyDownHandler loginHandler = new EnterKeyDownHandler(); view.getLoginButton().addClickHandler(loginHandler); view.getUsernameBox().addKeyDownHandler(loginHandler); view.getPasswordBox().addKeyDownHandler(loginHandler); ForgotPasswordHandler forgotPasswordHandler = new ForgotPasswordHandler(); view.getForgotPasswordLabel().addClickHandler(forgotPasswordHandler); view.clearMessages(); RootLayoutPanel.get().clear(); RootLayoutPanel.get().add(view); }
historyHandler.register(placeController, eventBus, place); RootLayoutPanel.get().add(appWidget);
public void onModuleLoad() { DockLayoutPanel outer = binder.createAndBindUi(this); // Get rid of scrollbars, and clear out the window's built-in margin, // because we want to take advantage of the entire client area. Window.enableScrolling(false); Window.setMargin("0px"); RootLayoutPanel root = RootLayoutPanel.get(); root.add(outer); }
public void onModuleLoad() { RootLayoutPanel rp = RootLayoutPanel.get(); DockLayoutPanel dp = new DockLayoutPanel(Unit.PX); rp.add(dp); ... }
@Override public void show( boolean isAutoHide ) { this.isAutoHide = isAutoHide; if( isDisplayed ) return; isDisplayed = true; RootLayoutPanel.get().add( dock ); }
@Override public void show( boolean isAutoHide ) { this.isAutoHide = isAutoHide; if( isDisplayed ) return; isDisplayed = true; RootLayoutPanel.get().add( dock ); }
void addLayoutToRootPanel(final WorkbenchLayout layout) { RootLayoutPanel.get().add(layout.getRoot()); } }
@Override public void startUp(Page startUpPage) { RootLayoutPanel rootPanel = RootLayoutPanel.get(); rootPanel.clear(); rootPanel.add(startUpPage); _history.clear(); _navigateInfo = null; add(startUpPage); }
private void showRootPresenter() { SimpleLayoutPanel mainPanel = new SimpleLayoutPanel(); RootLayoutPanel.get().add(mainPanel); RootLayoutPanel.get().getElement().getStyle().setZIndex(0); workspacePresenterProvider.get().go(mainPanel); } }
@Inject public DownloadContainer() { frame = new Frame(); frame.getElement().setAttribute("name", TARGET); frame.setSize("0px", "0px"); frame.setVisible(false); frame.ensureDebugId(TARGET); RootLayoutPanel.get().add(frame); }
public static void loadUrl(String url) { Anchor a = new Anchor("", url); RootLayoutPanel.get().add(a); NativeEvent event = Document.get().createClickEvent(1, 1, 1, 1, 1, false, false, false, false); a.getElement().dispatchEvent(event); RootLayoutPanel.get().remove(a); }
public class DockLayoutPanelExample implements EntryPoint { public void onModuleLoad() { // Attach five widgets to a DockLayoutPanel, one in each direction. Lay // them out in 'em' units. DockLayoutPanel p = new DockLayoutPanel(Unit.EM); p.addNorth(new HTML("north"), 2); p.addSouth(new HTML("south"), 2); p.addEast(new HTML("east"), 2); p.addWest(new HTML("west"), 2); p.add(new HTML("center")); // Attach the LayoutPanel to the RootLayoutPanel. The latter will listen for // resize events on the window to ensure that its children are informed of // possible size changes. RootLayoutPanel rp = RootLayoutPanel.get(); rp.add(p); } }
RootLayoutPanel.get().add(viewport);
@Override public void setInSlot(Object slot, IsWidget content) { assert slot == rootSlot : "Unknown slot used in the root proxy."; if (usingRootLayoutPanel) { // TODO Next 3 lines are a dirty workaround for // http://code.google.com/p/google-web-toolkit/issues/detail?id=4737 getAppRootPanel().clear(); RootLayoutPanel.get().clear(); getAppRootPanel().add(RootLayoutPanel.get()); if (content != null) { RootLayoutPanel.get().add(content); } } else { // TODO Next 2 lines are a dirty workaround for // http://code.google.com/p/google-web-toolkit/issues/detail?id=4737 RootLayoutPanel.get().clear(); getAppRootPanel().clear(); if (content != null) { getAppRootPanel().add(content); } } }
vp.add(button); vp.add(chartPanel); rootPanel.add(vp); loadChartLibrary();
rp.add(dockLayoutPanel);