- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.FileChooserUI
-
- javax.swing.plaf.basic.BasicFileChooserUI
-
- 直系の既知のサブクラス:
MetalFileChooserUI
public class BasicFileChooserUI extends FileChooserUI
FileChooserの基本L&F実装です。
-
-
ネストされたクラスのサマリー
ネストされたクラス 修飾子と型 クラス 説明 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である場合、同意ボタンで使用されるニーモニック・キーコードです。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
上のフォルダ・アイコンprotected Icon
viewMenuIcon
表示メニュー・アイコン
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 BasicFileChooserUI(JFileChooser b)
BasicFileChooserUI
を構築します。
-
メソッドのサマリー
修飾子と型 メソッド 説明 void
clearIconCache()
アイコン・キャッシュをクリアします。protected MouseListener
createDoubleClickListener(JFileChooser fc, JList<?> list)
ダブルクリック・リスナーを作成します。ListSelectionListener
createListSelectionListener(JFileChooser fc)
リスト選択リスナーを作成します。protected void
createModel()
モデルを作成します。PropertyChangeListener
createPropertyChangeListener(JFileChooser fc)
プロパティ変更リスナーを作成します。static ComponentUI
createUI(JComponent c)
指定されたコンポーネントのBasicFileChooserUI
の実装を作成します。FileFilter
getAcceptAllFileFilter(JFileChooser fc)
デフォルトで認められるすべてのファイル・フィルタを返します。JPanel
getAccessoryPanel()
アクセサリ・パネルを返します。protected JButton
getApproveButton(JFileChooser fc)
承認ボタンを返します。int
getApproveButtonMnemonic(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()
ファイル名を返します。Action
getGoHomeAction()
go homeアクションを返します。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)
UIをインストールします。protected boolean
isDirectorySelected()
現在ディレクトリがUIで選択されているかどうかを記憶するためのプロパティです。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)
UIをアンインストールします。-
クラス javax.swing.plaf.FileChooserUIで宣言されたメソッド
ensureFileIsVisible, getApproveButtonText, getDefaultButton, getFileView, rescanCurrentDirectory
-
クラス javax.swing.plaf.ComponentUIで宣言されたメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
-
-
-
-
フィールドの詳細
-
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
詳細表示アイコン
-
viewMenuIcon
protected Icon viewMenuIcon
表示メニュー・アイコン
-
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である場合、同意ボタンで使用されるニーモニック・キーコードです。- 導入されたバージョン:
- 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)
BasicFileChooserUI
を構築します。- パラメータ:
b
- ファイル・チューザ
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent c)
指定されたコンポーネントのBasicFileChooserUI
の実装を作成します。 デフォルトではBasicLookAndFeel
クラスはすべての基本UIクラスのcreateUI
メソッドを使用してUIをインスタンス化します。- パラメータ:
c
- UIを必要とするJFileChooser
- 戻り値:
BasicFileChooserUI
オブジェクト- 導入されたバージョン:
- 1.7
- 関連項目:
UIDefaults.getUI(JComponent)
-
installUI
public void installUI(JComponent c)
UIをインストールします。- オーバーライド:
installUI
、クラス:ComponentUI
- パラメータ:
c
- コンポーネント- 関連項目:
ComponentUI.uninstallUI(javax.swing.JComponent)
,JComponent.setUI(javax.swing.plaf.ComponentUI)
,JComponent.updateUI()
-
uninstallUI
public void uninstallUI(JComponent c)
UIをアンインストールします。- オーバーライド:
uninstallUI
、クラス:ComponentUI
- パラメータ:
c
- コンポーネント- 関連項目:
ComponentUI.installUI(javax.swing.JComponent)
,JComponent.updateUI()
-
installComponents
public void installComponents(JFileChooser fc)
コンポーネントをインストールします。- パラメータ:
fc
- ファイル・セレクタ
-
uninstallComponents
public void uninstallComponents(JFileChooser fc)
コンポーネントをアンインストールします。- パラメータ:
fc
- ファイル・セレクタ
-
installListeners
protected void installListeners(JFileChooser fc)
リスナーをインストールします。- パラメータ:
fc
- ファイル・セレクタ
-
uninstallListeners
protected void uninstallListeners(JFileChooser fc)
リスナーをアンインストールします。- パラメータ:
fc
- ファイル・セレクタ
-
installDefaults
protected void installDefaults(JFileChooser fc)
デフォルトをインストールします。- パラメータ:
fc
- ファイル・セレクタ
-
installIcons
protected void installIcons(JFileChooser fc)
アイコンをインストールします。- パラメータ:
fc
- ファイル・セレクタ
-
installStrings
protected void installStrings(JFileChooser fc)
文字列をインストールします。- パラメータ:
fc
- ファイル・セレクタ
-
uninstallDefaults
protected void uninstallDefaults(JFileChooser fc)
デフォルトをアンインストールします。- パラメータ:
fc
- ファイル・セレクタ
-
uninstallIcons
protected void uninstallIcons(JFileChooser fc)
アイコンをアンインストールします。- パラメータ:
fc
- ファイル・セレクタ
-
uninstallStrings
protected void uninstallStrings(JFileChooser fc)
文字列をアンインストールします。- パラメータ:
fc
- ファイル・セレクタ
-
createModel
protected void createModel()
モデルを作成します。
-
getModel
public BasicDirectoryModel getModel()
モデルを返します。- 戻り値:
- モデル
-
createPropertyChangeListener
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc)
プロパティ変更リスナーを作成します。- パラメータ:
fc
- ファイル・セレクタ- 戻り値:
- プロパティ変更リスナー
-
getFileName
public String getFileName()
ファイル名を返します。- 戻り値:
- ファイル名
-
getDirectoryName
public String getDirectoryName()
ディレクトリ名を返します。- 戻り値:
- ディレクトリ名
-
setFileName
public void setFileName(String filename)
ファイル名を設定します。- パラメータ:
filename
- ファイル名
-
setDirectoryName
public void setDirectoryName(String dirname)
ディレクトリ名を設定します。- パラメータ:
dirname
- ファイル名
-
getFileChooser
public JFileChooser getFileChooser()
ファイル・チューザを返します。- 戻り値:
- ファイル・セレクタ
-
getAccessoryPanel
public JPanel getAccessoryPanel()
アクセサリ・パネルを返します。- 戻り値:
- アクセサリ・パネル
-
getApproveButton
protected JButton getApproveButton(JFileChooser fc)
承認ボタンを返します。- パラメータ:
fc
- ファイル・セレクタ- 戻り値:
- 承認ボタン
-
getApproveButtonToolTipText
public String getApproveButtonToolTipText(JFileChooser fc)
承認ボタンのツールチップを返します。- パラメータ:
fc
- ファイル・セレクタ- 戻り値:
- 承認ボタンのツールチップ
-
clearIconCache
public void clearIconCache()
アイコン・キャッシュをクリアします。
-
createDoubleClickListener
protected MouseListener createDoubleClickListener(JFileChooser fc, JList<?> list)
ダブルクリック・リスナーを作成します。- パラメータ:
fc
- ファイル・セレクタlist
- リスト- 戻り値:
- ダブル・クリック・リスナー
-
createListSelectionListener
public ListSelectionListener createListSelectionListener(JFileChooser fc)
リスト選択リスナーを作成します。- パラメータ:
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)
デフォルトで認められるすべてのファイル・フィルタを返します。- 定義:
getAcceptAllFileFilter
、クラス:FileChooserUI
- パラメータ:
fc
- ファイル・セレクタ- 戻り値:
- 受け入れ可能なすべてのファイル・フィルタ
-
getDialogTitle
public String getDialogTitle(JFileChooser fc)
このダイアログのタイトルを返します。- 定義:
getDialogTitle
、クラス:FileChooserUI
- パラメータ:
fc
- ファイル・セレクタ- 戻り値:
- このダイアログのタイトル
-
getApproveButtonMnemonic
public int getApproveButtonMnemonic(JFileChooser fc)
承認ボタン・ニーモニックを返します。- パラメータ:
fc
- ファイル・セレクタ- 戻り値:
- 承認ボタン・ニーモニック
-
getNewFolderAction
public Action getNewFolderAction()
新しいフォルダ・アクションを返します。- 戻り値:
- 新しいフォルダ・アクション
-
getGoHomeAction
public Action getGoHomeAction()
go homeアクションを返します。- 戻り値:
- 家へ帰る
-
getChangeToParentDirectoryAction
public Action getChangeToParentDirectoryAction()
親ディレクトリへの変更を返します。- 戻り値:
- 親ディレクトリ・アクションへの変更
-
getApproveSelectionAction
public Action getApproveSelectionAction()
選択承認アクションを返します。- 戻り値:
- 承認選択アクション
-
getCancelSelectionAction
public Action getCancelSelectionAction()
取消選択アクションを返します。- 戻り値:
- 取消選択アクション
-
getUpdateAction
public Action getUpdateAction()
更新アクションを返します。- 戻り値:
- 更新アクション
-
-