Example usage for com.google.gwt.user.client.ui RootLayoutPanel add

List of usage examples for com.google.gwt.user.client.ui RootLayoutPanel add

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui RootLayoutPanel add.

Prototype

@Override
public void add(Widget widget) 

Source Link

Document

Adds a widget to this panel.

Usage

From source file:ru.ksu.niimm.cll.mocassin.frontend.client.Mocassin.java

License:Open Source License

/**
 * This is the entry point method./*from  w  w  w. jav  a 2s. c  om*/
 */
public void onModuleLoad() {
    ScrollPanel outer = binder.createAndBindUi(this);
    RootLayoutPanel root = RootLayoutPanel.get();
    root.add(outer);
    root.forceLayout();
    topPanel.sendButton.addClickHandler(new BuildQueryStatementHandler(topPanel, centerPanel));
}

From source file:ru.ksu.niimm.cll.mocassin.frontend.dashboard.client.Dashboard.java

License:Open Source License

@Override
public void onModuleLoad() {
    RootLayoutPanel root = RootLayoutPanel.get();
    root.add(new DashboardTabPanel());
    root.forceLayout();/*  w  ww . j  a v a 2 s .  c o m*/
}

From source file:ru.ksu.niimm.cll.mocassin.frontend.viewer.client.StructureViewer.java

License:Open Source License

public void onModuleLoad() {
    ScrollPanel outer = binder.createAndBindUi(this);
    RootLayoutPanel root = RootLayoutPanel.get();
    root.add(outer);
    root.forceLayout();//from   w ww . j a  va  2s .  co m

    String resourceUri = Location.getParameter("resourceuri");
    if (resourceUri == null)
        return;

    App.eventBus.addHandler(NavigationEvent.TYPE, this);

    metadataCaptionPanel.setCaptionText(constants.metadataPanelTitle());

    viewerService.load(resourceUri, new LoadMetadataCallback());

}