Project: Birt
Bug 117033 ICallBack interactivity doesn't work
Reported: 2005-11-18 08:26:18 | Status: closed fixed

Description from the newsgroups: "I tried to use the CallBackValue Chart feature to implement specific dynamic behaviours. I did it by customizing the ShowTooltip chart example with MyAction ICallBackAction: ... ScatterSeries ss = (ScatterSeries) ScatterSeriesImpl.create(); ss.getTriggers().add( TriggerImpl.create( TriggerCondition.ONCLICK_LITERAL, ActionImpl.create( ActionType.CALL_BACK_LITERAL, CallBackValueImpl.create( new MyAction() ) ) ) ) ; ... Then, in SwingEventHandler, I checked the use of CallBackValue and ICallBackAction: public final class SwingEventHandler implements MouseListener, MouseMotionListener, KeyListener { ... private void handleAction( List al, Object event ) { ... case ActionType.CALL_BACK : final CallBackValue cv = (CallBackValue) ac.getValue( ); ICallBackAction callbackAction = cv.getCallBackAction( ); if ( callbackAction != null ) { callbackAction.execute( event, sa.getSource( ), iun ); } break; } ... } ... }"

Files changed in fix:
chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingEventHandler.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/device/ICallBackNotifier.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/AttributePackage.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/CallBackValue.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/ColorDefinition.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/AttributePackageImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/CallBackValueImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/ColorDefinitionImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/ComponentPackage.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/Dial.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/AxisImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/ComponentPackageImpl.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/DialImpl.java