JavaTM Platform
Standard Ed. 6

javax.swing.plaf.basic
클래스 BasicFileChooserUI

java.lang.Object 
  상위를 확장 javax.swing.plaf.ComponentUI 
      상위를 확장 javax.swing.plaf.FileChooserUI 
          상위를 확장 javax.swing.plaf.basic.BasicFileChooserUI
직계의 기존의 서브 클래스:
MetalFileChooserUI


public class BasicFileChooserUI
extends FileChooserUI

FileChooser 의 기본 Look & Feel 구현입니다.


상자의 클래스의 개요
protected  class BasicFileChooserUI.AcceptAllFileFilter
           
protected  class BasicFileChooserUI.ApproveSelectionAction
          Open 요구 또는 Save 요구에 응합니다.
protected  class BasicFileChooserUI.BasicFileView
           
protected  class BasicFileChooserUI.CancelSelectionAction
          취소의 요구에 응합니다.
protected  class BasicFileChooserUI.ChangeToParentDirectoryAction
           
protected  class BasicFileChooserUI.DoubleClickListener
           
protected  class BasicFileChooserUI.GoHomeAction
          Home 키 이벤트 또는 동등의 이벤트에 따라 처리를 실시합니다.
protected  class BasicFileChooserUI.NewFolderAction
          새로운 폴더를 작성합니다.
protected  class BasicFileChooserUI.SelectionListener
           
protected  class BasicFileChooserUI.UpdateAction
          현재의 디렉토리에서 파일을 주사 다시 합니다.
 
필드의 개요
protected  int cancelButtonMnemonic
           
protected  String cancelButtonText
           
protected  String cancelButtonToolTipText
           
protected  Icon computerIcon
           
protected  Icon detailsViewIcon
           
protected  Icon directoryIcon
           
protected  int directoryOpenButtonMnemonic
          디렉토리가 선택되어 현재의 선택 모드가 FILES_ONLY 인 경우, 동의 버튼으로 사용되는 니마닉(mnemonic) 키코드입니다.
protected  String directoryOpenButtonText
          디렉토리가 선택되어 현재의 선택 모드가 FILES_ONLY 인 경우, 동의 버튼상에 표시되는 라벨 텍스트입니다.
protected  String directoryOpenButtonToolTipText
          디렉토리가 선택되어 현재의 선택 모드가 FILES_ONLY 인 경우, 동의 버튼상에 표시되는 툴팁 텍스트입니다.
protected  Icon fileIcon
           
protected  Icon floppyDriveIcon
           
protected  Icon hardDriveIcon
           
protected  int helpButtonMnemonic
           
protected  String helpButtonText
           
protected  String helpButtonToolTipText
           
protected  Icon homeFolderIcon
           
protected  Icon listViewIcon
           
protected  Icon newFolderIcon
           
protected  int openButtonMnemonic
           
protected  String openButtonText
           
protected  String openButtonToolTipText
           
protected  int saveButtonMnemonic
           
protected  String saveButtonText
           
protected  String saveButtonToolTipText
           
protected  int updateButtonMnemonic
           
protected  String updateButtonText
           
protected  String updateButtonToolTipText
           
protected  Icon upFolderIcon
           
 
생성자 의 개요
BasicFileChooserUI (JFileChooser  b)
           
 
메소드의 개요
 void clearIconCache ()
           
protected  MouseListener createDoubleClickListener (JFileChooser  fc, JList  list)
           
 ListSelectionListener createListSelectionListener (JFileChooser  fc)
           
protected  void createModel ()
           
 PropertyChangeListener createPropertyChangeListener (JFileChooser  fc)
           
 void ensureFileIsVisible (JFileChooser  fc, File  f)
           
 FileFilter getAcceptAllFileFilter (JFileChooser  fc)
          디폴트로 인정되는 모든 파일 필터를 돌려줍니다.
 JPanel getAccessoryPanel ()
           
protected  JButton getApproveButton (JFileChooser  fc)
           
 int getApproveButtonMnemonic (JFileChooser  fc)
           
 String getApproveButtonText (JFileChooser  fc)
           
 String getApproveButtonToolTipText (JFileChooser  fc)
           
 Action getApproveSelectionAction ()
           
 Action getCancelSelectionAction ()
           
 Action getChangeToParentDirectoryAction ()
           
 String getDialogTitle (JFileChooser  fc)
          이 다이얼로그의 타이틀을 돌려줍니다.
