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
-
フィールド詳細
-
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
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent c) 指定されたコンポーネントのBasicFileChooserUIの実装を作成します。 デフォルトではBasicLookAndFeelクラスはすべての基本UIクラスのcreateUIメソッドを使用してUIをインスタンス化します。- パラメータ:
c- UIを必要とするJFileChooser- 戻り値:
BasicFileChooserUIオブジェクト- 導入されたバージョン:
- 1.7
- 関連項目:
-
installUI
public void installUI(JComponent c) UIをインストールします。- オーバーライド:
installUI、クラスComponentUI- パラメータ:
c- コンポーネント- 関連項目:
-
uninstallUI
public void uninstallUI(JComponent c) UIをアンインストールします。- オーバーライド:
uninstallUI、クラスComponentUI- パラメータ:
c- コンポーネント- 関連項目:
-
installComponents
-
uninstallComponents
-
installListeners
-
uninstallListeners
-
installDefaults
-
installIcons
-
installStrings
-
uninstallDefaults
-
uninstallIcons
-
uninstallStrings
-
createModel
protected void createModel()モデルを作成します。 -
getModel
-
createPropertyChangeListener
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc) プロパティ変更リスナーを作成します。- パラメータ:
fc- ファイル・セレクタ- 戻り値:
- プロパティ変更リスナー
-
getFileName
-
getDirectoryName
-
setFileName
-
setDirectoryName
-
rescanCurrentDirectory
public void rescanCurrentDirectory(JFileChooser fc) 現在のディレクトリを再スキャンします。- 定義:
rescanCurrentDirectory、クラスFileChooserUI- パラメータ:
fc- ファイル・セレクタ
-
ensureFileIsVisible
public void ensureFileIsVisible(JFileChooser fc, File f) 問題のファイルが表示されていることを確認します。- 定義:
ensureFileIsVisible、クラスFileChooserUI- パラメータ:
fc- ファイル・セレクタf- ファイル
-
getFileChooser
-
getAccessoryPanel
-
getApproveButton
-
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
protected void setDirectory(File f) 現在、UIで選択されているディレクトリを記憶するためのプロパティです。 通常、選択イベントでUIにより呼び出されます。- パラメータ:
f- 現在選択されているディレクトリを表すFileオブジェクト- 導入されたバージョン:
- 1.4
-
getAcceptAllFileFilter
public FileFilter getAcceptAllFileFilter(JFileChooser fc) デフォルトで認められるすべてのファイル・フィルタを返します。- 定義:
getAcceptAllFileFilter、クラスFileChooserUI- パラメータ:
fc- ファイル・セレクタ- 戻り値:
- 受け入れ可能なすべてのファイル・フィルタ
-
getFileView
public FileView getFileView(JFileChooser fc) クラスからコピーされた説明:FileChooserUIファイル・ビューを返します。- 定義:
getFileView、クラスFileChooserUI- パラメータ:
fc- ファイル・セレクタ- 戻り値:
- ファイル・ビュー
-
getDialogTitle
public String getDialogTitle(JFileChooser fc) このダイアログのタイトルを返します。- 定義:
getDialogTitle、クラスFileChooserUI- パラメータ:
fc- ファイル・セレクタ- 戻り値:
- このダイアログのタイトル
-
getApproveButtonMnemonic
public int getApproveButtonMnemonic(JFileChooser fc) 承認ボタンのニーモニックを返します。- パラメータ:
fc- ファイル・セレクタ- 戻り値:
- 承認ボタン・ニーモニック
-
getApproveButtonText
public String getApproveButtonText(JFileChooser fc) 承認ボタン・テキストを返します。- 定義:
getApproveButtonText、クラスFileChooserUI- パラメータ:
fc- ファイル・セレクタ- 戻り値:
- 承認ボタンのテキスト。
-
getNewFolderAction
-
getGoHomeAction
-
getChangeToParentDirectoryAction
-
getApproveSelectionAction
-
getCancelSelectionAction
-
getUpdateAction
-