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

项目: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;
}
项目:AvoinApotti    文件:Logic.java   
private ChartTypeDatasetVo getChartTypeDataset(ChartTypeVo chartType, DataSetTypeVo dataset)
{
    if (chartType == null || chartType.getDatasetTypes() == null || dataset == null)
        return null;

    for (int x = 0; x < chartType.getDatasetTypes().size(); x++)
    {
        ChartTypeDatasetVo chartTypeDataset = chartType.getDatasetTypes().get(x);
        if (chartTypeDataset != null && chartTypeDataset.getDatasetType() != null && chartTypeDataset.getDatasetType().equals(dataset))
            return chartTypeDataset;
    }

    return null;
}
项目: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 ChartTypeDatasetVo getChartTypeDataset(ChartTypeVo chartType, DataSetTypeVo dataset)
{
    if (chartType == null || chartType.getDatasetTypes() == null || dataset == null)
        return null;

    for (int x = 0; x < chartType.getDatasetTypes().size(); x++)
    {
        ChartTypeDatasetVo chartTypeDataset = chartType.getDatasetTypes().get(x);
        if (chartTypeDataset != null && chartTypeDataset.getDatasetType() != null && chartTypeDataset.getDatasetType().equals(dataset))
            return chartTypeDataset;
    }

    return null;
}
项目: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 ChartTypeDatasetVo getChartTypeDataset(ChartTypeVo chartType, DataSetTypeVo dataset)
{
    if (chartType == null || chartType.getDatasetTypes() == null || dataset == null)
        return null;

    for (int x = 0; x < chartType.getDatasetTypes().size(); x++)
    {
        ChartTypeDatasetVo chartTypeDataset = chartType.getDatasetTypes().get(x);
        if (chartTypeDataset != null && chartTypeDataset.getDatasetType() != null && chartTypeDataset.getDatasetType().equals(dataset))
            return chartTypeDataset;
    }

    return null;
}
项目: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;
}
项目:openmaxims-linux    文件:Logic.java   
private ChartTypeDatasetVo getChartTypeDataset(ChartTypeVo chartType, DataSetTypeVo dataset)
{
    if (chartType == null || chartType.getDatasetTypes() == null || dataset == null)
        return null;

    for (int x = 0; x < chartType.getDatasetTypes().size(); x++)
    {
        ChartTypeDatasetVo chartTypeDataset = chartType.getDatasetTypes().get(x);
        if (chartTypeDataset != null && chartTypeDataset.getDatasetType() != null && chartTypeDataset.getDatasetType().equals(dataset))
            return chartTypeDataset;
    }

    return null;
}