Java 类ims.emergency.vo.UserAssessmentForWhiteboardConfigVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateAssessmentQueryCombo(String value)
{
    form.qmbAssessment().clear();

    UserAssessmentForWhiteboardConfigVoCollection coll = domain.listAssessments(value);

    for (int i = 0; i < coll.size(); i++)
    {
        UserAssessmentForWhiteboardConfigVo userAssess = coll.get(i);
        form.qmbAssessment().newRow(userAssess, userAssess.getName().toString());
    }
    if (coll.size() == 1)
    {
        form.qmbAssessment().setValue(coll.get(0));
    }
    else if (coll.size() > 1)
    {
        form.qmbAssessment().showOpened();
    }

}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    clearScreen();
    if (whiteBoardAssessmentConfig==null)
        return;

    if (whiteBoardAssessmentConfig.getName() != null)
    {
        UserAssessmentForWhiteboardConfigVo tempUA = new UserAssessmentForWhiteboardConfigVo();
        form.qmbAssessment().newRow(tempUA, whiteBoardAssessmentConfig.getName());
        form.qmbAssessment().setValue(tempUA);
    }

    if (whiteBoardAssessmentConfig.getIcon() != null)
    {
        Image img =engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage());
        form.qmbIcon().newRow(img, img.getImagePath());
        form.qmbIcon().setValue(img);
        form.imgAssessment().setValue(img);
    }

    form.txtTaxonomy().setValue(whiteBoardAssessmentConfig.getMAXIMSMappingValue());

}
项目:openMAXIMS    文件:Logic.java   
private void populateAssessmentQueryCombo(String value)
{
    form.qmbAssessment().clear();

    UserAssessmentForWhiteboardConfigVoCollection coll = domain.listAssessments(value);

    for (int i = 0; i < coll.size(); i++)
    {
        UserAssessmentForWhiteboardConfigVo userAssess = coll.get(i);
        form.qmbAssessment().newRow(userAssess, userAssess.getName().toString());
    }
    if (coll.size() == 1)
    {
        form.qmbAssessment().setValue(coll.get(0));
    }
    else if (coll.size() > 1)
    {
        form.qmbAssessment().showOpened();
    }

    form.txtName().setValue(form.qmbAssessment().getValue()!=null ? form.qmbAssessment().getValue().getName() : null);
}
项目:openMAXIMS    文件:Logic.java   
private void populateAssessmentQueryCombo(String value)
{
    form.qmbAssessment().clear();

    UserAssessmentForWhiteboardConfigVoCollection coll = domain.listAssessments(value);

    for (int i = 0; i < coll.size(); i++)
    {
        UserAssessmentForWhiteboardConfigVo userAssess = coll.get(i);
        form.qmbAssessment().newRow(userAssess, userAssess.getName().toString());
    }
    if (coll.size() == 1)
    {
        form.qmbAssessment().setValue(coll.get(0));
    }
    else if (coll.size() > 1)
    {
        form.qmbAssessment().showOpened();
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    clearScreen();
    if (whiteBoardAssessmentConfig==null)
        return;

    if (whiteBoardAssessmentConfig.getName() != null)
    {
        UserAssessmentForWhiteboardConfigVo tempUA = new UserAssessmentForWhiteboardConfigVo();
        form.qmbAssessment().newRow(tempUA, whiteBoardAssessmentConfig.getName());
        form.qmbAssessment().setValue(tempUA);
    }

    if (whiteBoardAssessmentConfig.getIcon() != null)
    {
        Image img =engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage());
        form.qmbIcon().newRow(img, img.getImagePath());
        form.qmbIcon().setValue(img);
        form.imgAssessment().setValue(img);
    }

    form.txtTaxonomy().setValue(whiteBoardAssessmentConfig.getMAXIMSMappingValue());

}
项目:openmaxims-linux    文件:Logic.java   
private void populateAssessmentQueryCombo(String value)
{
    form.qmbAssessment().clear();

    UserAssessmentForWhiteboardConfigVoCollection coll = domain.listAssessments(value);

    for (int i = 0; i < coll.size(); i++)
    {
        UserAssessmentForWhiteboardConfigVo userAssess = coll.get(i);
        form.qmbAssessment().newRow(userAssess, userAssess.getName().toString());
    }
    if (coll.size() == 1)
    {
        form.qmbAssessment().setValue(coll.get(0));
    }
    else if (coll.size() > 1)
    {
        form.qmbAssessment().showOpened();
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(WhiteBoardAssessmentConfigVo whiteBoardAssessmentConfig)
{
    clearScreen();
    if (whiteBoardAssessmentConfig==null)
        return;

    if (whiteBoardAssessmentConfig.getName() != null)
    {
        UserAssessmentForWhiteboardConfigVo tempUA = new UserAssessmentForWhiteboardConfigVo();
        form.qmbAssessment().newRow(tempUA, whiteBoardAssessmentConfig.getName());
        form.qmbAssessment().setValue(tempUA);
    }

    if (whiteBoardAssessmentConfig.getIcon() != null)
    {
        Image img =engine.getRegisteredImage(whiteBoardAssessmentConfig.getIcon().getID_AppImage());
        form.qmbIcon().newRow(img, img.getImagePath());
        form.qmbIcon().setValue(img);
        form.imgAssessment().setValue(img);
    }

    form.txtTaxonomy().setValue(whiteBoardAssessmentConfig.getMAXIMSMappingValue());

}