use of org.rstudio.studio.client.common.AutoGlassPanel in project rstudio by rstudio.
the class HelpPane method createMainWidget.
@Override
protected Widget createMainWidget() {
frame_ = new RStudioFrame();
frame_.setSize("100%", "100%");
frame_.setStylePrimaryName("rstudio-HelpFrame");
ElementIds.assignElementId(frame_.getElement(), ElementIds.HELP_FRAME);
return new AutoGlassPanel(frame_);
}
use of org.rstudio.studio.client.common.AutoGlassPanel in project rstudio by rstudio.
the class SatelliteFramePanel method showUrl.
protected void showUrl(String url) {
if (appFrame_ != null) {
// first set the frame to about:blank so that the
// javascript "unload" event is triggered (this is
// used by bookdown to save/restore scroll position)
appFrame_.setUrl("about:blank");
rootPanel_.remove(appFrame_);
appFrame_ = null;
}
appFrame_ = createAppFrame(url);
appFrame_.setSize("100%", "100%");
glassPanel_ = new AutoGlassPanel(appFrame_);
rootPanel_.add(glassPanel_);
rootPanel_.setWidgetLeftRight(glassPanel_, 0, Unit.PX, 0, Unit.PX);
rootPanel_.setWidgetTopBottom(glassPanel_, toolbar_.getHeight() + 1, Unit.PX, 0, Unit.PX);
}
use of org.rstudio.studio.client.common.AutoGlassPanel in project rstudio by rstudio.
the class ViewerPane method createMainWidget.
@Override
protected Widget createMainWidget() {
frame_ = new RStudioFrame();
frame_.setSize("100%", "100%");
navigate(ABOUT_BLANK, false);
return new AutoGlassPanel(frame_);
}
use of org.rstudio.studio.client.common.AutoGlassPanel in project rstudio by rstudio.
the class ToolbarPane method createWidget.
@Override
protected Widget createWidget() {
dockPanel_ = new DockLayoutPanel(Style.Unit.PX);
dockPanel_.setSize("100%", "100%");
mainToolbar_ = createMainToolbar();
if (mainToolbar_ != null)
addToolbar(mainToolbar_);
secondaryToolbar_ = createSecondaryToolbar();
if (secondaryToolbar_ != null)
addToolbar(secondaryToolbar_);
mainWidget_ = createMainWidget();
mainWidget_.setSize("100%", "100%");
progressPanel_ = new SimplePanelWithProgress();
progressPanel_.setSize("100%", "100%");
progressPanel_.setWidget(mainWidget_);
dockPanel_.add(progressPanel_);
AutoGlassPanel glassPanel = new AutoGlassPanel(dockPanel_);
glassPanel.setSize("100%", "100%");
return glassPanel;
}
Aggregations