Java 类ims.emergency.vo.lookups.Cubicle 实例源码

项目:AvoinApotti    文件:TrackingImpl.java   
private Cubicle assembleCubicleLookupItem(LookupInstance cubicle) 
{
    if(cubicle == null)
        return null;

    ims.framework.utils.ImagePath img = null;
    ims.framework.utils.Color color = null;     
    img = null;

    if (cubicle.getImage() != null) 
    {
        img = new ims.framework.utils.ImagePath(cubicle.getImage().getImageId(), cubicle.getImage().getImagePath());
    }

    color = cubicle.getColor();

    if (color != null) 
        color.getValue();

    ims.emergency.vo.lookups.Cubicle voLookup = new ims.emergency.vo.lookups.Cubicle(cubicle.getId(),cubicle.getText(), cubicle.isActive(), null, img, color);
    ims.emergency.vo.lookups.Cubicle parentVoLookup = voLookup;
    ims.domain.lookups.LookupInstance parent = cubicle.getParent();

    while (parent != null)
    {
        if (parent.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath() );
        }
        else 
        {
            img = null;
        }

        color = parent.getColor();

        if (color != null) 
            color.getValue();

        parentVoLookup.setParent(new ims.emergency.vo.lookups.Cubicle(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
        parentVoLookup = parentVoLookup.getParent();
        parent = parent.getParent();
    }   

    return voLookup;
}
项目:openMAXIMS    文件:TrackingImpl.java   
private Cubicle assembleCubicleLookupItem(LookupInstance cubicle) 
{
    if(cubicle == null)
        return null;

    ims.framework.utils.ImagePath img = null;
    ims.framework.utils.Color color = null;     
    img = null;

    if (cubicle.getImage() != null) 
    {
        img = new ims.framework.utils.ImagePath(cubicle.getImage().getImageId(), cubicle.getImage().getImagePath());
    }

    color = cubicle.getColor();

    if (color != null) 
        color.getValue();

    ims.emergency.vo.lookups.Cubicle voLookup = new ims.emergency.vo.lookups.Cubicle(cubicle.getId(),cubicle.getText(), cubicle.isActive(), null, img, color);
    ims.emergency.vo.lookups.Cubicle parentVoLookup = voLookup;
    ims.domain.lookups.LookupInstance parent = cubicle.getParent();

    while (parent != null)
    {
        if (parent.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath() );
        }
        else 
        {
            img = null;
        }

        color = parent.getColor();

        if (color != null) 
            color.getValue();

        parentVoLookup.setParent(new ims.emergency.vo.lookups.Cubicle(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
        parentVoLookup = parentVoLookup.getParent();
        parent = parent.getParent();
    }   

    return voLookup;
}
项目:openMAXIMS    文件:TrackingImpl.java   
private Cubicle assembleCubicleLookupItem(LookupInstance cubicle) 
{
    if(cubicle == null)
        return null;

    ims.framework.utils.ImagePath img = null;
    ims.framework.utils.Color color = null;     
    img = null;

    if (cubicle.getImage() != null) 
    {
        img = new ims.framework.utils.ImagePath(cubicle.getImage().getImageId(), cubicle.getImage().getImagePath());
    }

    color = cubicle.getColor();

    if (color != null) 
        color.getValue();

    ims.emergency.vo.lookups.Cubicle voLookup = new ims.emergency.vo.lookups.Cubicle(cubicle.getId(),cubicle.getText(), cubicle.isActive(), null, img, color);
    ims.emergency.vo.lookups.Cubicle parentVoLookup = voLookup;
    ims.domain.lookups.LookupInstance parent = cubicle.getParent();

    while (parent != null)
    {
        if (parent.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath() );
        }
        else 
        {
            img = null;
        }

        color = parent.getColor();

        if (color != null) 
            color.getValue();

        parentVoLookup.setParent(new ims.emergency.vo.lookups.Cubicle(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
        parentVoLookup = parentVoLookup.getParent();
        parent = parent.getParent();
    }   

    return voLookup;
}
项目:openmaxims-linux    文件:TrackingImpl.java   
private Cubicle assembleCubicleLookupItem(LookupInstance cubicle) 
{
    if(cubicle == null)
        return null;

    ims.framework.utils.ImagePath img = null;
    ims.framework.utils.Color color = null;     
    img = null;

    if (cubicle.getImage() != null) 
    {
        img = new ims.framework.utils.ImagePath(cubicle.getImage().getImageId(), cubicle.getImage().getImagePath());
    }

    color = cubicle.getColor();

    if (color != null) 
        color.getValue();

    ims.emergency.vo.lookups.Cubicle voLookup = new ims.emergency.vo.lookups.Cubicle(cubicle.getId(),cubicle.getText(), cubicle.isActive(), null, img, color);
    ims.emergency.vo.lookups.Cubicle parentVoLookup = voLookup;
    ims.domain.lookups.LookupInstance parent = cubicle.getParent();

    while (parent != null)
    {
        if (parent.getImage() != null) 
        {
            img = new ims.framework.utils.ImagePath(parent.getImage().getImageId(), parent.getImage().getImagePath() );
        }
        else 
        {
            img = null;
        }

        color = parent.getColor();

        if (color != null) 
            color.getValue();

        parentVoLookup.setParent(new ims.emergency.vo.lookups.Cubicle(parent.getId(),parent.getText(), parent.isActive(), null, img, color));
        parentVoLookup = parentVoLookup.getParent();
        parent = parent.getParent();
    }   

    return voLookup;
}