/** * Constructs a client-side image map which is "attached" to the given {@link Image} component. * * @param id * the component id * @param image * the image component */ public ClientSideImageMap(String id, Image image) { super(id); setOutputMarkupId(true); add(AttributeModifier.replace("name", new PropertyModel<String>(this, "markupId"))); image.add(AttributeModifier.replace("usemap", new UsemapModel())); areas = new RepeatingView("area"); add(areas); }
/** * Constructs a client-side image map which is "attached" to the given {@link Image} component. * * @param id * the component id * @param image * the image component */ public ClientSideImageMap(String id, Image image) { super(id); setOutputMarkupId(true); add(AttributeModifier.replace("name", new PropertyModel<String>(this, "markupId"))); image.add(AttributeModifier.replace("usemap", new UsemapModel())); areas = new RepeatingView("area"); add(areas); }
/** * Constructs a client-side image map which is "attached" to the given {@link Image} component. * * @param id * the component id * @param image * the image component */ public ClientSideImageMap(String id, Image image) { super(id); setOutputMarkupId(true); add(new AttributeModifier("name", true, new PropertyModel<String>(this, "markupId"))); image.add(new AttributeModifier("usemap", true, new UsemapModel())); areas = new RepeatingView("area"); add(areas); }