use of org.rstudio.core.client.widget.RStudioFrame 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.core.client.widget.RStudioFrame 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.core.client.widget.RStudioFrame in project rstudio by rstudio.
the class ShinyGadgetDialog method createMainWidget.
@Override
protected Widget createMainWidget() {
frame_ = new RStudioFrame();
frame_.addStyleName(ThemeStyles.INSTANCE.borderedIFrame());
// compute the widget size and set it
Size minimumSize = new Size(300, 300);
Size size = DomMetrics.adjustedElementSize(preferredSize_, minimumSize, // pad
0, // client margin
100);
frame_.setSize(size.width + "px", size.height + "px");
if (Desktop.isDesktop())
Desktop.getFrame().setShinyDialogUrl(url_);
frame_.setUrl(url_);
return frame_;
}
use of org.rstudio.core.client.widget.RStudioFrame in project rstudio by rstudio.
the class NewConnectionShinyHost method createWidget.
private Widget createWidget() {
VerticalPanel container = new VerticalPanel();
// create iframe for miniUI
frame_ = new RStudioFrame();
frame_.setSize("100%", "140px");
container.add(frame_);
// add the code panel
codePanel_ = new ConnectionCodePanel();
codePanel_.addStyleName(RES.styles().dialogCodePanel());
final Command updateCodeCommand = new Command() {
@Override
public void execute() {
codePanel_.setCode("", null);
}
};
updateCodeCommand.execute();
Grid codeGrid = new Grid(1, 1);
codeGrid.addStyleName(RES.styles().codeGrid());
codeGrid.setCellPadding(0);
codeGrid.setCellSpacing(0);
codeGrid.setWidget(0, 0, codePanel_);
container.add(codeGrid);
return container;
}
use of org.rstudio.core.client.widget.RStudioFrame in project rstudio by rstudio.
the class ViewerPanePreviewer method getWidget.
@Override
public Widget getWidget() {
if (frame_ == null) {
frame_ = new RStudioFrame();
frame_.setUrl(url_);
frame_.setSize("100%", "100%");
frame_.setStylePrimaryName(ExportPlotResources.INSTANCE.styles().imagePreview());
}
return frame_;
}
Aggregations