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

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

Introduction

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

Prototype

public void setWidth(String width) 

Source Link

Document

Sets the object's width.

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  w  w. ja v  a  2s  . co  m

    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;
}