|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.AbstractListModel
javax.swing.plaf.basic.BasicDirectoryModel
public class BasicDirectoryModel
ファイルリストの基本実装です。
| フィールドの概要 |
|---|
| クラス javax.swing.AbstractListModel から継承されたフィールド |
|---|
listenerList |
| コンストラクタの概要 | |
|---|---|
BasicDirectoryModel(JFileChooser filechooser)
|
|
| メソッドの概要 | |
|---|---|
boolean |
contains(Object o)
|
void |
fireContentsChanged()
|
Vector<File> |
getDirectories()
|
Object |
getElementAt(int index)
指定されたインデックスで示される値を返します。 |
Vector<File> |
getFiles()
|
int |
getSize()
リストの長さを返します。 |
int |
indexOf(Object o)
|
void |
intervalAdded(ListDataEvent e)
廃止 - 使用されません。 |
void |
intervalRemoved(ListDataEvent e)
廃止 - 使用されません。 |
void |
invalidateFileCache()
廃止 - 使用されません。 |
protected boolean |
lt(File a,
File b)
|
void |
propertyChange(PropertyChangeEvent e)
バウンドプロパティの変更時に呼び出されます。 |
boolean |
renameFile(File oldFile,
File newFile)
基本となるファイルシステム内のファイル名の変更をします。 |
protected void |
sort(Vector<? extends File> v)
|
void |
validateFileCache()
|
| クラス javax.swing.AbstractListModel から継承されたメソッド |
|---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public BasicDirectoryModel(JFileChooser filechooser)
| メソッドの詳細 |
|---|
public void propertyChange(PropertyChangeEvent e)
PropertyChangeListener の記述:
PropertyChangeListener 内の propertyChangee - イベントソースおよび変更したプロパティを記述する PropertyChangeEvent オブジェクトpublic void invalidateFileCache()
public Vector<File> getDirectories()
public Vector<File> getFiles()
public void validateFileCache()
public boolean renameFile(File oldFile,
File newFile)
oldFile - 既存ファイルを表す File オブジェクトnewFile - 希望する新規ファイル名を表す File オブジェクト
true、そうでない場合は falsepublic void fireContentsChanged()
public int getSize()
ListModel の記述:
ListModel 内の getSizepublic boolean contains(Object o)
public int indexOf(Object o)
public Object getElementAt(int index)
ListModel の記述:
ListModel 内の getElementAtindex - 要求するインデックス
index の値public void intervalAdded(ListDataEvent e)
public void intervalRemoved(ListDataEvent e)
protected void sort(Vector<? extends File> v)
protected boolean lt(File a,
File b)
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。