Search in sources :

Example 1 with RStudioFrame

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_);
}
Also used : RStudioFrame(org.rstudio.core.client.widget.RStudioFrame) AutoGlassPanel(org.rstudio.studio.client.common.AutoGlassPanel)

Example 2 with RStudioFrame

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_);
}
Also used : RStudioFrame(org.rstudio.core.client.widget.RStudioFrame) AutoGlassPanel(org.rstudio.studio.client.common.AutoGlassPanel)

Example 3 with RStudioFrame

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_;
}
Also used : Size(org.rstudio.core.client.Size) RStudioFrame(org.rstudio.core.client.widget.RStudioFrame)

Example 4 with RStudioFrame

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;
}
Also used : VerticalPanel(com.google.gwt.user.client.ui.VerticalPanel) Command(com.google.gwt.user.client.Command) Grid(com.google.gwt.user.client.ui.Grid) RStudioFrame(org.rstudio.core.client.widget.RStudioFrame)

Example 5 with RStudioFrame

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_;
}
Also used : RStudioFrame(org.rstudio.core.client.widget.RStudioFrame)

Aggregations

RStudioFrame (org.rstudio.core.client.widget.RStudioFrame)5 AutoGlassPanel (org.rstudio.studio.client.common.AutoGlassPanel)2 Command (com.google.gwt.user.client.Command)1 Grid (com.google.gwt.user.client.ui.Grid)1 VerticalPanel (com.google.gwt.user.client.ui.VerticalPanel)1 Size (org.rstudio.core.client.Size)1