Java 类ims.ocrr.vo.QuestionTooltipVoCollection 实例源码

项目:AvoinApotti    文件:MyOrderQuestionsPopulation.java   
public void addTooltips(QuestionTooltipVoCollection questionTooltips)
{
    if(questionTooltips == null)
        return;

    QuestionInformationShortVo voQuestInfoShort = null;
    DynamicGridRow pRow;
    for(int i=0;i<gridQuestions.getRows().size();i++)
    {
        pRow = gridQuestions.getRows().get(i);
        for(int p=0;p<pRow.getRows().size();p++)
        {
            DynamicGridRow cRow = pRow.getRows().get(p);
            if(cRow.getIdentifier() != null)
            {
                if(cRow.getIdentifier() instanceof IQuestionType)
                    voQuestInfoShort = ((IQuestionType)cRow.getIdentifier()).getIQuestionTypeQuestion();
            }

            if(voQuestInfoShort != null)
            {
                for(int j=0; j<questionTooltips.size(); j++)
                {
                    if(voQuestInfoShort.getID_QuestionInformationIsNotNull() && questionTooltips.get(j).getQuestionIDIsNotNull())
                    {
                        if(voQuestInfoShort.getID_QuestionInformation().equals(questionTooltips.get(j).getQuestionID()))
                        {
                            DynamicGridCell cellName = cRow.getCells().get(columnName);
                            cellName.setTooltip(questionTooltips.get(j).getTooltip());
                        }
                    }
                }
            }       
        }   
    }
}
项目:openMAXIMS    文件:MyOrderQuestionsPopulation.java   
public void addTooltips(QuestionTooltipVoCollection questionTooltips)
{
    if(questionTooltips == null)
        return;

    QuestionInformationShortVo voQuestInfoShort = null;
    DynamicGridRow pRow;
    for(int i=0;i<gridQuestions.getRows().size();i++)
    {
        pRow = gridQuestions.getRows().get(i);
        for(int p=0;p<pRow.getRows().size();p++)
        {
            DynamicGridRow cRow = pRow.getRows().get(p);
            if(cRow.getIdentifier() != null)
            {
                if(cRow.getIdentifier() instanceof IQuestionType)
                    voQuestInfoShort = ((IQuestionType)cRow.getIdentifier()).getIQuestionTypeQuestion();
            }

            if(voQuestInfoShort != null)
            {
                for(int j=0; j<questionTooltips.size(); j++)
                {
                    if(voQuestInfoShort.getID_QuestionInformationIsNotNull() && questionTooltips.get(j).getQuestionIDIsNotNull())
                    {
                        if(voQuestInfoShort.getID_QuestionInformation().equals(questionTooltips.get(j).getQuestionID()))
                        {
                            DynamicGridCell cellName = cRow.getCells().get(columnName);
                            cellName.setTooltip(questionTooltips.get(j).getTooltip());
                        }
                    }
                }
            }       
        }   
    }
}
项目:openMAXIMS    文件:MyOrderQuestionsPopulation.java   
public void addTooltips(QuestionTooltipVoCollection questionTooltips)
{
    if(questionTooltips == null)
        return;

    QuestionInformationShortVo voQuestInfoShort = null;
    DynamicGridRow pRow;
    for(int i=0;i<gridQuestions.getRows().size();i++)
    {
        pRow = gridQuestions.getRows().get(i);
        for(int p=0;p<pRow.getRows().size();p++)
        {
            DynamicGridRow cRow = pRow.getRows().get(p);
            if(cRow.getIdentifier() != null)
            {
                if(cRow.getIdentifier() instanceof IQuestionType)
                    voQuestInfoShort = ((IQuestionType)cRow.getIdentifier()).getIQuestionTypeQuestion();
            }

            if(voQuestInfoShort != null)
            {
                for(int j=0; j<questionTooltips.size(); j++)
                {
                    if(voQuestInfoShort.getID_QuestionInformationIsNotNull() && questionTooltips.get(j).getQuestionIDIsNotNull())
                    {
                        if(voQuestInfoShort.getID_QuestionInformation().equals(questionTooltips.get(j).getQuestionID()))
                        {
                            DynamicGridCell cellName = cRow.getCells().get(columnName);
                            cellName.setTooltip(questionTooltips.get(j).getTooltip());
                        }
                    }
                }
            }       
        }   
    }
}
项目:openmaxims-linux    文件:MyOrderQuestionsPopulation.java   
public void addTooltips(QuestionTooltipVoCollection questionTooltips)
{
    if(questionTooltips == null)
        return;

    QuestionInformationShortVo voQuestInfoShort = null;
    DynamicGridRow pRow;
    for(int i=0;i<gridQuestions.getRows().size();i++)
    {
        pRow = gridQuestions.getRows().get(i);
        for(int p=0;p<pRow.getRows().size();p++)
        {
            DynamicGridRow cRow = pRow.getRows().get(p);
            if(cRow.getIdentifier() != null)
            {
                if(cRow.getIdentifier() instanceof IQuestionType)
                    voQuestInfoShort = ((IQuestionType)cRow.getIdentifier()).getIQuestionTypeQuestion();
            }

            if(voQuestInfoShort != null)
            {
                for(int j=0; j<questionTooltips.size(); j++)
                {
                    if(voQuestInfoShort.getID_QuestionInformationIsNotNull() && questionTooltips.get(j).getQuestionIDIsNotNull())
                    {
                        if(voQuestInfoShort.getID_QuestionInformation().equals(questionTooltips.get(j).getQuestionID()))
                        {
                            DynamicGridCell cellName = cRow.getCells().get(columnName);
                            cellName.setTooltip(questionTooltips.get(j).getTooltip());
                        }
                    }
                }
            }       
        }   
    }
}