【问题标题】:What are the valid keys in CodeNameOne List Component ListItems?CodeNameOne 列表组件 ListItems 中的有效键是什么?
【发布时间】:2013-12-27 14:50:57
【问题描述】:

CodeNameOne 列表组件的 ListItems 中的有效键是什么?

在 CodeNameOne GUI 构建器中,您可以为列表中的每个项目设置键。默认行为是某些键会导致其他行为,例如显示图标或导航。但是,我似乎找不到任何关于识别键是什么的文档。

我知道 $navigation、destination 和 icon,但是否还有默认渲染器和控制器可以使用的键?

【问题讨论】:

    标签: java codenameone


    【解决方案1】:

    这里有两个来源:

    http://www.codenameone.com/3/post/2013/12/deeper-in-the-renderer.html

    http://www.codenameone.com/how-do-i---create-a-list-of-items-the-hard-way-gui-builder-renderer.html

    如果您使用MultiList,那么您可以确定MultiList 上元素的“名称”,它将直接映射到条目中的键。如果您使用 List,则渲染器将使用渲染器容器中组件的名称作为键的值。我建议阅读deeper in the renderer,在那里我讨论了一些有趣的特殊情况和边缘情况。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-08
      • 2013-06-13
      • 1970-01-01
      • 2018-01-07
      • 2016-04-06
      • 2011-04-11
      • 1970-01-01
      • 2019-11-04
      相关资源
      最近更新 更多