Package com.agiletec.plugins.jpimagemap.aps.system.services.content.model.attribute.model

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


    return this;
  }
 
  @Override
  protected Object getJAXBValue(String langCode) {
    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


    }
    return imageMapValue;
  }
 
    public void valueFrom(DefaultJAXBAttribute jaxbAttribute) {
        JAXBImageMapValue value = (JAXBImageMapValue) jaxbAttribute.getValue();
        if (null == value) return;
        JAXBResourceValue jaxbImageValue = value.getImage();
        if (null == jaxbImageValue) return;
        try {
            IResourceManager resourceManager = this.getResourceManager();
            ResourceInterface resource = resourceManager.loadResource(jaxbImageValue.getResourceId().toString());
            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());
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpimagemap.aps.system.services.content.model.attribute.model.JAXBImageMapValue

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.