Java 类ims.core.vo.ChartTypeDatasetVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private ChartTypeVo populateDataFromScreenLocal()
{
    ChartTypeVo record = populateDataFromScreen(form.getLocalContext().getCurrentRecord());

    record.setNormalBandColour(form.cmbNormalColour().getValue());

    if(record.getDatasetTypes() == null)
        record.setDatasetTypes(new ChartTypeDatasetVoCollection());
    else
        record.getDatasetTypes().clear();

    int order = 1;  //WDEV-12548

    for (int i = 0; i < form.dyngrdLinkedDataSets().getRows().size(); i++)
    {
        DynamicGridRow row = form.dyngrdLinkedDataSets().getRows().get(i);

        ChartTypeDatasetVo item = new ChartTypeDatasetVo();
        item.setDatasetType((DataSetTypeVo)row.getValue());

        if(row.getCells().get(form.dyngrdLinkedDataSets().getColumns().getByIdentifier(COL_ANSWERBOX)).getValue().equals(LineTypeStatus.CUSTOM))
        {
            item.setLineType((LineType) row.getCells().get(form.dyngrdLinkedDataSets().getColumns().getByIdentifier(COL_LINETYPE)).getValue());
            item.setLineColourPointIcon((LineColourPointIcon) row.getCells().get(form.dyngrdLinkedDataSets().getColumns().getByIdentifier(COL_COLOR_ICON)).getValue());
        }

        item.setSortOrder(Integer.valueOf(order++)); //WDEV-12548

        record.getDatasetTypes().add(item);
    }

    return record;
}
项目:openMAXIMS    文件:Logic.java   
private ChartTypeVo populateDataFromScreenLocal()
{
    ChartTypeVo record = populateDataFromScreen(form.getLocalContext().getCurrentRecord());

    record.setNormalBandColour(form.cmbNormalColour().getValue());

    if(record.getDatasetTypes() == null)
        record.setDatasetTypes(new ChartTypeDatasetVoCollection());
    else
        record.getDatasetTypes().clear();

    int order = 1;  //WDEV-12548

    for (int i = 0; i < form.dyngrdLinkedDataSets().getRows().size(); i++)
    {
        DynamicGridRow row = form.dyngrdLinkedDataSets().getRows().get(i);

        ChartTypeDatasetVo item = new ChartTypeDatasetVo();
        item.setDatasetType((DataSetTypeVo)row.getValue());

        if(row.getCells().get(form.dyngrdLinkedDataSets().getColumns().getByIdentifier(COL_ANSWERBOX)).getValue().equals(LineTypeStatus.CUSTOM))
        {
            item.setLineType((LineType) row.getCells().get(form.dyngrdLinkedDataSets().getColumns().getByIdentifier(COL_LINETYPE)).getValue());
            item.setLineColourPointIcon((LineColourPointIcon) row.getCells().get(form.dyngrdLinkedDataSets().getColumns().getByIdentifier(COL_COLOR_ICON)).getValue());
        }

        item.setSortOrder(Integer.valueOf(order++)); //WDEV-12548

        record.getDatasetTypes().add(item);
    }

    return record;
}
项目:openMAXIMS    文件:Logic.java   
private ChartTypeVo populateDataFromScreenLocal()
{
    ChartTypeVo record = populateDataFromScreen(form.getLocalContext().getCurrentRecord());

    record.setNormalBandColour(form.cmbNormalColour().getValue());

    if(record.getDatasetTypes() == null)
        record.setDatasetTypes(new ChartTypeDatasetVoCollection());
    else
        record.getDatasetTypes().clear();

    int order = 1;  //WDEV-12548

    for (int i = 0; i < form.dyngrdLinkedDataSets().getRows().size(); i++)
    {
        DynamicGridRow row = form.dyngrdLinkedDataSets().getRows().get(i);

        ChartTypeDatasetVo item = new ChartTypeDatasetVo();
        item.setDatasetType((DataSetTypeVo)row.getValue());

        if(row.getCells().get(form.dyngrdLinkedDataSets().getColumns().getByIdentifier(COL_ANSWERBOX)).getValue().equals(LineTypeStatus.CUSTOM))
        {
            item.setLineType((LineType) row.getCells().get(form.dyngrdLinkedDataSets().getColumns().getByIdentifier(COL_LINETYPE)).getValue());
            item.setLineColourPointIcon((LineColourPointIcon) row.getCells().get(form.dyngrdLinkedDataSets().getColumns().getByIdentifier(COL_COLOR_ICON)).getValue());
        }

        item.setSortOrder(Integer.valueOf(order++)); //WDEV-12548

        record.getDatasetTypes().add(item);
    }

    return record;
}
项目:openmaxims-linux    文件:Logic.java   
private ChartTypeVo populateDataFromScreenLocal()
{
    ChartTypeVo record = populateDataFromScreen(form.getLocalContext().getCurrentRecord());

    record.setNormalBandColour(form.cmbNormalColour().getValue());

    if(record.getDatasetTypes() == null)
        record.setDatasetTypes(new ChartTypeDatasetVoCollection());
    else
        record.getDatasetTypes().clear();

    int order = 1;  //WDEV-12548

    for (int i = 0; i < form.dyngrdLinkedDataSets().getRows().size(); i++)
    {
        DynamicGridRow row = form.dyngrdLinkedDataSets().getRows().get(i);

        ChartTypeDatasetVo item = new ChartTypeDatasetVo();
        item.setDatasetType((DataSetTypeVo)row.getValue());

        if(row.getCells().get(form.dyngrdLinkedDataSets().getColumns().getByIdentifier(COL_ANSWERBOX)).getValue().equals(LineTypeStatus.CUSTOM))
        {
            item.setLineType((LineType) row.getCells().get(form.dyngrdLinkedDataSets().getColumns().getByIdentifier(COL_LINETYPE)).getValue());
            item.setLineColourPointIcon((LineColourPointIcon) row.getCells().get(form.dyngrdLinkedDataSets().getColumns().getByIdentifier(COL_COLOR_ICON)).getValue());
        }

        item.setSortOrder(Integer.valueOf(order++)); //WDEV-12548

        record.getDatasetTypes().add(item);
    }

    return record;
}