protected  File getDirectory ()
          현재, UI 로 선택되고 있는 디렉토리를 기억하기 위한 프로퍼티입니다.
 String getDirectoryName ()
           
 JFileChooser getFileChooser ()
           
 String getFileName ()
           
 FileView getFileView (JFileChooser  fc)
           
 Action getGoHomeAction ()
           
 BasicDirectoryModel getModel ()
           
 Action getNewFolderAction ()
           
 Action getUpdateAction ()
           
 void installComponents (JFileChooser  fc)
           
protected  void installDefaults (JFileChooser  fc)
           
protected  void installIcons (JFileChooser  fc)
           
protected  void installListeners (JFileChooser  fc)
           
protected  void installStrings (JFileChooser  fc)
           
 void installUI (JComponent  c)
          Look & Feel 에 적절한, 지정된 컴퍼넌트를 구성합니다.
protected  boolean isDirectorySelected ()
          현재 디렉토리가 UI 로 선택되고 있는지 어떤지를 기억하기 위한 프로퍼티입니다.
 void rescanCurrentDirectory (JFileChooser  fc)
           
protected  void setDirectory (File  f)
          현재, UI 로 선택되고 있는 디렉토리를 기억하기 위한 프로퍼티입니다.
 void setDirectoryName (String  dirname)
           
protected  void setDirectorySelected (boolean b)
          현재 디렉토리가 UI 로 선택되고 있는지 어떤지를 기억하기 위한 프로퍼티입니다.
 void setFileName (String  filename)
           
 void uninstallComponents (JFileChooser  fc)
           
protected  void uninstallDefaults (JFileChooser  fc)
           
protected  void uninstallIcons (JFileChooser  fc)
           
protected  void uninstallListeners (JFileChooser  fc)
           
protected  void uninstallStrings (JFileChooser  fc)
           
 void uninstallUI (JComponent  c)
          installUI 시에, 지정된 컴퍼넌트로 구성된 내용을 취소합니다.
 
클래스 javax.swing.plaf. ComponentUI 로부터 상속된 메소드
contains , createUI , getAccessibleChild , getAccessibleChildrenCount , getBaseline , getBaselineResizeBehavior , getMaximumSize , getMinimumSize , getPreferredSize , paint , update
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

필드의 상세

directoryIcon

protected Icon  directoryIcon

fileIcon

protected Icon  fileIcon

computerIcon

protected Icon  computerIcon

hardDriveIcon

protected Icon  hardDriveIcon

floppyDriveIcon

protected Icon  floppyDriveIcon

newFolderIcon

protected Icon  newFolderIcon

upFolderIcon

protected Icon  upFolderIcon

homeFolderIcon

protected Icon  homeFolderIcon

listViewIcon

protected Icon  listViewIcon

detailsViewIcon

protected Icon  detailsViewIcon

saveButtonMnemonic

protected int saveButtonMnemonic

openButtonMnemonic

protected int openButtonMnemonic

cancelButtonMnemonic

protected int cancelButtonMnemonic

updateButtonMnemonic

protected int updateButtonMnemonic

helpButtonMnemonic

protected int helpButtonMnemonic

directoryOpenButtonMnemonic

protected int directoryOpenButtonMnemonic
디렉토리가 선택되어 현재의 선택 모드가 FILES_ONLY 인 경우, 동의 버튼으로 사용되는 니마닉(mnemonic) 키코드입니다.

도입된 버젼:
1.4

saveButtonText

protected String  saveButtonText

openButtonText

protected String  openButtonText

cancelButtonText

protected String  cancelButtonText

updateButtonText

protected String  updateButtonText

helpButtonText

protected String  helpButtonText

directoryOpenButtonText

protected String  directoryOpenButtonText
디렉토리가 선택되어 현재의 선택 모드가 FILES_ONLY 인 경우, 동의 버튼상에 표시되는 라벨 텍스트입니다.

도입된 버젼:
1.4

saveButtonToolTipText

protected String  saveButtonToolTipText

openButtonToolTipText

protected String  openButtonToolTipText

cancelButtonToolTipText

protected String  cancelButtonToolTipText

updateButtonToolTipText

protected String  updateButtonToolTipText

helpButtonToolTipText

protected String  helpButtonToolTipText

