|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.swing.filechooser.FileSystemView
public abstract class FileSystemView
FileSystemView 는, JFileChooser 가 사용하는, 파일 시스템에의 게이트웨이입니다. JDK1. 1 File API 는 root partition, 파일의 종류, 은폐 파일의 flag bit등의 정보에의 액세스를 허가하지 않기 때문에, 이 클래스는 OS 고유의 파일 시스템에 관한 가능한 한 많은 정보에 대해, 그 개요가 직관적으로 파악할 수 있도록(듯이) 설계되고 있습니다.
Java 의 라이센스는, 특정의 operating system를 보다 효율 좋게 처리하기 위해서 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 ()
이 시스템의 모든 root partition를 돌려줍니다. |
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
가 안내 가능한 트리의 경우는 true
isFileSystemRoot(java.io.File)
public Boolean isTraversable(File f)
f
- File
true
, 그렇지 않은 경우는 false
JFileChooser.isTraversable(java.io.File)
,
FileView.isTraversable(java.io.File)
public String getSystemDisplayName(File f)
f
- File
객체
JFileChooser.getName(java.io.File)
public String getSystemTypeDescription(File f)
f
- File
객체
JFileChooser.getTypeDescription(java.io.File)
public Icon getSystemIcon(File f)
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
IOException
public boolean isHiddenFile(File f)
public boolean isFileSystemRoot(File dir)
dir
- 디렉토리를 나타내는 File
객체
f
가 파일 시스템의 루트인 경우는 true
isRoot(java.io.File)
public boolean isDrive(File dir)
dir
- 디렉토리
false
public boolean isFloppyDrive(File dir)
dir
- 디렉토리
false
public boolean isComputerNode(File dir)
dir
- 디렉토리
false
public 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 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.