Codename One中的container.setLeadComponent(...)

问题描述 投票:2回答:1

这个问题大多是理论上的。在Codename One的手册中,我读过关于“Lead Component”的部分:https://www.codenameone.com/manual/misc-features.html#lead-component-section

似乎Container的(唯一?)“领导者”组成部分是有意义的Button。是否有其他情况选择不是Button的领导者组件?

codenameone
1个回答
2
投票

它是迄今为止最常见的,但我见过开发人员使用TextArea作为主角并且它起作用。您还可以使用其他按钮子类,如CheckBoxRadioButton等。

© www.soinside.com 2019 - 2024. All rights reserved.