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

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

Introduction

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

Prototype

public void setHeight(String height) 

Source Link

Document

Sets the object's height.

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   ww  w  .  j a v  a  2s . 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;
}