- java.lang.Object
- 
- javax.swing.plaf.ComponentUI
- 
- javax.swing.plaf.ComboBoxUI
- 
- javax.swing.plaf.basic.BasicComboBoxUI
- 
- javax.swing.plaf.metal.MetalComboBoxUI
 
 
 
 
- 
 public class MetalComboBoxUI extends BasicComboBoxUI JComboBox用のMetal UIです。警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートが java.beansパッケージに追加されています。XMLEncoderを参照してください。
- 
- 
ネストされたクラスのサマリーネストされたクラス 修飾子と型 クラス 説明 classMetalComboBoxUI.MetalComboBoxLayoutManagerこのクラスは、protected内部クラスとして扱うようにしてください。classMetalComboBoxUI.MetalComboPopup非推奨。Java 2プラットフォームv1.4以降使われていません。classMetalComboBoxUI.MetalPropertyChangeListenerこのクラスは、protected内部クラスとして扱うようにしてください。- 
クラス javax.swing.plaf.basic.BasicComboBoxUIで宣言されたネストされたクラス/インタフェースBasicComboBoxUI.ComboBoxLayoutManager, BasicComboBoxUI.FocusHandler, BasicComboBoxUI.ItemHandler, BasicComboBoxUI.KeyHandler, BasicComboBoxUI.ListDataHandler, BasicComboBoxUI.PropertyChangeHandler
 
- 
 - 
フィールドのサマリー- 
クラス javax.swing.plaf.basic.BasicComboBoxUIで宣言されたフィールドarrowButton, cachedMinimumSize, comboBox, currentValuePane, editor, focusListener, hasFocus, isMinimumSizeDirty, itemListener, keyListener, listBox, listDataListener, padding, popup, popupKeyListener, popupMouseListener, popupMouseMotionListener, propertyChangeListener, squareButton
 
- 
 - 
コンストラクタのサマリーコンストラクタ コンストラクタ 説明 MetalComboBoxUI()
 - 
メソッドのサマリー修飾子と型 メソッド 説明 static ComponentUIcreateUI(JComponent c)MetalComboBoxUIのインスタンスを構築します。protected voideditablePropertyChanged(PropertyChangeEvent e)非推奨。Java 2プラットフォームv1.4以降使われていません。intgetBaseline(JComponent c, int width, int height)ベースラインを返します。voidlayoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager)parentコンテナ内のJComboBoxを配置します。voidpaintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)必要に応じて、現在選択されている項目をペイントします。voidpaintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)必要に応じて、現在選択されている項目のバックグラウンドをペイントします。protected voidremoveListeners()非推奨。Java 2プラットフォームv1.4以降使われていません。- 
クラス javax.swing.plaf.basic.BasicComboBoxUIで宣言されたメソッドaddEditor, configureArrowButton, configureEditor, createArrowButton, createEditor, createFocusListener, createItemListener, createKeyListener, createLayoutManager, createListDataListener, createPopup, createPropertyChangeListener, createRenderer, getBaselineResizeBehavior, getDefaultSize, getDisplaySize, getInsets, getMinimumSize, getSizeForComponent, installComponents, installDefaults, installKeyboardActions, installListeners, isFocusTraversable, isNavigationKey, isPopupVisible, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureArrowButton, unconfigureEditor, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
 - 
クラス javax.swing.plaf.ComponentUIで宣言されたメソッドcontains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
- 
 
- 
- 
- 
メソッドの詳細- 
createUIpublic static ComponentUI createUI(JComponent c) MetalComboBoxUIのインスタンスを構築します。- パラメータ:
- c- コンポーネント
- 戻り値:
- MetalComboBoxUIのインスタンス
 
 - 
paintCurrentValuepublic void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) 必要に応じて、現在選択されている項目をペイントします。- オーバーライド:
- paintCurrentValue、クラス:- BasicComboBoxUI
- パラメータ:
- g- ペイントされるGraphics
- bounds- 現在の値がペイントされるRegion
- hasFocus- JComboBoxにフォーカスがあるかどうか
- 例外:
- NullPointerException- 引数が1つでもnullの場合。
- 導入されたバージョン:
- 1.5
 
 - 
paintCurrentValueBackgroundpublic void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) 必要に応じて、現在選択されている項目のバックグラウンドをペイントします。- オーバーライド:
- paintCurrentValueBackground、クラス:- BasicComboBoxUI
- パラメータ:
- g- ペイントされるGraphics
- bounds- バックグラウンドがペイントされるRegion
- hasFocus- JComboBoxにフォーカスがあるかどうか
- 例外:
- NullPointerException- 引数が1つでもnullの場合。
- 導入されたバージョン:
- 1.5
 
 - 
getBaselinepublic int getBaseline(JComponent c, int width, int height) ベースラインを返します。- オーバーライド:
- getBaseline、クラス:- BasicComboBoxUI
- パラメータ:
- c- ベースラインが要求される- JComponent
- width- ベースラインを取得する幅
- height- ベースラインを取得する高さ
- 戻り値:
- ベースラインまたは0より小さい値(適切なベースラインがないことを示す)
- 例外:
- NullPointerException-- cが- nullである場合
- IllegalArgumentException- 幅または高さが0より小さい場合
- 導入されたバージョン:
- 1.6
- 関連項目:
- JComponent.getBaseline(int, int)
 
 - 
editablePropertyChanged@Deprecated protected void editablePropertyChanged(PropertyChangeEvent e) 非推奨。Java 2プラットフォームv1.4以降使われていません。Java 2プラットフォームv1.4以降、このメソッドは使われていません。 呼び出しまたはオーバーライドしないでください。 このメソッドのすべての機能はMetalPropertyChangeListener内にあります。- パラメータ:
- e-- PropertyChangeEventのインスタンス
 
 - 
layoutComboBoxpublic void layoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager) parentコンテナ内のJComboBoxを配置します。- パラメータ:
- parent- コンテナ
- manager-- MetalComboBoxLayoutManagerのインスタンス
 
 - 
removeListeners@Deprecated protected void removeListeners() 非推奨。Java 2プラットフォームv1.4以降使われていません。Java 2プラットフォームv1.4以降、このメソッドは使われていません。
 
- 
 
-