Search in sources :

Example 1 with ShinyApplicationPresenter

use of org.rstudio.studio.client.shiny.ShinyApplicationPresenter in project rstudio by rstudio.

the class ShinyApplicationWindow method onInitialize.

@Override
protected void onInitialize(LayoutPanel mainPanel, JavaScriptObject params) {
    ShinyApplicationParams appParams = params.cast();
    Window.setTitle(appParams.getPath() + " - " + "Shiny");
    ShinyApplicationPresenter appPresenter = pPresenter_.get();
    appPresenter.loadApp(appParams);
    // make it fill the containing layout panel
    Widget presWidget = appPresenter.asWidget();
    mainPanel.add(presWidget);
    mainPanel.setWidgetLeftRight(presWidget, 0, Unit.PX, 0, Unit.PX);
    mainPanel.setWidgetTopBottom(presWidget, 0, Unit.PX, 0, Unit.PX);
}
Also used : Widget(com.google.gwt.user.client.ui.Widget) ShinyApplicationPresenter(org.rstudio.studio.client.shiny.ShinyApplicationPresenter) ShinyApplicationParams(org.rstudio.studio.client.shiny.model.ShinyApplicationParams)

Aggregations

Widget (com.google.gwt.user.client.ui.Widget)1 ShinyApplicationPresenter (org.rstudio.studio.client.shiny.ShinyApplicationPresenter)1 ShinyApplicationParams (org.rstudio.studio.client.shiny.model.ShinyApplicationParams)1