Examples of JAXBAreaValue


Examples of com.agiletec.plugins.jpimagemap.aps.system.services.content.model.attribute.model.JAXBAreaValue

    JAXBImageMapValue imageMapValue = new JAXBImageMapValue();
    JAXBResourceValue jaxbImageValue = (JAXBResourceValue) this.getImage().getJAXBAttribute(langCode).getValue();
    imageMapValue.setImage(jaxbImageValue);
    for (int i = 0; i < this.getAreas().size(); i++) {
      LinkedArea area = this.getAreas().get(i);
      JAXBAreaValue areaValue = new JAXBAreaValue();
      JAXBLinkValue areaLinkValue = (JAXBLinkValue) area.getLink().getJAXBAttribute(langCode).getValue();
      areaValue.setLink(areaLinkValue);
      areaValue.setShape(area.getShape());
      areaValue.setCoords(area.getCoords());
      imageMapValue.addArea(areaValue);
    }
    return imageMapValue;
  }
View Full Code Here

Examples of com.agiletec.plugins.jpimagemap.aps.system.services.content.model.attribute.model.JAXBAreaValue

            if (null != resource) {
                this.setResource(resource, this.getDefaultLangCode());
            }
      if (null != value.getAreas()) {
        for (int i = 0; i < value.getAreas().size(); i++) {
          JAXBAreaValue areaValue = value.getAreas().get(i);
          JAXBLinkValue areaLinkValue = areaValue.getLink();
          if (null == areaValue || null == areaLinkValue) continue;
          LinkedArea linkedArea = (LinkedArea) this.getPrototype().clone();
          linkedArea.setShape(areaValue.getShape());
          linkedArea.setCoords(areaValue.getCoords());
          linkedArea.getLink().setSymbolicLink(areaLinkValue.getSymbolikLink());
          Object textValue = areaLinkValue.getText();
          if (null == textValue) return;
          linkedArea.getLink().getTextMap().put(this.getDefaultLangCode(), textValue.toString());
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.