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以降。クラス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 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が発生したときに呼び出されます。クラス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- aJFileChooser
-
-
メソッドの詳細
-
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のインスタンス
-