Search in sources :

Example 1 with ProgressImage

use of org.rstudio.core.client.widget.ProgressImage in project rstudio by rstudio.

the class RPubsUploadDialog method showProgressPanel.

private void showProgressPanel() {
    // disable continue button
    continueButton_.setVisible(false);
    updateButton_.setVisible(false);
    createButton_.setVisible(false);
    if (previewButton_ != null)
        previewButton_.setVisible(false);
    enableOkButton(false);
    // add progress
    HorizontalPanel progressPanel = new HorizontalPanel();
    ProgressImage progressImage = new ProgressImage(CoreResources.INSTANCE.progress_gray());
    progressImage.addStyleName(RESOURCES.styles().progressImage());
    progressImage.show(true);
    progressPanel.add(progressImage);
    progressPanel.add(new Label(RPubsUploader.PROGRESS_MESSAGE));
    addLeftWidget(progressPanel);
}
Also used : HorizontalPanel(com.google.gwt.user.client.ui.HorizontalPanel) Label(com.google.gwt.user.client.ui.Label) ProgressImage(org.rstudio.core.client.widget.ProgressImage)

Aggregations

HorizontalPanel (com.google.gwt.user.client.ui.HorizontalPanel)1 Label (com.google.gwt.user.client.ui.Label)1 ProgressImage (org.rstudio.core.client.widget.ProgressImage)1