directoryOpenButtonToolTipText

protected String  directoryOpenButtonToolTipText
디렉토리가 선택되어 현재의 선택 모드가 FILES_ONLY 인 경우, 동의 버튼상에 표시되는 툴팁 텍스트입니다.

도입된 버젼:
1.4
생성자 의 상세

BasicFileChooserUI

public BasicFileChooserUI(JFileChooser  b)
메소드의 상세

installUI

public void installUI(JComponent  c)
클래스 ComponentUI 의 기술:
Look & Feel 에 적절한, 지정된 컴퍼넌트를 구성합니다. 이 메소드는,ComponentUI 인스턴스가, 지정된 컴퍼넌트의 UI 위양으로서 인스톨 되고 있을 때 불려 갑니다. 이 메소드는, 이하를 포함한 Look & Feel 용의 컴퍼넌트를 완전하게 구성할 필요가 있습니다.
  1. 칼라, 폰트, 경계, 아이콘, 불투명함 등 모든 디폴트 프로퍼티의 값을 컴퍼넌트에 인스톨 한다. 가능한 경우는, 클라이언트 프로그램에 의해 초기화된 프로퍼티의 값을 오버라이드(override) 해서는 안 된다
  2. 필요에 따라서, 컴퍼넌트에 LayoutManager 를 인스톨 한다
  3. 필요한 서브 컴퍼넌트를, 컴퍼넌트에 작성 또는 추가한다
  4. 이벤트 청취자를, 컴퍼넌트에 작성 또는 인스톨 한다
  5. 컴퍼넌트의 프로퍼티의 변경을 적절히 검출해, 응답하기 위해서,PropertyChangeListener 를 컴퍼넌트에 작성 또는 인스톨 한다
  6. 키보드 UI (니마닉(mnemonic), traversal등)를, 컴퍼넌트에 인스톨 한다
  7. 적절한 인스턴스의 데이터를 초기화한다

오버라이드(override):
클래스 ComponentUI 내의 installUI
파라미터:
c - UI 위양이 인스톨 되고 있는 컴퍼넌트
관련 항목:
ComponentUI.uninstallUI(javax.swing.JComponent) , JComponent.setUI(javax.swing.plaf.ComponentUI) , JComponent.updateUI()

uninstallUI

public void uninstallUI(JComponent  c)
클래스 ComponentUI 의 기술:
installUI 시에, 지정된 컴퍼넌트로 구성된 내용을 취소합니다. 이 메소드는, 지정된 컴퍼넌트의 UI 위양으로서의 UIComponent 인스턴스가 삭제되고 있을 때 불려 갑니다. 이 메소드는,installUI 에 의해 실행된 구성을 바탕으로 되돌릴 필요가 있습니다. 이 경우,JComponent 인스턴스를 깨끗한 상태 (여분의 청취자나, Look & Feel 고유의 프로퍼티 객체가 남지 않게)로 하도록(듯이) 충분히 주의해 주세요. 순서에는 다음의 것이 있습니다.
  1. UI 로서 설정된 모든 경계를, 컴퍼넌트로부터 삭제한다
  2. UI 로서 설정된 모든 레이아웃 매니저를, 컴퍼넌트로부터 삭제한다
  3. UI 로서 추가된 모든 서브 컴퍼넌트를, 컴퍼넌트로부터 삭제한다
  4. UI 로서 추가된 모든 이벤트/청취자를, 컴퍼넌트로부터 삭제한다
  5. UI 로서 인스톨 된 모든 키보드 UI 를, 컴퍼넌트로부터 삭제한다
  6. GC 용으로 할당할 수 있던 모든 인스턴스의 데이터 객체를 무효로 한다

오버라이드(override):
클래스 ComponentUI 내의 uninstallUI
파라미터:
c - 이 UI 위양을 삭제하는 컴퍼넌트. 이 인수는 일반적으로 무시되지만, UI 객체에 상태가 없고, 복수의 컴퍼넌트에 공유되고 있는 경우는 사용되는 일이 있는
관련 항목:
ComponentUI.installUI(javax.swing.JComponent) , JComponent.updateUI()

installComponents

public void installComponents(JFileChooser  fc)

uninstallComponents

public void uninstallComponents(JFileChooser  fc)

installListeners

protected void installListeners(JFileChooser  fc)

uninstallListeners

