|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object javax.swing.AbstractListModel javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel
protected class MetalFileChooserUI.FilterComboBoxModel
タイプフェース選択のコンボボックスで使用するデータモデルです。
フィールドの概要 | |
---|---|
protected FileFilter[] |
filters
|
クラス javax.swing.AbstractListModel から継承されたフィールド |
---|
listenerList |
コンストラクタの概要 | |
---|---|
protected |
MetalFileChooserUI.FilterComboBoxModel()
|
メソッドの概要 | |
---|---|
Object |
getElementAt(int index)
指定されたインデックスで示される値を返します。 |
Object |
getSelectedItem()
選択項目を返します。 |
int |
getSize()
リストの長さを返します。 |
void |
propertyChange(PropertyChangeEvent e)
バウンドプロパティの変更時に呼び出されます。 |
void |
setSelectedItem(Object filter)
選択項目を設定します。 |
クラス 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 |
フィールドの詳細 |
---|
protected FileFilter[] filters
コンストラクタの詳細 |
---|
protected MetalFileChooserUI.FilterComboBoxModel()
メソッドの詳細 |
---|
public void propertyChange(PropertyChangeEvent e)
PropertyChangeListener
の記述:
PropertyChangeListener
内の propertyChange
e
- イベントソースおよび変更したプロパティを記述する PropertyChangeEvent オブジェクトpublic void setSelectedItem(Object filter)
ComboBoxModel
の記述: ListDataListener
に内容の変更を通知する必要があります。
ComboBoxModel
内の setSelectedItem
filter
- 選択するリストオブジェクト。選択をクリアする場合は null
を指定public Object getSelectedItem()
ComboBoxModel
の記述:
ComboBoxModel
内の getSelectedItem
null
public int getSize()
ListModel
の記述:
ListModel
内の getSize
public Object getElementAt(int index)
ListModel
の記述:
ListModel
内の getElementAt
index
- 要求するインデックス
index
の値
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。