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);
}
Aggregations