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

项目:AvoinApotti    文件:Logic.java   
void convertAllAreasToVO(DrawingControlGroup node, DrawingGroupVo voGroup)
{
    voGroup.setAreaCollection(new DrawingAreaVoCollection());
    voGroup.setChildGroups(new DrawingGroupVoCollection());
    voGroup.setGroupName(node.getName());
    voGroup.setGroupID(new Integer(node.getID()));

    DrawingControlAreaCollection areas = node.getAreas();
    for (int i = 0; i < areas.size(); i++)
    {
        DrawingControlArea area = areas.get(i);
        voGroup.getAreaCollection().add(createVoArea(area));
    }

    DrawingControlGroupCollection groups = node.getGroups();
    for (int i = 0; i < groups.size(); i++)
    {
        DrawingControlGroup group = groups.get(i);
        voGroup.getChildGroups().add(createVoGroup(group));
        convertAllAreasToVO(group, voGroup.getChildGroups().get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
void convertAllAreasToVO(DrawingControlGroup node, DrawingGroupVo voGroup)
{
    voGroup.setAreaCollection(new DrawingAreaVoCollection());
    voGroup.setChildGroups(new DrawingGroupVoCollection());
    voGroup.setGroupName(node.getName());
    voGroup.setGroupID(new Integer(node.getID()));

    DrawingControlAreaCollection areas = node.getAreas();
    for (int i = 0; i < areas.size(); i++)
    {
        DrawingControlArea area = areas.get(i);
        voGroup.getAreaCollection().add(createVoArea(area));
    }

    DrawingControlGroupCollection groups = node.getGroups();
    for (int i = 0; i < groups.size(); i++)
    {
        DrawingControlGroup group = groups.get(i);
        voGroup.getChildGroups().add(createVoGroup(group));
        convertAllAreasToVO(group, voGroup.getChildGroups().get(i));
    }
}
项目:openMAXIMS    文件:Logic.java   
void convertAllAreasToVO(DrawingControlGroup node, DrawingGroupVo voGroup)
{
    voGroup.setAreaCollection(new DrawingAreaVoCollection());
    voGroup.setChildGroups(new DrawingGroupVoCollection());
    voGroup.setGroupName(node.getName());
    voGroup.setGroupID(new Integer(node.getID()));

    DrawingControlAreaCollection areas = node.getAreas();
    for (int i = 0; i < areas.size(); i++)
    {
        DrawingControlArea area = areas.get(i);
        voGroup.getAreaCollection().add(createVoArea(area));
    }

    DrawingControlGroupCollection groups = node.getGroups();
    for (int i = 0; i < groups.size(); i++)
    {
        DrawingControlGroup group = groups.get(i);
        voGroup.getChildGroups().add(createVoGroup(group));
        convertAllAreasToVO(group, voGroup.getChildGroups().get(i));
    }
}
项目:openmaxims-linux    文件:Logic.java   
void convertAllAreasToVO(DrawingControlGroup node, DrawingGroupVo voGroup)
{
    voGroup.setAreaCollection(new DrawingAreaVoCollection());
    voGroup.setChildGroups(new DrawingGroupVoCollection());
    voGroup.setGroupName(node.getName());
    voGroup.setGroupID(new Integer(node.getID()));

    DrawingControlAreaCollection areas = node.getAreas();
    for (int i = 0; i < areas.size(); i++)
    {
        DrawingControlArea area = areas.get(i);
        voGroup.getAreaCollection().add(createVoArea(area));
    }

    DrawingControlGroupCollection groups = node.getGroups();
    for (int i = 0; i < groups.size(); i++)
    {
        DrawingControlGroup group = groups.get(i);
        voGroup.getChildGroups().add(createVoGroup(group));
        convertAllAreasToVO(group, voGroup.getChildGroups().get(i));
    }
}