Search in sources :

Example 1 with CompileOutputBuffer

use of org.rstudio.studio.client.common.compile.CompileOutputBuffer in project rstudio by rstudio.

the class CompilePdfProgressDialog method createDisplayWidget.

@Override
protected Widget createDisplayWidget(Object param) {
    container_ = new SimplePanel();
    int maxHeight = Window.getClientHeight() - 150;
    int height = Math.min(500, maxHeight);
    container_.getElement().getStyle().setHeight(height, Unit.PX);
    output_ = new CompileOutputBuffer();
    container_.setWidget(output_);
    return container_;
}
Also used : SimplePanel(com.google.gwt.user.client.ui.SimplePanel) CompileOutputBuffer(org.rstudio.studio.client.common.compile.CompileOutputBuffer)

Example 2 with CompileOutputBuffer

use of org.rstudio.studio.client.common.compile.CompileOutputBuffer in project rstudio by rstudio.

the class HTMLPreviewProgressDialog method createDisplayWidget.

@Override
protected Widget createDisplayWidget(Object param) {
    SimplePanel panel = new SimplePanel();
    int height = Window.getClientHeight() - 150;
    int maxHeight = (Integer) param;
    if (maxHeight != -1)
        height = Math.min(maxHeight, height);
    panel.getElement().getStyle().setHeight(height, Unit.PX);
    output_ = new CompileOutputBuffer();
    panel.setWidget(output_);
    return panel;
}
Also used : SimplePanel(com.google.gwt.user.client.ui.SimplePanel) CompileOutputBuffer(org.rstudio.studio.client.common.compile.CompileOutputBuffer)

Aggregations

SimplePanel (com.google.gwt.user.client.ui.SimplePanel)2 CompileOutputBuffer (org.rstudio.studio.client.common.compile.CompileOutputBuffer)2