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

项目:AvoinApotti    文件:Logic.java   
private void populateTemplates(DynamicGridRow reportRow, TemplateBoLiteVoCollection templates)
{
    if (templates == null)
        return;

    for (TemplateBoLiteVo template : templates)
    {
        DynamicGridRow templateRow = reportRow.getRows().newRow();

        templateRow.setCollapsedImage(form.getImages().Admin.Edit);
        templateRow.setExpandedImage(form.getImages().Admin.Edit);

        if (template.getLastDeployment() != null && template.getLastUpdated() != null
                && template.getLastDeployment().isLessThan(template.getLastUpdated()))
        {
            templateRow.setTextColor(Color.Black);
        }
        else
        {
            templateRow.setTextColor(Color.Gray);
        }

        DynamicGridCell cellName = templateRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_NAME), DynamicCellType.STRING);
        cellName.setValue(template.getName());
        cellName.setTooltip(getTemplateTooltip(template.getTemplateXml()));
        cellName.setReadOnly(true);

        DynamicGridCell cellLastDeployed = templateRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_DEPLOY), DynamicCellType.DATETIME);
        cellLastDeployed.setValue(template.getLastDeployment());
        cellLastDeployed.setReadOnly(true);

        DynamicGridCell cellLastModified = templateRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_MODIFY), DynamicCellType.DATETIME);
        cellLastModified.setValue(template.getLastUpdated());
        cellLastModified.setReadOnly(true);

        templateRow.setValue(template);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateTemplates(DynamicGridRow reportRow, TemplateBoLiteVoCollection templates)
{
    if (templates == null)
        return;

    for (TemplateBoLiteVo template : templates)
    {
        DynamicGridRow templateRow = reportRow.getRows().newRow();

        templateRow.setCollapsedImage(form.getImages().Admin.Edit);
        templateRow.setExpandedImage(form.getImages().Admin.Edit);

        if (template.getLastDeployment() != null && template.getLastUpdated() != null
                && template.getLastDeployment().isLessThan(template.getLastUpdated()))
        {
            templateRow.setTextColor(Color.Black);
        }
        else
        {
            templateRow.setTextColor(Color.Gray);
        }

        DynamicGridCell cellName = templateRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_NAME), DynamicCellType.STRING);
        cellName.setValue(template.getName());
        cellName.setTooltip(getTemplateTooltip(template.getTemplateXml()));
        cellName.setReadOnly(true);

        DynamicGridCell cellLastDeployed = templateRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_DEPLOY), DynamicCellType.DATETIME);
        cellLastDeployed.setValue(template.getLastDeployment());
        cellLastDeployed.setReadOnly(true);

        DynamicGridCell cellLastModified = templateRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_MODIFY), DynamicCellType.DATETIME);
        cellLastModified.setValue(template.getLastUpdated());
        cellLastModified.setReadOnly(true);

        templateRow.setValue(template);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateTemplates(DynamicGridRow reportRow, TemplateBoLiteVoCollection templates)
{
    if (templates == null)
        return;

    for (TemplateBoLiteVo template : templates)
    {
        DynamicGridRow templateRow = reportRow.getRows().newRow();

        templateRow.setCollapsedImage(form.getImages().Admin.Edit);
        templateRow.setExpandedImage(form.getImages().Admin.Edit);

        if (template.getLastDeployment() != null && template.getLastUpdated() != null
                && template.getLastDeployment().isLessThan(template.getLastUpdated()))
        {
            templateRow.setTextColor(Color.Black);
        }
        else
        {
            templateRow.setTextColor(Color.Gray);
        }

        DynamicGridCell cellName = templateRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_NAME), DynamicCellType.STRING);
        cellName.setValue(template.getName());
        cellName.setTooltip(getTemplateTooltip(template.getTemplateXml()));
        cellName.setReadOnly(true);

        DynamicGridCell cellLastDeployed = templateRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_DEPLOY), DynamicCellType.DATETIME);
        cellLastDeployed.setValue(template.getLastDeployment());
        cellLastDeployed.setReadOnly(true);

        DynamicGridCell cellLastModified = templateRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_MODIFY), DynamicCellType.DATETIME);
        cellLastModified.setValue(template.getLastUpdated());
        cellLastModified.setReadOnly(true);

        templateRow.setValue(template);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateTemplates(DynamicGridRow reportRow, TemplateBoLiteVoCollection templates)
{
    if (templates == null)
        return;

    for (TemplateBoLiteVo template : templates)
    {
        DynamicGridRow templateRow = reportRow.getRows().newRow();

        templateRow.setCollapsedImage(form.getImages().Admin.Edit);
        templateRow.setExpandedImage(form.getImages().Admin.Edit);

        if (template.getLastDeployment() != null && template.getLastUpdated() != null
                && template.getLastDeployment().isLessThan(template.getLastUpdated()))
        {
            templateRow.setTextColor(Color.Black);
        }
        else
        {
            templateRow.setTextColor(Color.Gray);
        }

        DynamicGridCell cellName = templateRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_NAME), DynamicCellType.STRING);
        cellName.setValue(template.getName());
        cellName.setTooltip(getTemplateTooltip(template.getTemplateXml()));
        cellName.setReadOnly(true);

        DynamicGridCell cellLastDeployed = templateRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_DEPLOY), DynamicCellType.DATETIME);
        cellLastDeployed.setValue(template.getLastDeployment());
        cellLastDeployed.setReadOnly(true);

        DynamicGridCell cellLastModified = templateRow.getCells().newCell(form.dyngrdReports().getColumns().getByIdentifier(COL_LAST_MODIFY), DynamicCellType.DATETIME);
        cellLastModified.setValue(template.getLastUpdated());
        cellLastModified.setReadOnly(true);

        templateRow.setValue(template);
    }
}