protected class MetalFileChooserUI.DirectoryComboBoxModel extends AbstractListModel<Object> implements ComboBoxModel<Object>
listenerList| コンストラクタ | 説明 |
|---|---|
DirectoryComboBoxModel() |
| 修飾子と型 | メソッド | 説明 |
|---|---|---|
int |
getDepth(int i) |
|
Object |
getElementAt(int index) |
指定されたインデックスの値を返します。
|
Object |
getSelectedItem() |
選択項目を返します。
|
int |
getSize() |
リストの長さを返します。
|
void |
setSelectedItem(Object selectedDirectory) |
選択項目を設定します。
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListDataListener, removeListDataListenerpublic int getDepth(int i)
public void setSelectedItem(Object selectedDirectory)
ComboBoxModelListDataListenerに内容の変更を通知する必要があります。 setSelectedItem、インタフェースComboBoxModel<Object>selectedDirectory - 選択するリスト・オブジェクトまたは選択をクリアする場合はnullpublic Object getSelectedItem()
ComboBoxModelgetSelectedItem、インタフェースComboBoxModel<Object>nullpublic int getSize()
ListModelpublic Object getElementAt(int index)
ListModelgetElementAt、インタフェースListModel<Object>index - 要求するインデックスindexの値 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。