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

项目:AvoinApotti    文件:Logic.java   
private grdMovementRow checkForDigitNode(grdMovementRow lateralityRow, MskGroupLiteVo voMskGroup)
{
    if (lateralityRow == null || voMskGroup == null)
        throw new CodingRuntimeException("Digit row check only in the context of a laterality and group");

    for (int i = 0; i < lateralityRow.getRows().size(); i++)
    {
        RangeOfMovementDetailVo vo = (RangeOfMovementDetailVo) lateralityRow.getRows().get(i).getValue();
        if (vo.getGroup().equals(voMskGroup))
            return lateralityRow.getRows().get(i);
    }

    grdMovementRow digitRow = lateralityRow.getRows().newRow();

    if (voMskGroup.getID_MskGroups() == null)
        digitRow.setTextColor(Color.Red);

    return digitRow;
}
项目:AvoinApotti    文件:Logic.java   
private RangeOfMovementDetailVo getDetailForLateralityDigitJoint(LateralityLRonly lkpLaterality, MskGroupLiteVo voGroup, MskJointVo voJoint)
{
    if (lkpLaterality == null || voGroup == null || voJoint == null)
        return null;

    RangeOfMovementDetailVo voRom = null;
    for (int i = 0; i < form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().size(); i++)
    {
        if ((form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i).getLaterality().equals(lkpLaterality) && form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i).getGroup().equals(voGroup) && form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i).getJoint().equals(voJoint)))
        {
            voRom = form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i);
            break;
        }
    }

    if (voRom == null)
        throw new CodingRuntimeException("getDetailForLateralityDigitJoint failed in to find laterality group joint .");
    else
        return voRom;
}
项目:openMAXIMS    文件:Logic.java   
private grdMovementRow checkForDigitNode(grdMovementRow lateralityRow, MskGroupLiteVo voMskGroup)
{
    if (lateralityRow == null || voMskGroup == null)
        throw new CodingRuntimeException("Digit row check only in the context of a laterality and group");

    for (int i = 0; i < lateralityRow.getRows().size(); i++)
    {
        RangeOfMovementDetailVo vo = (RangeOfMovementDetailVo) lateralityRow.getRows().get(i).getValue();
        if (vo.getGroup().equals(voMskGroup))
            return lateralityRow.getRows().get(i);
    }

    grdMovementRow digitRow = lateralityRow.getRows().newRow();

    if (voMskGroup.getID_MskGroups() == null)
        digitRow.setTextColor(Color.Red);

    return digitRow;
}
项目:openMAXIMS    文件:Logic.java   
private RangeOfMovementDetailVo getDetailForLateralityDigitJoint(LateralityLRonly lkpLaterality, MskGroupLiteVo voGroup, MskJointVo voJoint)
{
    if (lkpLaterality == null || voGroup == null || voJoint == null)
        return null;

    RangeOfMovementDetailVo voRom = null;
    for (int i = 0; i < form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().size(); i++)
    {
        if ((form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i).getLaterality().equals(lkpLaterality) && form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i).getGroup().equals(voGroup) && form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i).getJoint().equals(voJoint)))
        {
            voRom = form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i);
            break;
        }
    }

    if (voRom == null)
        throw new CodingRuntimeException("getDetailForLateralityDigitJoint failed in to find laterality group joint .");
    else
        return voRom;
}
项目:openMAXIMS    文件:Logic.java   
private grdMovementRow checkForDigitNode(grdMovementRow lateralityRow, MskGroupLiteVo voMskGroup)
{
    if (lateralityRow == null || voMskGroup == null)
        throw new CodingRuntimeException("Digit row check only in the context of a laterality and group");

    for (int i = 0; i < lateralityRow.getRows().size(); i++)
    {
        RangeOfMovementDetailVo vo = (RangeOfMovementDetailVo) lateralityRow.getRows().get(i).getValue();
        if (vo.getGroup().equals(voMskGroup))
            return lateralityRow.getRows().get(i);
    }

    grdMovementRow digitRow = lateralityRow.getRows().newRow();

    if (voMskGroup.getID_MskGroups() == null)
        digitRow.setTextColor(Color.Red);

    return digitRow;
}
项目:openMAXIMS    文件:Logic.java   
private RangeOfMovementDetailVo getDetailForLateralityDigitJoint(LateralityLRonly lkpLaterality, MskGroupLiteVo voGroup, MskJointVo voJoint)
{
    if (lkpLaterality == null || voGroup == null || voJoint == null)
        return null;

    RangeOfMovementDetailVo voRom = null;
    for (int i = 0; i < form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().size(); i++)
    {
        if ((form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i).getLaterality().equals(lkpLaterality) && form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i).getGroup().equals(voGroup) && form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i).getJoint().equals(voJoint)))
        {
            voRom = form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i);
            break;
        }
    }

    if (voRom == null)
        throw new CodingRuntimeException("getDetailForLateralityDigitJoint failed in to find laterality group joint .");
    else
        return voRom;
}
项目:openmaxims-linux    文件:Logic.java   
private grdMovementRow checkForDigitNode(grdMovementRow lateralityRow, MskGroupLiteVo voMskGroup)
{
    if (lateralityRow == null || voMskGroup == null)
        throw new CodingRuntimeException("Digit row check only in the context of a laterality and group");

    for (int i = 0; i < lateralityRow.getRows().size(); i++)
    {
        RangeOfMovementDetailVo vo = (RangeOfMovementDetailVo) lateralityRow.getRows().get(i).getValue();
        if (vo.getGroup().equals(voMskGroup))
            return lateralityRow.getRows().get(i);
    }

    grdMovementRow digitRow = lateralityRow.getRows().newRow();

    if (voMskGroup.getID_MskGroups() == null)
        digitRow.setTextColor(Color.Red);

    return digitRow;
}
项目:openmaxims-linux    文件:Logic.java   
private RangeOfMovementDetailVo getDetailForLateralityDigitJoint(LateralityLRonly lkpLaterality, MskGroupLiteVo voGroup, MskJointVo voJoint)
{
    if (lkpLaterality == null || voGroup == null || voJoint == null)
        return null;

    RangeOfMovementDetailVo voRom = null;
    for (int i = 0; i < form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().size(); i++)
    {
        if ((form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i).getLaterality().equals(lkpLaterality) && form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i).getGroup().equals(voGroup) && form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i).getJoint().equals(voJoint)))
        {
            voRom = form.getLocalContext().getSelectedHandRangeOfMovementInstance().getDetails().get(i);
            break;
        }
    }

    if (voRom == null)
        throw new CodingRuntimeException("getDetailForLateralityDigitJoint failed in to find laterality group joint .");
    else
        return voRom;
}
项目:AvoinApotti    文件:MuscleJointConfigurationImpl.java   
public RangeOfMovementJointVoCollection listJoints()  
{
    DomainFactory factory = getDomainFactory();
    String hql;
    hql = " from MskGroups m where m.isActive = true and m.isJoint = true";
    List lstGroups = factory.find(hql);             

    RangeOfMovementJointVoCollection voCollJoints = new RangeOfMovementJointVoCollection();     

    for (Iterator iter = lstGroups.iterator(); iter.hasNext();) 
    {
        MskGroups domGroup = (MskGroups) iter.next();                       

        if (domGroup.isIsJoint().equals(Boolean.TRUE) &&
                domGroup.isIsJoint().equals(Boolean.TRUE))
        {
            MskGroupLiteVo voGroup = MskGroupLiteVoAssembler.create(domGroup);
            for (Iterator iterator = domGroup.getJoints().iterator(); iterator.hasNext();) 
            {
                RangeOfMovementJointVo voJoint = new RangeOfMovementJointVo();
                MskJoints domJoint = (MskJoints) iterator.next();
                voJoint.setJoint(MskJointVoAssembler.create(domJoint));                 
                voJoint.setGroup(voGroup);
                voCollJoints.add(voJoint);
            }

        }           
    }

    return voCollJoints;
}
项目:AvoinApotti    文件:Logic.java   
protected void onCmbDigitValueChanged() throws PresentationLogicException
{
    MskGroupLiteVo digit = form.ctnDetails().lyrDetails().tabDetails().cmbDigit().getValue();

    if (digit == null)
    {
        // Clear joints & movements
        form.ctnDetails().lyrDetails().tabDetails().cmbJoint().clear();
        form.ctnDetails().lyrDetails().tabDetails().cmbMovement().clear();
    }
    else
    {
        listJointsForGroup(domain.listJointsForGroup(digit));
    }
}
项目:openMAXIMS    文件:MuscleJointConfigurationImpl.java   
public RangeOfMovementJointVoCollection listJoints()  
{
    DomainFactory factory = getDomainFactory();
    String hql;
    hql = " from MskGroups m where m.isActive = true and m.isJoint = true";
    List lstGroups = factory.find(hql);             

    RangeOfMovementJointVoCollection voCollJoints = new RangeOfMovementJointVoCollection();     

    for (Iterator iter = lstGroups.iterator(); iter.hasNext();) 
    {
        MskGroups domGroup = (MskGroups) iter.next();                       

        if (domGroup.isIsJoint().equals(Boolean.TRUE) &&
                domGroup.isIsJoint().equals(Boolean.TRUE))
        {
            MskGroupLiteVo voGroup = MskGroupLiteVoAssembler.create(domGroup);
            for (Iterator iterator = domGroup.getJoints().iterator(); iterator.hasNext();) 
            {
                RangeOfMovementJointVo voJoint = new RangeOfMovementJointVo();
                MskJoints domJoint = (MskJoints) iterator.next();
                voJoint.setJoint(MskJointVoAssembler.create(domJoint));                 
                voJoint.setGroup(voGroup);
                voCollJoints.add(voJoint);
            }

        }           
    }

    return voCollJoints;
}
项目:openMAXIMS    文件:Logic.java   
protected void onCmbDigitValueChanged() throws PresentationLogicException
{
    MskGroupLiteVo digit = form.ctnDetails().lyrDetails().tabDetails().cmbDigit().getValue();

    if (digit == null)
    {
        // Clear joints & movements
        form.ctnDetails().lyrDetails().tabDetails().cmbJoint().clear();
        form.ctnDetails().lyrDetails().tabDetails().cmbMovement().clear();
    }
    else
    {
        listJointsForGroup(domain.listJointsForGroup(digit));
    }
}
项目:openMAXIMS    文件:MuscleJointConfigurationImpl.java   
public RangeOfMovementJointVoCollection listJoints()  
{
    DomainFactory factory = getDomainFactory();
    String hql;
    hql = " from MskGroups m where m.isActive = true and m.isJoint = true";
    List lstGroups = factory.find(hql);             

    RangeOfMovementJointVoCollection voCollJoints = new RangeOfMovementJointVoCollection();     

    for (Iterator iter = lstGroups.iterator(); iter.hasNext();) 
    {
        MskGroups domGroup = (MskGroups) iter.next();                       

        if (domGroup.isIsJoint().equals(Boolean.TRUE) &&
                domGroup.isIsJoint().equals(Boolean.TRUE))
        {
            MskGroupLiteVo voGroup = MskGroupLiteVoAssembler.create(domGroup);
            for (Iterator iterator = domGroup.getJoints().iterator(); iterator.hasNext();) 
            {
                RangeOfMovementJointVo voJoint = new RangeOfMovementJointVo();
                MskJoints domJoint = (MskJoints) iterator.next();
                voJoint.setJoint(MskJointVoAssembler.create(domJoint));                 
                voJoint.setGroup(voGroup);
                voCollJoints.add(voJoint);
            }

        }           
    }

    return voCollJoints;
}
项目:openMAXIMS    文件:Logic.java   
protected void onCmbDigitValueChanged() throws PresentationLogicException
{
    MskGroupLiteVo digit = form.ctnDetails().lyrDetails().tabDetails().cmbDigit().getValue();

    if (digit == null)
    {
        // Clear joints & movements
        form.ctnDetails().lyrDetails().tabDetails().cmbJoint().clear();
        form.ctnDetails().lyrDetails().tabDetails().cmbMovement().clear();
    }
    else
    {
        listJointsForGroup(domain.listJointsForGroup(digit));
    }
}
项目:openmaxims-linux    文件:MuscleJointConfigurationImpl.java   
public RangeOfMovementJointVoCollection listJoints()  
{
    DomainFactory factory = getDomainFactory();
    String hql;
    hql = " from MskGroups m where m.isActive = true and m.isJoint = true";
    List lstGroups = factory.find(hql);             

    RangeOfMovementJointVoCollection voCollJoints = new RangeOfMovementJointVoCollection();     

    for (Iterator iter = lstGroups.iterator(); iter.hasNext();) 
    {
        MskGroups domGroup = (MskGroups) iter.next();                       

        if (domGroup.isIsJoint().equals(Boolean.TRUE) &&
                domGroup.isIsJoint().equals(Boolean.TRUE))
        {
            MskGroupLiteVo voGroup = MskGroupLiteVoAssembler.create(domGroup);
            for (Iterator iterator = domGroup.getJoints().iterator(); iterator.hasNext();) 
            {
                RangeOfMovementJointVo voJoint = new RangeOfMovementJointVo();
                MskJoints domJoint = (MskJoints) iterator.next();
                voJoint.setJoint(MskJointVoAssembler.create(domJoint));                 
                voJoint.setGroup(voGroup);
                voCollJoints.add(voJoint);
            }

        }           
    }

    return voCollJoints;
}
项目:openmaxims-linux    文件:Logic.java   
protected void onCmbDigitValueChanged() throws PresentationLogicException
{
    MskGroupLiteVo digit = form.ctnDetails().lyrDetails().tabDetails().cmbDigit().getValue();

    if (digit == null)
    {
        // Clear joints & movements
        form.ctnDetails().lyrDetails().tabDetails().cmbJoint().clear();
        form.ctnDetails().lyrDetails().tabDetails().cmbMovement().clear();
    }
    else
    {
        listJointsForGroup(domain.listJointsForGroup(digit));
    }
}