Example usage for com.google.gwt.widgetideas.client ProgressBar ProgressBar

List of usage examples for com.google.gwt.widgetideas.client ProgressBar ProgressBar

Introduction

In this page you can find the example usage for com.google.gwt.widgetideas.client ProgressBar ProgressBar.

Prototype

public ProgressBar(double minProgress, double maxProgress, double curProgress) 

Source Link

Document

Create a progress bar within the given range starting at the specified progress amount.

Usage

From source file:edu.umn.msi.tropix.webgui.client.progress.ProgressCollectionView.java

License:Open Source License

protected ListGridRecord getRecord(final ProgressModel progressModel) {
    final String name = progressModel.getAsString("name");
    final String status = progressModel.getAsString("step");
    final ProgressBar bar = new ProgressBar(0.0, 1.0, 0.0);
    bar.setHeight("15px");
    bar.setWidth("95%");
    bar.setProgress(0.0);/*from   w ww  .  ja v a2 s  . c om*/

    final ListGridRecord record = new ListGridRecord();
    record.setAttribute("recordId", lastRecordId++);
    record.setAttribute("workflowId", progressModel.getAsString("workflowId"));
    record.setAttribute("id", progressModel.getAsString("id"));
    record.setAttribute("status", "images/default/icons/wait.gif");
    record.setAttribute("name", name);
    record.setAttribute("state", status);
    record.setAttribute("percent", "placeholder");
    record.setAttribute("percentObject", bar);
    updateRecord(record, progressModel);
    return record;
}