ChoiceGroup 类
继承自 Item,表示一组单选按钮,或者一组复选框,或者一个下拉列表。
| 方法/属性 |
描述 |
| ChoiceGroup(...) |
构造函数 |
| int append(String stringPart, Image imagePart) |
添加一个选择条目 |
| int size() |
返回选择条目数量 |
| void setSelectedIndex(int elementNum, boolean selected) |
设置选择状态 |
| int getSelectedIndex() |
返回选中的序号 |
| int getSelectedFlags(boolean[]) |
返回每个条目的选中状态,输出参数 |
| String getString(int elementNum) |
返回条目的字符串 |
ChoiceGroup 方法
| ChoiceGroup(String label, int choiceType) |
| ChoiceGroup(String label, int choiceType, String[] stringElements,
Image[] imageElements) |
| 参数 |
描述 |
| label |
标题 |
| choiceType |
选择类型 单选:ChoiceGroup.EXCLUSIVE
复选;ChoiceGroup.MULTIPLE
下拉:ChoiceGroup.POPUP |