harmony中如何给fraction中添加js事件

问题遇到的现象和发生背景

想给fraction中的布局添加事件应该如何添加嘞嘛,例如省市联动

问题相关代码,请勿粘贴截图

暂时只是向其中加载了布局


public class RuleLink extends Fraction{
    @Override
    protected Component onComponentAttached(LayoutScatter scatter, ComponentContainer container, Intent intent) {
        Component component=scatter.parse(ResourceTable.Layout_rule,container,false);
        return  component;

    }
//    @Override
//    protected void onStart(Intent intent) {
//        super.onStart(intent);
//
//    }


}

运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果

这个问题是卡片的吗?