public boolean addEventListener(String evtnm, EventListener<? extends Event> listener) { final boolean ret = super.addEventListener(evtnm, listener); if (Events.ON_CLICK.equals(evtnm) && ret) smartDrawChart(); //since Area has to generate return ret; }
public void onPageDetached(Page page) { super.onPageDetached(page); if (_model != null && _dataListener != null) _model.removeChartDataListener(_dataListener); } }
/** Overrides the method in HtmlBasedComponent, not to check using hflex and width at the same time * @since 8.0.1 */ @Override public void setHflex(String flex) { super.setHflex0(flex); }
public void render(Component comp, Writer out) throws IOException { final SmartWriter wh = new SmartWriter(out); final Imagemap self = (Imagemap)comp; final String uuid = self.getUuid(); final Execution exec = Executions.getCurrent(); wh.write("<span id=\"").write(uuid).write("\" z.type=\"zul.widget.Map\" z.cave=\"") .write(uuid).write("_map\"").write(self.getOuterAttrs()).write(">"); wh.write("<a href=\"").write(exec.encodeURL("~./zul/html/imagemap-done.html")); wh.write("?").write(uuid).write("\" target=\"zk_hfr_\">"); wh.write("<img id=\"").write(self.getUuid()).write("!real\"") .write(self.getInnerAttrs()).write("/></a>"); wh.write("<map name=\"").write(uuid).write("_map\" id=\"").write(uuid).write("_map\">"); wh.writeChildren(self); wh.write("</map></span>"); } }
/** Overrides the method in HtmlBasedComponent, not to check using vflex and height at the same time * @since 8.0.1 */ @Override public void setVflex(String flex) { super.setVflex0(flex); }
public void onPageAttached(Page newpage, Page oldpage) { super.onPageAttached(newpage, oldpage); if (_model != null) { smartDrawChart(); if (_dataListener != null) { _model.removeChartDataListener(_dataListener); _model.addChartDataListener(_dataListener); } } }
/** * Override super class to prepare the int height. */ public void setHeight(String h) { if (Objects.equals(h, getHeight())) { return; } _intHeight = stringToInt(h); super.setHeight0(h); //ZK-2895: call the method which do not check hflex smartDrawChart(); }
public Object clone() { final Chart clone = (Chart) super.clone(); // Due to the not unique ID of the area component creating in JFreeChartEngine, we have to clear // all its children first. clone.getChildren().clear(); clone._smartDrawChartListener = null; clone._smartDrawChart = false; clone.init(); clone.doSmartDraw(); if (clone._model != null) { if (clone._model instanceof ComponentCloneListener) { final ChartModel model = (ChartModel) ((ComponentCloneListener) clone._model).willClone(clone); if (model != null) clone._model = model; } clone._dataListener = null; clone.initDataListener(); } return clone; }