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すべてのファイル・フィルタを受け入れます。protected classOpen要求またはSave要求にこたえます。protected class基本的なファイル・ビュー。protected class取消しの要求にこたえます。protected class親ディレクトリ・アクションに移動します。protected classダブルクリック・リスナー。protected classHomeキー・イベントまたは同等のイベントに従って処理を行います。protected class新しいフォルダを作成します。protected class選択リスナー。protected class現在のディレクトリでファイルを走査し直します。
- 
フィールドのサマリーフィールド修飾子と型フィールド説明protected int取消ボタン・ニーモニックprotected String取消ボタンのテキストprotected String取消ボタン・ツール・ヒント・テキストprotected Iconコンピュータ・アイコンprotected Icon詳細表示アイコンprotected Iconディレクトリ・アイコンprotected intディレクトリが選択され、現在の選択モードがFILES_ONLYである場合、同意ボタンで使用されるニーモニック・キーコードです。protected Stringディレクトリが選択され、現在の選択モードがFILES_ONLYである場合、同意ボタン上に表示されるラベル・テキストです。protected Stringディレクトリが選択され、現在の選択モードがFILES_ONLYである場合、同意ボタン上に表示されるツールヒント・テキストです。protected Iconファイル・アイコンprotected Iconフロッピ・ドライブ・アイコンprotected Iconハード・ドライブ・アイコンprotected intヘルプ・ボタン・ニーモニックprotected Stringヘルプ・ボタンのテキストprotected Stringヘルプ・ボタンのツール・ヒント・テキストprotected Iconホーム・フォルダ・アイコンprotected Iconアイコンprotected Icon「新規フォルダ」アイコンprotected intボタンをニーモニックで開くprotected Stringボタンのテキストを開くprotected Stringボタンのツール・ヒントのテキストを開くprotected int保存ボタン・ニーモニックprotected Stringボタンのテキストを保存protected String保存ボタン・ツール・ヒント・テキストprotected int更新ボタン・ニーモニックprotected Stringボタンのテキストを更新protected Stringツールチップ・ヒント・ボタンの更新ボタンprotected Icon上のフォルダ・アイコンprotected Icon表示メニュー・アイコン
- 
コンストラクタのサマリーコンストラクタ
- 
メソッドのサマリー修飾子と型メソッド説明voidアイコン・キャッシュをクリアします。protected MouseListenercreateDoubleClickListener(JFileChooser fc, JList<?> list) ダブルクリック・リスナーを作成します。リスト選択リスナーを作成します。protected voidモデルを作成します。プロパティ変更リスナーを作成します。static ComponentUI指定されたコンポーネントのBasicFileChooserUIの実装を作成します。voidensureFileIsVisible(JFileChooser fc, File f) 問題のファイルが表示されていることを確認します。デフォルトで認められるすべてのファイル・フィルタを返します。アクセサリ・パネルを返します。protected JButton承認ボタンを返します。int承認ボタンのニーモニックを返します。承認ボタン・テキストを返します。承認ボタンのツールチップを返します。承認選択処理を返します。選択取消処理を返します。親ディレクトリ・アクションへの変更を返します。このダイアログのタイトルを返します。protected File現在、UIで選択されているディレクトリを記憶するためのプロパティです。ディレクトリ名を返します。ファイル・チューザを返します。ファイル名を返します。ファイル・ビューを返します。ホームに戻るアクション。getModel()モデルを返します。新しいフォルダ・アクションを返します。更新アクションを返します。voidコンポーネントを取り付けます。protected voidデフォルトをインストールします。protected voidアイコンをインストールします。protected voidリスナーをインストールします。protected void文字列をインストールします。voidUIをインストールします。protected boolean現在ディレクトリがUIで選択されているかどうかを記憶するためのプロパティです。void現在のディレクトリを再スキャンします。protected voidsetDirectory(File f) 現在、UIで選択されているディレクトリを記憶するためのプロパティです。voidsetDirectoryName(String dirname) ディレクトリ名を設定します。protected voidsetDirectorySelected(boolean b) 現在ディレクトリがUIで選択されているかどうかを記憶するためのプロパティです。voidsetFileName(String filename) ファイル名を設定します。voidコンポーネントをアンインストールします。protected voidデフォルトをアンインストールします。protected voidアイコンをアンインストールします。protected voidリスナーをアンインストールします。protected void文字列をアンインストールします。voidUIをアンインストールします。クラスjavax.swing.plaf.FileChooserUIで宣言されたメソッドgetDefaultButtonクラスjavax.swing.plaf.ComponentUIで宣言されたメソッドcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
- 
フィールド詳細- 
directoryIconprotected Icon directoryIconディレクトリ・アイコン
- 
fileIconprotected Icon fileIconファイル・アイコン
- 
computerIconprotected Icon computerIconコンピュータ・アイコン
- 
hardDriveIconprotected Icon hardDriveIconハード・ドライブ・アイコン
- 
floppyDriveIconprotected Icon floppyDriveIconフロッピ・ドライブ・アイコン
- 
newFolderIconprotected Icon newFolderIcon「新規フォルダ」アイコン
- 
upFolderIconprotected Icon upFolderIcon上のフォルダ・アイコン
- 
homeFolderIconprotected Icon homeFolderIconホーム・フォルダ・アイコン
- 
listViewIconprotected Icon listViewIconアイコン
- 
detailsViewIconprotected Icon detailsViewIcon詳細表示アイコン
- 
viewMenuIconprotected Icon viewMenuIcon表示メニュー・アイコン
- 
saveButtonMnemonicprotected int saveButtonMnemonic保存ボタン・ニーモニック
- 
openButtonMnemonicprotected int openButtonMnemonicボタンをニーモニックで開く
- 
cancelButtonMnemonicprotected int cancelButtonMnemonic取消ボタン・ニーモニック
- 
updateButtonMnemonicprotected int updateButtonMnemonic更新ボタン・ニーモニック
- 
helpButtonMnemonicprotected int helpButtonMnemonicヘルプ・ボタン・ニーモニック
- 
directoryOpenButtonMnemonicprotected int directoryOpenButtonMnemonicディレクトリが選択され、現在の選択モードがFILES_ONLYである場合、同意ボタンで使用されるニーモニック・キーコードです。- 導入されたバージョン:
- 1.4
 
