【问题标题】:Firing event in list in blackberry黑莓列表中的触发事件
【发布时间】:2013-04-07 05:17:46
【问题描述】:

我在黑莓中实现了一个列表。如何触发列表的“点击”事件?

【问题讨论】:

    标签: blackberry


    【解决方案1】:

    ListField 有一个可以覆盖的受保护方法,

    protected boolean navigationClick(int status, int time).
    

    navigationClick 方法中,您可以使用 getSelectedIndex() 方法获取选定的列表项(行)。

    所以你会有这样的东西:

    protected boolean navigationClick(int status, int time) {
    int sectionIndex = getSelectedIndex();
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多