@Override protected void onUpdate(AjaxRequestTarget target) { defaultStyleUpdater.updateStyleImage(target); } });
defaultStyleUpdater = new LegendGraphicAjaxUpdater(wmsURL, defStyleImg, defaultStyleModel);
defaultStyleUpdater = new LegendGraphicAjaxUpdater(wmsURL, defStyleImg, defaultStyleModel);
public LegendGraphicAjaxUpdater(final String wmsURL, final Image image, final IModel styleInfoModel) { this.wmsURL = wmsURL; this.image = image; this.styleInfoModel = styleInfoModel; updateStyleImage(null); }
@Override protected void onUpdate(AjaxRequestTarget target) { defaultStyleUpdater.updateStyleImage(target); } });
public LegendGraphicAjaxUpdater( final String wmsURL, final Image image, final IModel<StyleInfo> styleInfoModel) { this.wmsURL = wmsURL; this.image = image; this.styleInfoModel = styleInfoModel; this.urlModel = new Model<String>(wmsURL); this.image.add(new AttributeModifier("src", urlModel)); updateStyleImage(null); }