- 
saveButtonTextprotected String saveButtonTextボタンのテキストを保存
- 
openButtonTextprotected String openButtonTextボタンのテキストを開く
- 
cancelButtonTextprotected String cancelButtonText取消ボタンのテキスト
- 
updateButtonTextprotected String updateButtonTextボタンのテキストを更新
- 
helpButtonTextprotected String helpButtonTextヘルプ・ボタンのテキスト
- 
directoryOpenButtonTextprotected String directoryOpenButtonTextディレクトリが選択され、現在の選択モードがFILES_ONLYである場合、同意ボタン上に表示されるラベル・テキストです。- 導入されたバージョン:
- 1.4
 
- 
saveButtonToolTipTextprotected String saveButtonToolTipText保存ボタン・ツール・ヒント・テキスト
- 
openButtonToolTipTextprotected String openButtonToolTipTextボタンのツール・ヒントのテキストを開く
- 
cancelButtonToolTipTextprotected String cancelButtonToolTipText取消ボタン・ツール・ヒント・テキスト
- 
updateButtonToolTipTextprotected String updateButtonToolTipTextツールチップ・ヒント・ボタンの更新ボタン
- 
helpButtonToolTipTextprotected String helpButtonToolTipTextヘルプ・ボタンのツール・ヒント・テキスト
- 
directoryOpenButtonToolTipTextprotected String directoryOpenButtonToolTipTextディレクトリが選択され、現在の選択モードがFILES_ONLYである場合、同意ボタン上に表示されるツールヒント・テキストです。- 導入されたバージョン:
- 1.4
 
 
- 
- 
コンストラクタの詳細- 
BasicFileChooserUIpublic BasicFileChooserUI(JFileChooser b) BasicFileChooserUIを構築します。- パラメータ:
- b- ファイルチューザ
 
 
- 
- 
メソッドの詳細- 
createUIpublic static ComponentUI createUI(JComponent c) 指定されたコンポーネントのBasicFileChooserUIの実装を作成します。 デフォルトではBasicLookAndFeelクラスはすべての基本UIクラスのcreateUIメソッドを使用してUIをインスタンス化します。- パラメータ:
- c- UIを必要とする- JFileChooser
- 戻り値:
- BasicFileChooserUIオブジェクト
- 導入されたバージョン:
- 1.7
- 関連項目:
 
