java - Editting the DrilldownCallback for Vaadin7 Charts -


i trying create chart splits 2 subcharts based on drilldown functionality using drilldown callback. here code.

final chart basechart = tab4chart(); final component[] component = new component[1]; basechart.setdrilldowncallback(new drilldowncallback() {     @override     public series handledrilldown(drilldownevent event) {         string id = event.getseries().getid();         testfield.setdata(id); //debug field         if (id.contains("_")) {             workitemsbackbtn.setvisible(true);             chart subchart1 = tab4subchart1(id);             chart subchart2 = tab4subchart2(id);             workitems.removecomponent(basechart);             horizontallayout layout = new horizontallayout();             layout.setspacing(false);             layout.setwidth("100%");              subchart1.setheight("450px");             subchart1.setwidth("100%");             layout.addcomponent(subchart1);             layout.setexpandratio(subchart1, 1.0f);              subchart2.setheight("450px");             subchart2.setwidth("100%");             layout.addcomponent(subchart2);             layout.setexpandratio(subchart2, 1.0f);              workitems.addcomponent(layout);             component[0] = layout;              return null;         }         else return event.getseries();     } }); workitemsbackbtn.addclicklistener(e -> {      workitems.replacecomponent(component[0], basechart);      workitemsbackbtn.setvisible(false); }); 

the issue is, nothing happens. testfield's value never changed lead believe callback never called. gives?

alternativly, done having 2 charts bound same callbacks.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -