/** * Create a drilldown event listener for the specified component. * * @param component The component to which the event listener will be attached. * @param dataObject Data object for the drilldown. * @param drillDownDisplayClass Dialog class for the drilldown display. */ public DrillDownListener(BaseUIComponent component, T dataObject, Class<?> drillDownDisplayClass) { super(); this.component = component; this.dataObject = dataObject; this.drillDownDisplayClass = drillDownDisplayClass; component.addEventListener(ClickEvent.class, this); component.addStyle("cursor", "pointer"); }
private void forwardChangeEvents(BaseComponent root) { for (BaseUIComponent child : root.getChildren(BaseUIComponent.class)) { child.addEventListener("change", changeListener); forwardChangeEvents(child); } }
/** * Override to perform additional initializations. */ protected void initialize() { eventManager.subscribe(Constants.REFRESH_EVENT, refreshListener); appFramework.registerObject(FrameworkController.this); comp.addEventListener("destroy", (event) -> { cleanup(); }); }