- 
installUIpublic void installUI(JComponent c) UIをインストールします。- オーバーライド:
- installUI、クラス- ComponentUI
- パラメータ:
- c- コンポーネント
- 関連項目:
 
- 
uninstallUIpublic void uninstallUI(JComponent c) UIをアンインストールします。- オーバーライド:
- uninstallUI、クラス- ComponentUI
- パラメータ:
- c- コンポーネント
- 関連項目:
 
- 
installComponentspublic void installComponents(JFileChooser fc) コンポーネントを取り付けます。- パラメータ:
- fc- ファイル・セレクタ
 
- 
uninstallComponentspublic void uninstallComponents(JFileChooser fc) コンポーネントをアンインストールします。- パラメータ:
- fc- ファイル・セレクタ
 
- 
installListenersprotected void installListeners(JFileChooser fc) リスナーをインストールします。- パラメータ:
- fc- ファイル・セレクタ
 
- 
uninstallListenersprotected void uninstallListeners(JFileChooser fc) リスナーをアンインストールします。- パラメータ:
- fc- ファイル・セレクタ
 
- 
installDefaultsprotected void installDefaults(JFileChooser fc) デフォルトをインストールします。- パラメータ:
- fc- ファイル・セレクタ
 
- 
installIconsprotected void installIcons(JFileChooser fc) アイコンをインストールします。- パラメータ:
- fc- ファイル・セレクタ
 
- 
installStringsprotected void installStrings(JFileChooser fc) 文字列をインストールします。- パラメータ:
- fc- ファイル・セレクタ
 
- 
uninstallDefaultsprotected void uninstallDefaults(JFileChooser fc) デフォルトをアンインストールします。- パラメータ:
- fc- ファイル・セレクタ
 
- 
uninstallIconsprotected void uninstallIcons(JFileChooser fc) アイコンをアンインストールします。- パラメータ:
- fc- ファイル・セレクタ
 
- 
uninstallStringsprotected void uninstallStrings(JFileChooser fc) 文字列をアンインストールします。- パラメータ:
- fc- ファイル・セレクタ
 
- 
createModelprotected void createModel()モデルを作成します。
- 
getModelpublic BasicDirectoryModel getModel()モデルを返します。- 戻り値:
- モデル
 
- 
createPropertyChangeListenerpublic PropertyChangeListener createPropertyChangeListener(JFileChooser fc) プロパティ変更リスナーを作成します。- パラメータ:
- fc- ファイル・セレクタ
- 戻り値:
- プロパティ変更リスナー
 
- 
getFileNamepublic String getFileName()ファイル名を返します。- 戻り値:
- ファイル名
 
- 
getDirectoryNamepublic String getDirectoryName()ディレクトリ名を返します。- 戻り値:
- ディレクトリ名
 
- 
setFileNamepublic void setFileName(String filename) ファイル名を設定します。- パラメータ:
- filename- ファイル名
 
- 
setDirectoryNamepublic void setDirectoryName(String dirname) ディレクトリ名を設定します。- パラメータ:
- dirname- ファイル名
 
- 
rescanCurrentDirectorypublic void rescanCurrentDirectory(JFileChooser fc) 現在のディレクトリを再スキャンします。- 定義:
- rescanCurrentDirectory、クラス- FileChooserUI
- パラメータ:
- fc- ファイル・セレクタ
 
- 
ensureFileIsVisiblepublic void ensureFileIsVisible(JFileChooser fc, File f) 問題のファイルが表示されていることを確認します。- 定義:
- ensureFileIsVisible、クラス- FileChooserUI
- パラメータ:
- fc- ファイル・セレクタ
- f- ファイル
 
- 
getFileChooserpublic JFileChooser getFileChooser()ファイル・チューザを返します。- 戻り値:
- ファイル・セレクタ
 
- 
getAccessoryPanelpublic JPanel getAccessoryPanel()アクセサリ・パネルを返します。- 戻り値:
- アクセサリ・パネル
 
- 
getApproveButtonprotected JButton getApproveButton(JFileChooser fc) 承認ボタンを返します。- パラメータ:
- fc- ファイル・セレクタ
- 戻り値:
- 承認ボタン
 
- 
getApproveButtonToolTipTextpublic String getApproveButtonToolTipText(JFileChooser fc) 承認ボタンのツールチップを返します。- パラメータ:
- fc- ファイル・セレクタ
- 戻り値:
- 承認ボタンのツールチップ
 
