| 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.filechooser.FileSystemView
public abstract class FileSystemView
FileSystemView は、JFileChooser が使用する、ファイルシステムへのゲートウェイです。JDK1.1 File API はルートパーティション、ファイルの種類、隠しファイルのフラグビットなどの情報へのアクセスを許可しないため、このクラスは OS 固有のファイルシステムに関するできるだけ多くの情報について、その概要が直観的に把握できるように設計されています。
Java のライセンスは、特定のオペレーティングシステムをより効率よく処理するために FileSystemView の異なる実装を提供できます。
| コンストラクタの概要 | |
|---|---|
FileSystemView()
 | 
|
| メソッドの概要 | |
|---|---|
 File | 
createFileObject(File dir,
                 String filename)
指定されたファイル名で dir に作成された File オブジェクトを返します。  | 
 File | 
createFileObject(String path)
指定されたパス文字列から作成された File オブジェクトを返します。  | 
protected  File | 
createFileSystemRoot(File f)
ファイルシステムのルートディレクトリに対して正しく動作する f 用の新しい File オブジェクトを作成します。 | 
abstract  File | 
createNewFolder(File containingDir)
デフォルトのフォルダ名で新しいフォルダを作成します。  | 
 File | 
getChild(File parent,
         String fileName)
 | 
 File | 
getDefaultDirectory()
ファイルチューザ用のユーザーのデフォルトの起動ディレクトリを返します。  | 
 File[] | 
getFiles(File dir,
         boolean useFileHiding)
表示されている (非表示でない) ファイルのリストを返します。  | 
static FileSystemView | 
getFileSystemView()
 | 
 File | 
getHomeDirectory()
 | 
 File | 
getParentDirectory(File dir)
dir の親ディレクトリを返します。 | 
 File[] | 
getRoots()
このシステムのすべてのルートパーティションを返します。  | 
 String | 
getSystemDisplayName(File f)
システムファイルブラウザに表示されるファイル、ディレクトリ、またはフォルダの名前です。  | 
 Icon | 
getSystemIcon(File f)
システムファイルブラウザに表示されるファイル、ディレクトリ、またはフォルダのアイコンです。  | 
 String | 
getSystemTypeDescription(File f)
システムファイルブラウザに表示されるファイル、ディレクトリ、またはフォルダの種類の説明です。  | 
 boolean | 
isComputerNode(File dir)
コンピュータのノードを表す特殊なアイコン (My Computer やネットワークサーバーなど) を表示するかどうかを判断するために UI クラスによって使用されます。  | 
 boolean | 
isDrive(File dir)
ドライブやパーティションを表す特殊なアイコン (「ハードディスク」アイコンなど) を表示するかどうかを判断するために UI クラスによって使用されます。  | 
 boolean | 
isFileSystem(File f)
f が Desktop などの特殊なフォルダとは対照的に実際のディレクトリまたはファイルを表しているかどうかを確認します。 | 
 boolean | 
isFileSystemRoot(File dir)
dir がドライブやパーティションなど、ファイルシステムのツリーのルートであるかどうかを返します。  | 
 boolean | 
isFloppyDrive(File dir)
フロッピーディスクを表す特殊なアイコンを表示するかどうかを判断するために UI クラスによって使用されます。  | 
 boolean | 
isHiddenFile(File f)
ファイルが非常にであるかどうかを返します。  | 
 boolean | 
isParent(File folder,
         File file)
Windows では、ファイルはファイルシステムの親ディレクトリではなく、複数のフォルダ内に表示されます。  | 
 boolean | 
isRoot(File f)
指定されたファイルがナビゲート可能なツリーのルートであるかどうかを確認します。  | 
 Boolean | 
isTraversable(File f)
ファイル (ディレクトリ) に移動できる場合に true を返します。  | 
| クラス java.lang.Object から継承されたメソッド | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| コンストラクタの詳細 | 
|---|
public FileSystemView()
| メソッドの詳細 | 
|---|
public static FileSystemView getFileSystemView()
public boolean isRoot(File f)
C:\、D:\ などといったドライブ文字ごとに 1 つのルートを持ちます。 UNIX は / ディレクトリというルートを持ちます。
デフォルト実装は、ShellFolder クラスから情報を取得します。
f - ディレクトリを表す File オブジェクト
f がナビゲート可能なツリーの場合は trueisFileSystemRoot(java.io.File)public Boolean isTraversable(File f)
f - File
true、そうでない場合は falseJFileChooser.isTraversable(java.io.File), 
FileView.isTraversable(java.io.File)public String getSystemDisplayName(File f)
デフォルト実装は、ShellFolder クラスから情報を取得します。
f - File オブジェクト
JFileChooser.getName(java.io.File)public String getSystemTypeDescription(File f)
ネイティブの ShellFolder の実装はプラットフォームをオーバーライドします。
f - File オブジェクト
JFileChooser.getTypeDescription(java.io.File)public Icon getSystemIcon(File f)
デフォルト実装は、ShellFolder クラスから情報を取得します。
f - File オブジェクト
JFileChooser.getIcon(java.io.File)
public boolean isParent(File folder,
                        File file)
folder - ディレクトリまたは特定のフォルダを表す File オブジェクトfile - File オブジェクト
folder がディレクトリまたは特定のフォルダで、file を格納する場合は true
public File getChild(File parent,
                     String fileName)
parent - ディレクトリまたは特定のフォルダを表す File オブジェクトfileName - parent 内に存在するファイルまたはフォルダの名前
new File(parent, fileName) を使って構築される。この場合、File は、ShellFolder オブジェクトを格納するラッパーpublic boolean isFileSystem(File f)
f が Desktop などの特殊なフォルダとは対照的に実際のディレクトリまたはファイルを表しているかどうかを確認します。ディレクトリの選択を行うときにフォルダが選択可能かどうかを判断するために UI クラスが使用します。
f - File オブジェクト
f が実際のファイルまたはディレクトリの場合は true
public abstract File createNewFolder(File containingDir)
                              throws IOException
IOExceptionpublic boolean isHiddenFile(File f)
public boolean isFileSystemRoot(File dir)
dir - ディレクトリを表す File オブジェクト
f がファイルシステムのルートである場合は trueisRoot(java.io.File)public boolean isDrive(File dir)
dir - ディレクトリ
falsepublic boolean isFloppyDrive(File dir)
dir - ディレクトリ
falsepublic boolean isComputerNode(File dir)
dir - ディレクトリ
falsepublic File[] getRoots()
public File getHomeDirectory()
public File getDefaultDirectory()
File オブジェクト
public File createFileObject(File dir,
                             String filename)
public File createFileObject(String path)
public File[] getFiles(File dir,
                       boolean useFileHiding)
public File getParentDirectory(File dir)
dir の親ディレクトリを返します。
dir - 照会される File
dir の親ディレクトリ (dir が null の場合は null)protected File createFileSystemRoot(File f)
f 用の新しい File オブジェクトを作成します。
f - ファイルシステムのルートディレクトリを表す File オブジェクト。たとえば UNIX の場合は /、Windows の場合は C:\
File オブジェクト
  | 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。