Package com.agiletec.aps.system.common.entity.model

Examples of com.agiletec.aps.system.common.entity.model.AttributeTracer


 
  private void manageImageMapAttribute(AttributeInterface attribute,
      AttributeTracer tracer, HttpServletRequest request) {
    ImageMapAttribute imageMapAttribute = (ImageMapAttribute) attribute;
    ImageAttribute imageAttr = imageMapAttribute.getImage();   
    AttributeTracer imageTracer = (AttributeTracer) tracer.clone();
    ResourceAttributeManager imageManager = (ResourceAttributeManager) this.getManager(imageAttr);
    imageManager.updateAttribute(imageAttr, imageTracer, request);
    List<LinkedArea> areas = imageMapAttribute.getAreas();
    for (int i = 0; i < areas.size(); i++) {
      LinkedArea area = (LinkedArea) areas.get(i);
      AttributeTracer areaTracer = (AttributeTracer) tracer.clone();
      areaTracer.setMonoListElement(true);
      areaTracer.setListIndex(i);
      LinkAttribute link = area.getLink();
      LinkAttributeManager linkManager = (LinkAttributeManager) this.getManager(link);
      String coords = request.getParameter(imageMapAttribute.getName() + "_coords_" + areaTracer.getListIndex());
      linkManager.updateAttribute(link, areaTracer, request);
      area.setCoords(coords);
    }
  }
View Full Code Here


        try {
            if (null == this.getResource()) return errors;
      List<LinkedArea> areas = this.getAreas();
      for (int i = 0; i < areas.size(); i++) {
        LinkedArea area = (LinkedArea) areas.get(i);
        AttributeTracer areaTracer = (AttributeTracer) tracer.clone();
        areaTracer.setMonoListElement(true);
        areaTracer.setListIndex(i);
        LinkAttribute linkAttribute = area.getLink();
        if (null != linkAttribute) {
          errors.addAll(linkAttribute.validate(areaTracer));
        }
        String coords = area.getCoords();
View Full Code Here

TOP

Related Classes of com.agiletec.aps.system.common.entity.model.AttributeTracer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.