java.lang.Object
javax.swing.AbstractListModel <Object >
javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel
- 所有已实现的接口:
Serializable,ComboBoxModel<Object>,ListModel<Object>
- 封闭类:
MetalFileChooserUI
protected class MetalFileChooserUI.DirectoryComboBoxModel extends AbstractListModel <Object > implements ComboBoxModel <Object >
字体选择组合框的数据模型。
-
字段摘要
在类 javax.swing.AbstractListModel 中声明的字段
listenerList -
构造方法总结
构造方法 -
方法总结
修饰符和类型方法描述intgetDepth(int i) 返回第i个文件的深度。getElementAt(int index) 返回指定索引处的值。返回所选项目intgetSize()返回列表的长度。voidsetSelectedItem(Object selectedDirectory) 设置选择的项目。在类 javax.swing.AbstractListModel 中声明的方法
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener在类 java.lang.Object 中声明的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait在接口 javax.swing.ListModel 中声明的方法
addListDataListener, removeListDataListener
-
构造方法详细信息
-
DirectoryComboBoxModel
public DirectoryComboBoxModel()构造一个DirectoryComboBoxModel实例
-
-
方法详情
-
getDepth
public int getDepth(int i) 返回第i个文件的深度。- 参数:
i- 索引- 返回:
-
第
i个文件的深度
-
setSelectedItem
从接口ComboBoxModel复制的描述设置选择的项目。此方法的实现应通知所有注册的ListDataListener内容已更改。- 指定者:
setSelectedItem在接口ComboBoxModel<Object>中- 参数:
selectedDirectory- 要选择的列表对象或null以清除选择
-
getSelectedItem
从接口ComboBoxModel复制的描述返回所选项目- 指定者:
getSelectedItem在接口ComboBoxModel<Object>中- 返回:
-
所选项目或
null如果没有选择
-
getSize
public int getSize()从接口ListModel复制的描述返回列表的长度。 -
getElementAt
从接口ListModel复制的描述返回指定索引处的值。- 指定者:
getElementAt在接口ListModel<Object>中- 参数:
index- 请求的索引- 返回:
index处的值
-