|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public static interface JComboBox.KeySelectionManager
定义 KeySelectionManager 的接口。要取得 KeySelectionManager 的资格,类需要实现标识给定字符和组合数据模型的列表索引的方法。
| 方法摘要 | |
|---|---|
int |
selectionForKey(char aKey,
ComboBoxModel aModel)
给定的 aKey 和模型返回应该被选择的行。 |
| 方法详细信息 |
|---|
int selectionForKey(char aKey,
ComboBoxModel aModel)
aKey 和模型返回应该被选择的行。如果找不到匹配项,则返回 -1。
aKey - 一个 char 值,通常指示按下的键盘键aModel - ComboBoxModel,即组件的数据模型,包含可选项的列表
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。