- 
clearIconCachepublic void clearIconCache()アイコン・キャッシュをクリアします。
- 
createDoubleClickListenerprotected MouseListener createDoubleClickListener(JFileChooser fc, JList<?> list) ダブルクリック・リスナーを作成します。- パラメータ:
- fc- ファイル・セレクタ
- list- リスト
- 戻り値:
- ダブルクリック・リスナー
 
- 
createListSelectionListenerpublic ListSelectionListener createListSelectionListener(JFileChooser fc) リスト選択リスナーを作成します。- パラメータ:
- fc- ファイル・セレクタ
- 戻り値:
- リスト選択リスナー
 
- 
isDirectorySelectedprotected boolean isDirectorySelected()現在ディレクトリがUIで選択されているかどうかを記憶するためのプロパティです。- 戻り値:
- trueディレクトリが現在選択されている場合
- 導入されたバージョン:
- 1.4
 
- 
setDirectorySelectedprotected void setDirectorySelected(boolean b) 現在ディレクトリがUIで選択されているかどうかを記憶するためのプロパティです。 通常、選択イベントでUIにより呼び出されます。- パラメータ:
- b- ディレクトリが現在選択されている場合
- 導入されたバージョン:
- 1.4
 
- 
getDirectoryprotected File getDirectory()現在、UIで選択されているディレクトリを記憶するためのプロパティです。- 戻り値:
- directoryプロパティの値
- 導入されたバージョン:
- 1.4
- 関連項目:
 
- 
setDirectoryprotected void setDirectory(File f) 現在、UIで選択されているディレクトリを記憶するためのプロパティです。 通常、選択イベントでUIにより呼び出されます。- パラメータ:
- f- 現在選択されているディレクトリを表す- Fileオブジェクト
- 導入されたバージョン:
- 1.4
 
- 
getAcceptAllFileFilterpublic FileFilter getAcceptAllFileFilter(JFileChooser fc) デフォルトで認められるすべてのファイル・フィルタを返します。- 定義:
- getAcceptAllFileFilter、クラス- FileChooserUI
- パラメータ:
- fc- ファイル・セレクタ
- 戻り値:
- 受け入れ可能なすべてのファイル・フィルタ
 
- 
getFileViewpublic FileView getFileView(JFileChooser fc) クラスからコピーされた説明:FileChooserUIファイル・ビューを返します。- 定義:
- getFileView、クラス- FileChooserUI
- パラメータ:
- fc- ファイル・セレクタ
- 戻り値:
- ファイル・ビュー
 
- 
getDialogTitlepublic String getDialogTitle(JFileChooser fc) このダイアログのタイトルを返します。- 定義:
- getDialogTitle、クラス- FileChooserUI
- パラメータ:
- fc- ファイル・セレクタ
- 戻り値:
- このダイアログのタイトル
 
- 
getApproveButtonMnemonicpublic int getApproveButtonMnemonic(JFileChooser fc) 承認ボタンのニーモニックを返します。- パラメータ:
- fc- ファイル・セレクタ
- 戻り値:
- 承認ボタン・ニーモニック
 
- 
getApproveButtonTextpublic String getApproveButtonText(JFileChooser fc) 承認ボタン・テキストを返します。- 定義:
- getApproveButtonText、クラス- FileChooserUI
- パラメータ:
- fc- ファイル・セレクタ
- 戻り値:
- 承認ボタンのテキスト。
 
- 
getNewFolderActionpublic Action getNewFolderAction()新しいフォルダ・アクションを返します。- 戻り値:
- 新しいフォルダ・アクション
 
- 
getGoHomeActionpublic Action getGoHomeAction()ホームに戻るアクション。- 戻り値:
- 家へ帰る
 
- 
getChangeToParentDirectoryActionpublic Action getChangeToParentDirectoryAction()親ディレクトリ・アクションへの変更を返します。- 戻り値:
- 親ディレクトリ・アクションへの変更
 
- 
getApproveSelectionActionpublic Action getApproveSelectionAction()承認選択処理を返します。- 戻り値:
- 承認選択アクション
 
- 
getCancelSelectionActionpublic Action getCancelSelectionAction()選択取消処理を返します。- 戻り値:
- 取消選択アクション
 
- 
getUpdateActionpublic Action getUpdateAction()更新アクションを返します。- 戻り値:
- 更新アクション
 
 
-