Search in sources :

Example 1 with AutoGlassPanel

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

Example 2 with AutoGlassPanel

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

Example 3 with AutoGlassPanel

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

Example 4 with AutoGlassPanel

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;
}
Also used : SimplePanelWithProgress(org.rstudio.core.client.widget.SimplePanelWithProgress) DockLayoutPanel(com.google.gwt.user.client.ui.DockLayoutPanel) AutoGlassPanel(org.rstudio.studio.client.common.AutoGlassPanel)

Aggregations

AutoGlassPanel (org.rstudio.studio.client.common.AutoGlassPanel)4 RStudioFrame (org.rstudio.core.client.widget.RStudioFrame)2 DockLayoutPanel (com.google.gwt.user.client.ui.DockLayoutPanel)1 SimplePanelWithProgress (org.rstudio.core.client.widget.SimplePanelWithProgress)1