Java 类ims.core.vo.lookups.LateralityLRonlyCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
/**
 * @param voJoint
 * @param bAll
 *            Loads the laterality combo on the forms peripheral tab. If the passed in joint can be found in the peripheral tree then the lateralities present in the tree are NOT loaded into the combo.
 */
private void loadAvailableLateralities(MskJointVo voJoint, boolean bAll)
{
    form.lyrDetails().tabPeripheral().cmbLaterality().clear();

    if (bAll == true)
    {
        LateralityLRonlyCollection coll = LookupHelper.getLateralityLRonly(domain.getLookupService());
        for (int i = 0; i < coll.size(); i++)
            form.lyrDetails().tabPeripheral().cmbLaterality().newRow(coll.get(i), coll.get(i).getIItemText());

    }
    else
    {
        GenForm.grdPeripheralRow row = null;
        row = findPeripheralChildNode(voJoint, LateralityLRonly.LEFT);
        if (row == null)
        {
            form.lyrDetails().tabPeripheral().cmbLaterality().newRow(LateralityLRonly.LEFT, LateralityLRonly.LEFT.getIItemText());
        }

        row = findPeripheralChildNode(voJoint, LateralityLRonly.RIGHT);
        if (row == null)
        {
            form.lyrDetails().tabPeripheral().cmbLaterality().newRow(LateralityLRonly.RIGHT, LateralityLRonly.RIGHT.getIItemText());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * @param voJoint
 * @param bAll
 *            Loads the laterality combo on the forms peripheral tab. If the passed in joint can be found in the peripheral tree then the lateralities present in the tree are NOT loaded into the combo.
 */
private void loadAvailableLateralities(MskJointVo voJoint, boolean bAll)
{
    form.lyrDetails().tabPeripheral().cmbLaterality().clear();

    if (bAll == true)
    {
        LateralityLRonlyCollection coll = LookupHelper.getLateralityLRonly(domain.getLookupService());
        for (int i = 0; i < coll.size(); i++)
            form.lyrDetails().tabPeripheral().cmbLaterality().newRow(coll.get(i), coll.get(i).getIItemText());

    }
    else
    {
        GenForm.grdPeripheralRow row = null;
        row = findPeripheralChildNode(voJoint, LateralityLRonly.LEFT);
        if (row == null)
        {
            form.lyrDetails().tabPeripheral().cmbLaterality().newRow(LateralityLRonly.LEFT, LateralityLRonly.LEFT.getIItemText());
        }

        row = findPeripheralChildNode(voJoint, LateralityLRonly.RIGHT);
        if (row == null)
        {
            form.lyrDetails().tabPeripheral().cmbLaterality().newRow(LateralityLRonly.RIGHT, LateralityLRonly.RIGHT.getIItemText());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * @param voJoint
 * @param bAll
 *            Loads the laterality combo on the forms peripheral tab. If the passed in joint can be found in the peripheral tree then the lateralities present in the tree are NOT loaded into the combo.
 */
private void loadAvailableLateralities(MskJointVo voJoint, boolean bAll)
{
    form.lyrDetails().tabPeripheral().cmbLaterality().clear();

    if (bAll == true)
    {
        LateralityLRonlyCollection coll = LookupHelper.getLateralityLRonly(domain.getLookupService());
        for (int i = 0; i < coll.size(); i++)
            form.lyrDetails().tabPeripheral().cmbLaterality().newRow(coll.get(i), coll.get(i).getIItemText());

    }
    else
    {
        GenForm.grdPeripheralRow row = null;
        row = findPeripheralChildNode(voJoint, LateralityLRonly.LEFT);
        if (row == null)
        {
            form.lyrDetails().tabPeripheral().cmbLaterality().newRow(LateralityLRonly.LEFT, LateralityLRonly.LEFT.getIItemText());
        }

        row = findPeripheralChildNode(voJoint, LateralityLRonly.RIGHT);
        if (row == null)
        {
            form.lyrDetails().tabPeripheral().cmbLaterality().newRow(LateralityLRonly.RIGHT, LateralityLRonly.RIGHT.getIItemText());
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * @param voJoint
 * @param bAll
 *            Loads the laterality combo on the forms peripheral tab. If the passed in joint can be found in the peripheral tree then the lateralities present in the tree are NOT loaded into the combo.
 */
private void loadAvailableLateralities(MskJointVo voJoint, boolean bAll)
{
    form.lyrDetails().tabPeripheral().cmbLaterality().clear();

    if (bAll == true)
    {
        LateralityLRonlyCollection coll = LookupHelper.getLateralityLRonly(domain.getLookupService());
        for (int i = 0; i < coll.size(); i++)
            form.lyrDetails().tabPeripheral().cmbLaterality().newRow(coll.get(i), coll.get(i).getIItemText());

    }
    else
    {
        GenForm.grdPeripheralRow row = null;
        row = findPeripheralChildNode(voJoint, LateralityLRonly.LEFT);
        if (row == null)
        {
            form.lyrDetails().tabPeripheral().cmbLaterality().newRow(LateralityLRonly.LEFT, LateralityLRonly.LEFT.getIItemText());
        }

        row = findPeripheralChildNode(voJoint, LateralityLRonly.RIGHT);
        if (row == null)
        {
            form.lyrDetails().tabPeripheral().cmbLaterality().newRow(LateralityLRonly.RIGHT, LateralityLRonly.RIGHT.getIItemText());
        }
    }
}