|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요 : 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
java.awt.FileDialog
public class FileDialog
FileDialog 클래스는, 사용자가 파일을 선택할 수 있는 다이얼로그 윈도우를 표시합니다.
이 다이얼로그는 모덜이기 (위해)때문에, 어플리케이션이 그 show 메소드를 호출해 이 다이얼로그를 표시하면(자), 사용자가 파일을 선택할 때까지 어플리케이션외의 부분은 사용할 수 없습니다.
Window.show() ,
직렬화 된 형식 | 상자의 클래스의 개요 |
|---|
| 클래스 java.awt. Dialog 로부터 상속된 상자의 클래스/인터페이스 |
|---|
Dialog.AccessibleAWTDialog , Dialog.ModalExclusionType , Dialog.ModalityType |
| 클래스 java.awt. Window 로부터 상속된 상자의 클래스/인터페이스 |
|---|
Window.AccessibleAWTWindow |
| 클래스 java.awt. Container 로부터 상속된 상자의 클래스/인터페이스 |
|---|
Container.AccessibleAWTContainer |
| 클래스 java.awt. Component 로부터 상속된 상자의 클래스/인터페이스 |
|---|
Component.AccessibleAWTComponent , Component.BaselineResizeBehavior , Component.BltBufferStrategy , Component.FlipBufferStrategy |
| 필드의 개요 | |
|---|---|
static int |
LOAD
이 정수치는, 파일 다이얼로그 윈도우의 목적이 읽어들여 용파일의 검색인 것을 나타냅니다. |
static int |
SAVE
이 정수치는, 파일 다이얼로그 윈도우의 목적이 기입해 용파일의 검색인 것을 나타냅니다. |
| 클래스 java.awt. Dialog 로부터 상속된 필드 |
|---|
DEFAULT_MODALITY_TYPE |
| 클래스 java.awt. Component 로부터 상속된 필드 |
|---|
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT |
| 인터페이스 java.awt.image. ImageObserver 로부터 상속된 필드 |
|---|
ABORT , ALLBITS , ERROR , FRAMEBITS , HEIGHT , PROPERTIES , SOMEBITS , WIDTH |
| 생성자 의 개요 | |
|---|---|
FileDialog (Dialog parent)
파일을 로드하기 위한 파일 다이얼로그를 생성합니다. |
|
FileDialog (Dialog parent,
String title)
지정된 타이틀을 사용해, 파일을 로드하기 위한 파일 다이얼로그 윈도우를 생성합니다. |
|
FileDialog (Dialog parent,
String title,
int mode)
지정된 타이틀을 사용해, 파일을 로드 또는 보존하기 위한 파일 다이얼로그 윈도우를 생성합니다. |
|
FileDialog (Frame parent)
파일을 로드하기 위한 파일 다이얼로그를 생성합니다. |
|
FileDialog (Frame parent,
String title)
지정된 타이틀을 사용해, 파일을 로드하기 위한 파일 다이얼로그 윈도우를 생성합니다. |
|
FileDialog (Frame parent,
String title,
int mode)
지정된 타이틀을 사용해, 파일을 로드 또는 보존하기 위한 파일 다이얼로그 윈도우를 생성합니다. |
|
| 메소드의 개요 | |
|---|---|
void |
addNotify ()
파일 다이얼로그의 피어를 작성합니다. |
String |
getDirectory ()
이 파일 다이얼로그의 디렉토리를 돌려줍니다. |
String |
getFile ()
이 파일 다이얼로그의 선택되고 있는 파일을 돌려줍니다. |
FilenameFilter |
getFilenameFilter ()
이 파일 다이얼로그의 파일명 필터를 조사합니다. |
int |
getMode ()
이 파일 다이알로그 박스가 파일로부터 로드하기 위한 것인가, 파일에 보존하기 위한의 것인지를 나타냅니다. |
protected String |
paramString ()
이 FileDialog 윈도우 상태를 나타내는 캐릭터 라인을 돌려줍니다. |
void |
setDirectory (String dir)
이 파일 다이얼로그 윈도우의 디렉토리를, 지정된 디렉토리로 설정합니다. |
void |
setFile (String file)
이 파일 다이얼로그 윈도우의 선택되고 있는 파일을, 지정된 파일로 설정합니다. |
void |
setFilenameFilter (FilenameFilter filter)
파일 다이얼로그 윈도우의 파일명 필터가 지정된 필터로 설정합니다. |
void |
setMode (int mode)
파일 다이얼로그의 모드를 설정합니다. |
| 클래스 java.awt. Dialog 로부터 상속된 메소드 |
|---|
getAccessibleContext , getModalityType , getTitle , hide , isModal , isResizable , isUndecorated , setModal , setModalityType , setResizable , setTitle , setUndecorated , setVisible , show , toBack |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
| 필드의 상세 |
|---|
public static final int LOAD
public static final int SAVE
| 생성자 의 상세 |
|---|
public FileDialog(Frame parent)
FileDialog(parent, "", LOAD) 의 편리한 메소드입니다.
parent - 다이얼로그의 소유자
public FileDialog(Frame parent,
String title)
FileDialog(parent, title, LOAD) 의 편리한 메소드입니다.
parent - 다이얼로그의 소유자title - 다이얼로그의 타이틀
public FileDialog(Frame parent,
String title,
int mode)
mode 의 값이 LOAD 의 경우, 파일 다이얼로그는 읽어들여 용무의 파일을 검색합니다. mode 의 값이 SAVE 의 경우, 파일 다이얼로그는 파일의 기입처를 검색합니다.
parent - 다이얼로그의 소유자title - 다이얼로그의 타이틀mode - 이 다이얼로그의 모드.
FileDialog.LOAD 또는 FileDialog.SAVE
IllegalArgumentException - 파일 다이얼로그의 모드가
부당한 경우LOAD ,
SAVE public FileDialog(Dialog parent)
FileDialog(parent, "", LOAD) 의 편리한 메소드입니다.
parent - 다이얼로그의 소유자
IllegalArgumentException - parent 의
GraphicsConfiguration 이
스크린 디바이스에 의하지 않는 경우
IllegalArgumentException - parent 가
null 의 경우. 이 예외는
GraphicsEnvironment.isHeadless 가
true true 를 돌려주는 경우, 항상 throw 되는GraphicsEnvironment.isHeadless()
public FileDialog(Dialog parent,
String title)
FileDialog(parent, title, LOAD) 의 편리한 메소드입니다.
parent - 다이얼로그의 소유자title - 다이얼로그의 타이틀.
null 치도 지정 가능하고,
NullPointerException 는 throw 되지 않는다
IllegalArgumentException - parent 의
GraphicsConfiguration 이
스크린 디바이스에 의하지 않는 경우
IllegalArgumentException - parent 가
null 의 경우. 이 예외는
GraphicsEnvironment.isHeadless 가
true true 를 돌려주는 경우, 항상 throw 되는GraphicsEnvironment.isHeadless()
public FileDialog(Dialog parent,
String title,
int mode)
mode 의 값이 LOAD 의 경우, 파일 다이얼로그는 읽어들여 용무의 파일을 검색합니다. mode 의 값이 SAVE 의 경우, 파일 다이얼로그는 파일의 기입처를 검색합니다.
parent - 다이얼로그의 소유자title - 다이얼로그의 타이틀.
null 치도 지정 가능하고,
NullPointerException 는 throw 되지 않는mode - 이 다이얼로그의 모드.
FileDialog.LOAD 또는 FileDialog.SAVE
IllegalArgumentException - 파일 다이얼로그의 모드가
부당한 경우
IllegalArgumentException - parent 의
GraphicsConfiguration 이
스크린 디바이스에 의하지 않는 경우
IllegalArgumentException - parent 가
null 의 경우. 이 예외는
GraphicsEnvironment.isHeadless 가
true true 를 돌려주는 경우, 항상 throw 되는GraphicsEnvironment.isHeadless() ,
LOAD ,
SAVE | 메소드의 상세 |
|---|
public void addNotify()
Dialog 내의 addNotify Component.isDisplayable() ,
Window.removeNotify() public int getMode()
FileDialog.LOAD 또는
FileDialog.SAVELOAD ,
SAVE ,
setMode(int) public void setMode(int mode)
mode 는 설정되지 않습니다.
mode - 이 파일 다이얼로그의 모드.
FileDialog.LOAD 또는
FileDialog.SAVE
IllegalArgumentException - 파일 다이얼로그의 모드가
부당한 경우LOAD ,
SAVE ,
getMode() public String getDirectory()
FileDialog 의 디렉토리.
null 의 경우나 무효인 디렉토리의 경우도 있는setDirectory(java.lang.String) public void setDirectory(String dir)
null 또는 무효인 디렉토리를 지정하면(자), 시스템으로 정의되고 있는 디폴트로 설정됩니다. 다만, 이 디폴트는 사용자가 파일을 선택했을 때에 설정됩니다. 그 때까지는,getDirectory() 는 이 메소드에게 건네진 값을 돌려줍니다.
디렉토리로서 "" 를 지정하면(자),null 로 설정됩니다.
dir - 지정된 디렉토리getDirectory() public String getFile()
null 가 돌려주어집니다.
nullsetFile(java.lang.String) public void setFile(String file)
파일로서 "" 를 지정하면(자),null 로 설정됩니다.
file - 설정되는 파일getFile() public FilenameFilter getFilenameFilter()
FilenameFilter ,
setFilenameFilter(java.io.FilenameFilter) public void setFilenameFilter(FilenameFilter filter)
filter - 지정된 필터FilenameFilter ,
getFilenameFilter() protected String paramString()
FileDialog 윈도우 상태를 나타내는 캐릭터 라인을 돌려줍니다. 이 메소드는 디버그 전용이며, 반환되는 캐릭터 라인의 내용 및 형식은 구현에 따라서 다릅니다. 반환되는 캐릭터 라인은 빈 상태(empty)의 경우가 있습니다만,null 로는 되지 않습니다.
Dialog 내의 paramString
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요 : 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.