Examples of UrlAttribute


Examples of org.geomajas.layer.feature.attribute.UrlAttribute

        break;
      case DATE:
        result = new DateAttribute((Date) value);
        break;
      case URL:
        result = new UrlAttribute((String) value);
        break;
      case IMGURL:
        result = new ImageUrlAttribute((String) value);
        break;
      default:
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.UrlAttribute

    attributes.put("stringAttr", new StringAttribute("s1"));
    attributes.put("doubleAttr", new DoubleAttribute(1.23));
    attributes.put("longAttr", new LongAttribute(12L));
    attributes.put("floatAttr", new FloatAttribute(1.67F));
    attributes.put("shortAttr", new ShortAttribute((short) 6));
    attributes.put("urlAttr", new UrlAttribute("http://haha"));
    service.setAttributes(bean, layerBeans.getLayerInfo().getFeatureInfo(), new DummyMapper(), attributes);
    Assert.assertEquals("s1", bean.getStringAttr());
    Assert.assertEquals(1.23, bean.getDoubleAttr(), 0.0001);
    Assert.assertEquals(12L, bean.getLongAttr().longValue());
    Assert.assertEquals(1.67F, bean.getFloatAttr(), 0.0001);
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.UrlAttribute

      case STRING:
        return new StringAttribute(value == null ? null : value.toString());
      case DATE:
        return new DateAttribute((Date) value);
      case URL:
        return new UrlAttribute((String) value);
      case IMGURL:
        return new ImageUrlAttribute((String) value);
      default:
        throw new IllegalArgumentException("Cannot create primitive attribute of type " + info);
    }
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.UrlAttribute

        break;
      case DATE:
        attribute = new DateAttribute();
        break;
      case URL:
        attribute = new UrlAttribute();
        break;
      case IMGURL:
        attribute = new ImageUrlAttribute();
    }
    attribute.setEditable(info.isEditable());
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.UrlAttribute

      case SHORT:
        return new ShortAttribute();
      case STRING:
        return new StringAttribute();
      case URL:
        return new UrlAttribute();
      default:
        return new StringAttribute();

    }
  }
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.UrlAttribute

          break;
        case STRING:
          attribute = new StringAttribute(value);
          break;
        case URL:
          attribute = new UrlAttribute(value);
          break;
        case IMGURL:
          attribute = new ImageUrlAttribute(value);
          break;
      }
View Full Code Here

Examples of org.geomajas.layer.feature.attribute.UrlAttribute

          case STRING:
            return new StringAttribute();
          case DATE:
            return new DateAttribute();
          case URL:
            return new UrlAttribute();
          case IMGURL:
            return new ImageUrlAttribute();
        }
        throw new IllegalArgumentException("Unknown primtive in test");
      } else {
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.