protected void uninstallListeners(JFileChooser  fc)

installDefaults

protected void installDefaults(JFileChooser  fc)

installIcons

protected void installIcons(JFileChooser  fc)

installStrings

protected void installStrings(JFileChooser  fc)

uninstallDefaults

protected void uninstallDefaults(JFileChooser  fc)

uninstallIcons

protected void uninstallIcons(JFileChooser  fc)

uninstallStrings

protected void uninstallStrings(JFileChooser  fc)

createModel

protected void createModel()

getModel

public BasicDirectoryModel  getModel()

createPropertyChangeListener

public PropertyChangeListener  createPropertyChangeListener(JFileChooser  fc)

getFileName

public String  getFileName()

getDirectoryName

public String  getDirectoryName()

setFileName

public void setFileName(String  filename)

setDirectoryName

public void setDirectoryName(String  dirname)

rescanCurrentDirectory

public void rescanCurrentDirectory(JFileChooser  fc)
정의:
클래스 FileChooserUI 내의 rescanCurrentDirectory

ensureFileIsVisible

public void ensureFileIsVisible(JFileChooser  fc,
                                File  f)
정의:
클래스 FileChooserUI 내의 ensureFileIsVisible

getFileChooser

public JFileChooser  getFileChooser()

getAccessoryPanel

public JPanel  getAccessoryPanel()

getApproveButton

protected JButton  getApproveButton(JFileChooser  fc)

getApproveButtonToolTipText

public String  getApproveButtonToolTipText(JFileChooser  fc)

clearIconCache

public void clearIconCache()

createDoubleClickListener

protected MouseListener  createDoubleClickListener(JFileChooser  fc,
                                                  JList  list)

createListSelectionListener

public ListSelectionListener  createListSelectionListener(JFileChooser  fc)

isDirectorySelected

protected boolean isDirectorySelected()
현재 디렉토리가 UI 로 선택되고 있는지 어떤지를 기억하기 위한 프로퍼티입니다.

반환값:
디렉토리가 현재 선택되고 있는 경우 true
도입된 버젼:
1.4

setDirectorySelected

protected void setDirectorySelected(boolean b)
현재 디렉토리가 UI 로 선택되고 있는지 어떤지를 기억하기 위한 프로퍼티입니다. 일반적으로, 선택 이벤트로 UI 에 의해 불려 갑니다.

파라미터:
b - 디렉토리가 현재 선택되고 있는 경우
도입된 버젼:
1.4

getDirectory

protected File  getDirectory()
현재, UI 로 선택되고 있는 디렉토리를 기억하기 위한 프로퍼티입니다.

반환값:
directory 프로퍼티의 값
도입된 버젼:
1.4
관련 항목:
setDirectory(java.io.File)

setDirectory

protected void setDirectory(File  f)
현재, UI 로 선택되고 있는 디렉토리를 기억하기 위한 프로퍼티입니다. 일반적으로, 선택 이벤트로 UI 에 의해 불려 갑니다.

파라미터:
f - 현재 선택된 디렉토리를 나타내는 File 객체
도입된 버젼:
1.4

getAcceptAllFileFilter

public FileFilter  getAcceptAllFileFilter(JFileChooser  fc)
디폴트로 인정되는 모든 파일 필터를 돌려줍니다.

정의:
클래스 FileChooserUI 내의 getAcceptAllFileFilter

getFileView

public FileView  getFileView(JFileChooser  fc)
정의:
클래스 FileChooserUI 내의 getFileView

getDialogTitle

public String  getDialogTitle(JFileChooser  fc)
이 다이얼로그의 타이틀을 돌려줍니다.

정의:
클래스 FileChooserUI 내의 getDialogTitle

getApproveButtonMnemonic

public int getApproveButtonMnemonic(JFileChooser  fc)

getApproveButtonText

public String  getApproveButtonText(JFileChooser  fc)
정의:
클래스 FileChooserUI 내의 getApproveButtonText

getNewFolderAction

public Action  getNewFolderAction()

getGoHomeAction

public Action  getGoHomeAction()

getChangeToParentDirectoryAction

public Action  getChangeToParentDirectoryAction()

getApproveSelectionAction

public Action  getApproveSelectionAction()

getCancelSelectionAction

public Action  getCancelSelectionAction()

getUpdateAction

public Action  getUpdateAction()

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.