クラスMetalFileChooserUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.FileChooserUI
javax.swing.plaf.basic.BasicFileChooserUI
javax.swing.plaf.metal.MetalFileChooserUI
public class MetalFileChooserUI extends BasicFileChooserUI
FileChooserのMetal L&F実装です。
-
ネストされたクラスのサマリー
ネストされたクラス修飾子と型クラス説明protected classDirectoryComboBoxで選択されている項目が変更されたときにアクションを起こします。protected classタイプ・フェース選択のコンボボックスで使用するデータ・モデルです。protected class非推奨。JDKバージョン9以降。protected classタイプ・フェース選択のコンボボックスで使用するデータ・モデルです。class各種のサイズおよびスタイルをレンダリングします。protected class非推奨。JDKバージョン9以降。クラスBasicFileChooserUIで宣言されたネストされたクラス/インタフェース
BasicFileChooserUI.AcceptAllFileFilter, BasicFileChooserUI.ApproveSelectionAction, BasicFileChooserUI.BasicFileView, BasicFileChooserUI.CancelSelectionAction, BasicFileChooserUI.ChangeToParentDirectoryAction, BasicFileChooserUI.DoubleClickListener, BasicFileChooserUI.GoHomeAction, BasicFileChooserUI.NewFolderAction, BasicFileChooserUI.SelectionListener, BasicFileChooserUI.UpdateAction修飾子と型クラス説明protected classすべてのファイル・フィルタを受け入れます。protected classOpen要求またはSave要求にこたえます。protected class基本的なファイル・ビュー。protected class取消しの要求にこたえます。protected class親ディレクトリ・アクションに移動します。protected classダブルクリック・リスナー。protected classHomeキー・イベントまたは同等のイベントに従って処理を行います。protected class新しいフォルダを作成します。protected class選択リスナー。protected class現在のディレクトリでファイルを走査し直します。 -
フィールドのサマリー
クラスで宣言されたフィールド BasicFileChooserUI
cancelButtonMnemonic, cancelButtonText, cancelButtonToolTipText, computerIcon, detailsViewIcon, directoryIcon, directoryOpenButtonMnemonic, directoryOpenButtonText, directoryOpenButtonToolTipText, fileIcon, floppyDriveIcon, hardDriveIcon, helpButtonMnemonic, helpButtonText, helpButtonToolTipText, homeFolderIcon, listViewIcon, newFolderIcon, openButtonMnemonic, openButtonText, openButtonToolTipText, saveButtonMnemonic, saveButtonText, saveButtonToolTipText, updateButtonMnemonic, updateButtonText, updateButtonToolTipText, upFolderIcon, viewMenuIcon修飾子と型フィールド説明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表示メニュー・アイコン -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明protected void下部パネルにコントロール・ボタンを追加します。protected ActionMapActionMapのインスタンスを構築します。protected JPanel詳細ビューを構築します。DirectoryComboBoxのDataModelの新しいインスタンスを構築します。protected MetalFileChooserUI.FilterComboBoxModelComboBox型のDataModelを構築します。ComboBox型のRendererを構築します。protected JPanel詳細ビューを構築します。ファイルおよびディレクトリのリスト用の選択リスナーを作成します。static ComponentUIMetalFileChooserUIの新しいインスタンスを構築します。protected ActionMapActionMapのインスタンスを返します。protected JPanel下部のパネルを返します。protected JPanelボタン・パネルを返します。ディレクトリ名を返します。JFileChooserの最大サイズを返します。JFileChooserの最小サイズを返します。指定されたJFileChooserの推奨サイズを返します。protected void下部パネルからコントロール・ボタンを削除します。voidsetDirectoryName(String dirname) ディレクトリ名を設定します。protected voidsetDirectorySelected(boolean directorySelected) 現在ディレクトリがUIで選択されているかどうかを記憶するためのプロパティです。voidListSelectionEventが発生したときに呼び出されます。クラスで宣言されたメソッド BasicFileChooserUI
clearIconCache, createDoubleClickListener, createModel, createPropertyChangeListener, ensureFileIsVisible, getAcceptAllFileFilter, getAccessoryPanel, getApproveButton, getApproveButtonMnemonic, getApproveButtonText, getApproveButtonToolTipText, getApproveSelectionAction, getCancelSelectionAction, getChangeToParentDirectoryAction, getDialogTitle, getDirectory, getFileChooser, getFileName, getFileView, getGoHomeAction, getModel, getNewFolderAction, getUpdateAction, installComponents, installDefaults, installIcons, installListeners, installStrings, installUI, isDirectorySelected, rescanCurrentDirectory, setDirectory, setFileName, uninstallComponents, uninstallDefaults, uninstallIcons, uninstallListeners, uninstallStrings, uninstallUI修飾子と型メソッド説明voidアイコン・キャッシュをクリアします。protected MouseListenercreateDoubleClickListener(JFileChooser fc, JList<?> list) ダブルクリック・リスナーを作成します。protected voidモデルを作成します。プロパティ変更リスナーを作成します。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で選択されているディレクトリを記憶するためのプロパティです。voidsetFileName(String filename) ファイル名を設定します。voidコンポーネントをアンインストールします。protected voidデフォルトをアンインストールします。protected voidアイコンをアンインストールします。protected voidリスナーをアンインストールします。protected void文字列をアンインストールします。voidUIをアンインストールします。クラスで宣言されたメソッド FileChooserUI
getDefaultButtonクラスで宣言されたメソッド ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update修飾子と型メソッド説明booleancontains(JComponent c, int x, int y) 指定された x,yの位置が、指定されたコンポーネントのLook & Feel定義の形状内にある場合は、trueを返します。getAccessibleChild(JComponent c, int i) オブジェクトのi番目のAccessibleの子を返します。intオブジェクト内のアクセシビリティ対応の子の数を返します。intgetBaseline(JComponent c, int width, int height) ベースラインを返します。サイズの変化に合わせてコンポーネントのベースラインがどのように変化するかを示す列挙を返します。voidpaint(Graphics g, JComponent c) 指定されたコンポーネントをLook & Feelに合わせてペイントします。voidupdate(Graphics g, JComponent c) 指定されたコンポーネントをペイントする時間になったことを、このUI委譲に通知します。クラスオブジェクトで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait修飾子と型メソッド説明protected Objectclone()このオブジェクトのコピーを作成して、返します。booleanこのオブジェクトと他のオブジェクトが等しいかどうかを示します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。inthashCode()このオブジェクトに対するハッシュ・コード値を返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。toString()オブジェクトの文字列表現を返します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
コンストラクタの詳細
-
MetalFileChooserUI
public MetalFileChooserUI(JFileChooser filechooser) MetalFileChooserUIの新しいインスタンスを構築します。- パラメータ:
filechooser- aJFileChooser
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent c) MetalFileChooserUIの新しいインスタンスを構築します。- パラメータ:
c- コンポーネント- 戻り値:
MetalFileChooserUIの新しいインスタンス
-
getButtonPanel
-
getBottomPanel
-
getActionMap
-
createActionMap
-
createList
-
createDetailsView
protected JPanel createDetailsView(JFileChooser fc) 詳細ビューを構築します。- パラメータ:
fc-JFileChooser- 戻り値:
- 詳細ビュー
-
createListSelectionListener
public ListSelectionListener createListSelectionListener(JFileChooser fc) ファイルおよびディレクトリのリスト用の選択リスナーを作成します。- オーバーライド:
createListSelectionListener、クラスBasicFileChooserUI- パラメータ:
fc-JFileChooser- 戻り値:
ListSelectionListener
-
getPreferredSize
public Dimension getPreferredSize(JComponent c) 指定されたJFileChooserの推奨サイズを返します。 この適切なサイズは、少なくともファイル・チューザのレイアウト・マネージャによって推奨された適切なサイズと同じ大きさ(高さと幅の両方)である必要があります。- オーバーライド:
getPreferredSize、クラスComponentUI- パラメータ:
c-JFileChooser- 戻り値:
- ファイル・チューザの適切な幅および高さを指定する
Dimension - 関連項目:
-
getMinimumSize
public Dimension getMinimumSize(JComponent c) JFileChooserの最小サイズを返します。- オーバーライド:
getMinimumSize、クラスComponentUI- パラメータ:
c-JFileChooser- 戻り値:
- ファイル・チューザの最小の幅および高さを指定する
Dimension - 関連項目:
-
getMaximumSize
public Dimension getMaximumSize(JComponent c) JFileChooserの最大サイズを返します。- オーバーライド:
getMaximumSize、クラスComponentUI- パラメータ:
c-JFileChooser- 戻り値:
- ファイル・チューザの最大の幅および高さを指定する
Dimension - 関連項目:
-
removeControlButtons
protected void removeControlButtons()下部パネルからコントロール・ボタンを削除します。 -
addControlButtons
protected void addControlButtons()下部パネルにコントロール・ボタンを追加します。 -
setDirectorySelected
protected void setDirectorySelected(boolean directorySelected) 現在ディレクトリがUIで選択されているかどうかを記憶するためのプロパティです。 通常、選択イベントでUIにより呼び出されます。- オーバーライド:
setDirectorySelected、クラスBasicFileChooserUI- パラメータ:
directorySelected- ディレクトリが現在選択されている場合- 導入されたバージョン:
- 1.4
-
getDirectoryName
public String getDirectoryName()ディレクトリ名を返します。- オーバーライド:
getDirectoryName、クラスBasicFileChooserUI- 戻り値:
- ディレクトリ名
-
setDirectoryName
public void setDirectoryName(String dirname) ディレクトリ名を設定します。- オーバーライド:
setDirectoryName、クラスBasicFileChooserUI- パラメータ:
dirname- ディレクトリ名
-
createDirectoryComboBoxModel
protected MetalFileChooserUI.DirectoryComboBoxModel createDirectoryComboBoxModel(JFileChooser fc) DirectoryComboBoxのDataModelの新しいインスタンスを構築します。- パラメータ:
fc-JFileChooser- 戻り値:
DirectoryComboBoxのDataModelの新しいインスタンス
-
createFilterComboBoxRenderer
protected MetalFileChooserUI.FilterComboBoxRenderer createFilterComboBoxRenderer()ComboBox型のRendererを構築します。- 戻り値:
- 型
ComboBoxのRenderer
-
createFilterComboBoxModel
protected MetalFileChooserUI.FilterComboBoxModel createFilterComboBoxModel()ComboBox型のDataModelを構築します。- 戻り値:
- 型
ComboBoxのDataModel
-
valueChanged
public void valueChanged(ListSelectionEvent e) ListSelectionEventが発生したときに呼び出されます。- パラメータ:
e-ListSelectionEventのインスタンス
-