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 class
DirectoryComboBoxで選択されている項目が変更されたときにアクションを起こします。protected class
タイプ・フェース選択のコンボボックスで使用するデータ・モデルです。protected class
非推奨。JDK version 9以降protected class
タイプ・フェース選択のコンボボックスで使用するデータ・モデルです。class
各種のサイズおよびスタイルをレンダリングします。protected class
非推奨。JDK version 9以降クラス javax.swing.plaf.basic.BasicFileChooserUIで宣言されたネストされたクラス/インタフェース
BasicFileChooserUI.AcceptAllFileFilter, BasicFileChooserUI.ApproveSelectionAction, BasicFileChooserUI.BasicFileView, BasicFileChooserUI.CancelSelectionAction, BasicFileChooserUI.ChangeToParentDirectoryAction, BasicFileChooserUI.DoubleClickListener, BasicFileChooserUI.GoHomeAction, BasicFileChooserUI.NewFolderAction, BasicFileChooserUI.SelectionListener, BasicFileChooserUI.UpdateAction
-
フィールドのサマリー
クラス javax.swing.plaf.basic.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 void
下のパネルにコントロール・ボタンを追加します。protected ActionMap
ActionMap
のインスタンスを構築します。protected JPanel
詳細ビューを構築します。DirectoryComboBox
のDataModel
の新しいインスタンスを構築します。protected MetalFileChooserUI.FilterComboBoxModel
ComboBox
型のDataModel
を構築します。ComboBox
型のRenderer
を構築します。protected JPanel
詳細ビューを構築します。ファイルおよびディレクトリのリスト用の選択リスナーを作成します。static ComponentUI
MetalFileChooserUI
の新しいインスタンスを構築します。protected ActionMap
ActionMap
のインスタンスを返します。protected JPanel
下のパネルを返します。protected JPanel
ボタン・パネルを返します。ディレクトリ名を返します。JFileChooser
の最大サイズを返します。JFileChooser
の最小サイズを返します。指定されたJFileChooser
の推奨サイズを返します。protected void
下のパネルからコントロール・ボタンを削除します。void
setDirectoryName
(String dirname) ディレクトリ名を設定します。protected void
setDirectorySelected
(boolean directorySelected) 現在ディレクトリがUIで選択されているかどうかを記憶するためのプロパティです。void
ListSelectionEvent
が発生したときに呼び出されます。クラス javax.swing.plaf.basic.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
クラス javax.swing.plaf.FileChooserUIで宣言されたメソッド
getDefaultButton
クラス javax.swing.plaf.ComponentUIで宣言されたメソッド
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
-
コンストラクタの詳細
-
MetalFileChooserUI
public MetalFileChooserUI(JFileChooser filechooser) MetalFileChooserUI
の新しいインスタンスを構築します。- パラメータ:
filechooser
-JFileChooser
-
-
メソッドの詳細
-
createUI
public static ComponentUI createUI(JComponent c) MetalFileChooserUI
の新しいインスタンスを構築します。- パラメータ:
c
- コンポーネント- 戻り値:
MetalFileChooserUI
の新しいインスタンス
-
getButtonPanel
protected JPanel getButtonPanel()ボタン・パネルを返します。- 戻り値:
- ボタン・パネル
-
getBottomPanel
protected JPanel getBottomPanel()下のパネルを返します。- 戻り値:
- ボトム・パネル
-
getActionMap
protected ActionMap getActionMap()ActionMap
のインスタンスを返します。- 戻り値:
ActionMap
のインスタンス
-
createActionMap
protected ActionMap createActionMap()ActionMap
のインスタンスを構築します。- 戻り値:
ActionMap
のインスタンス
-
createList
protected JPanel createList(JFileChooser fc) 詳細ビューを構築します。- パラメータ:
fc
-JFileChooser
- 戻り値:
- リスト
-
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
のインスタンス
-