Example usage for com.google.gwt.visualization.client DataTable getColumnLabel

List of usage examples for com.google.gwt.visualization.client DataTable getColumnLabel

Introduction

In this page you can find the example usage for com.google.gwt.visualization.client DataTable getColumnLabel.

Prototype

public final native String getColumnLabel(int columnIndex) ;

Source Link

Usage

From source file:edu.cudenver.bios.glimmpse.client.panels.guided.HypothesisDoublyRepeatedMeasuresPanel.java

License:Open Source License

@Override
public void onPredictors(HashMap<String, ArrayList<String>> predictorMap, DataTable groups) {
    this.predictorMap = predictorMap;
    this.groups = groups;
    // build a lookup table of column id's (predictors) to column numbers
    for (int c = 0; c < groups.getNumberOfColumns(); c++) {
        this.groupColumnLookup.put(groups.getColumnLabel(c), c);
    }/*from ww  w  . j  a  v a 2s. co m*/
}

From source file:edu.cudenver.bios.glimmpse.client.panels.guided.HypothesisIndependentMeasuresPanel.java

License:Open Source License

@Override
public void onPredictors(HashMap<String, ArrayList<String>> predictorMap, DataTable groups) {
    this.predictorMap = predictorMap;
    this.groups = groups;
    // build a lookup table of column id's (predictors) to column numbers
    for (int c = 0; c < groups.getNumberOfColumns(); c++) {
        this.groupColumnLookup.put(groups.getColumnLabel(c), c);
    }//from   w  w  w  . j  ava 2 s.  co  m
    Object[] predictorArray = (Object[]) predictorMap.keySet().toArray();
    reset();
    int i = 0;
    for (Object predictor : predictorArray) {
        List<String> categories = predictorMap.get(predictor);
        addMainEffect((String) predictor, categories.size());
        addInteractions((String) predictor, ++i, predictorArray);
    }
}

From source file:edu.cudenver.bios.glimmpse.client.panels.guided.RelativeGroupSizePanel.java

License:Open Source License

@Override
public void onPredictors(HashMap<String, ArrayList<String>> predictorMap, DataTable groups) {
    reset();//from  w  w w  .j  av a  2 s  .  co m
    if (predictorMap.size() > 0) {
        groupSizesTable.getRowFormatter().setStyleName(0, GlimmpseConstants.STYLE_WIZARD_STEP_TABLE_HEADER);
        groupSizesTable.setWidget(0, 0, new HTML(Glimmpse.constants.relativeGroupSizeTableColumn()));
        for (int col = 0; col < groups.getNumberOfColumns(); col++) {
            groupSizesTable.setWidget(0, col + 1, new HTML(groups.getColumnLabel(col)));
        }
        for (int row = 0; row < groups.getNumberOfRows(); row++) {
            groupSizesTable.setWidget(row + 1, 0, createGroupSizeListBox());
            groupSizesTable.getRowFormatter().setStyleName(row + 1,
                    GlimmpseConstants.STYLE_WIZARD_STEP_TABLE_ROW);
            for (int col = 0; col < groups.getNumberOfColumns(); col++) {
                groupSizesTable.setWidget(row + 1, col + 1, new HTML(groups.getValueString(row, col)));
            }
        }
    }
}