|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.AbstractButton
|
+--javax.swing.JButton
|
+--javax.swing.plaf.metal.MetalComboBoxButton
MetalComboBoxUI を補助する JButton サブクラスです。
警告:
このクラスの直列化されたオブジェクトは、今後の Swing リリースとの互換性がなくなります。現在の直列化のサポートは、短期記憶や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。JDK バージョン 1.4 以降、すべての JavaBeans の長期記憶用サポートは、java.beans パッケージに追加されています。詳細は、XMLEncoder を参照してください。
MetalComboBoxButton| 入れ子クラスの概要 |
| クラス javax.swing.JButton から継承した入れ子クラス |
JButton.AccessibleJButton |
| クラス javax.swing.AbstractButton から継承した入れ子クラス |
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
| クラス javax.swing.JComponent から継承した入れ子クラス |
JComponent.AccessibleJComponent |
| クラス java.awt.Container から継承した入れ子クラス |
Container.AccessibleAWTContainer |
| クラス java.awt.Component から継承した入れ子クラス |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| フィールドの概要 | |
protected JComboBox |
comboBox
|
protected Icon |
comboIcon
|
protected boolean |
iconOnly
|
protected JList |
listBox
|
protected CellRendererPane |
rendererPane
|
| クラス javax.swing.JComponent から継承したフィールド |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| クラス java.awt.Component から継承したフィールド |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| インタフェース javax.swing.SwingConstants から継承したフィールド |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| インタフェース java.awt.image.ImageObserver から継承したフィールド |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| コンストラクタの概要 | |
MetalComboBoxButton(JComboBox cb,
Icon i,
boolean onlyIcon,
CellRendererPane pane,
JList list)
|
|
MetalComboBoxButton(JComboBox cb,
Icon i,
CellRendererPane pane,
JList list)
|
|
| メソッドの概要 | |
JComboBox |
getComboBox()
|
Icon |
getComboIcon()
|
boolean |
isFocusTraversable()
この Component がフォーカスを取得できるかどうかを返します。 |
boolean |
isIconOnly()
|
void |
paintComponent(Graphics g)
UI 委譲が null でない場合に、UI 委譲のペイントメソッドを呼び出します。 |
void |
setComboBox(JComboBox cb)
|
void |
setComboIcon(Icon i)
|
void |
setIconOnly(boolean isIconOnly)
|
| クラス javax.swing.JButton から継承したメソッド |
configurePropertiesFromAction, getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, paramString, removeNotify, setDefaultCapable, updateUI |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
protected JComboBox comboBox
protected JList listBox
protected CellRendererPane rendererPane
protected Icon comboIcon
protected boolean iconOnly
| コンストラクタの詳細 |
public MetalComboBoxButton(JComboBox cb,
Icon i,
CellRendererPane pane,
JList list)
public MetalComboBoxButton(JComboBox cb,
Icon i,
boolean onlyIcon,
CellRendererPane pane,
JList list)
| メソッドの詳細 |
public final JComboBox getComboBox()
public final void setComboBox(JComboBox cb)
public final Icon getComboIcon()
public final void setComboIcon(Icon i)
public final boolean isIconOnly()
public final void setIconOnly(boolean isIconOnly)
public boolean isFocusTraversable()
Component の記述: Component がフォーカスを取得できるかどうかを返します。
Component 内の isFocusTraversableComponent がフォーカスを取得できる場合は true、そうでない場合は falseComponent.setFocusable(boolean)public void paintComponent(Graphics g)
JComponent の記述: null でない場合に、UI 委譲のペイントメソッドを呼び出します。委譲には Graphics オブジェクトのコピーを渡し、残りのペイントコードに対して取り消しできない変更が行われないように保護します (たとえば Graphics.translate など)。
このメソッドをサブクラスでオーバーライドする場合は、渡された Graphics のオブジェクトには永続的な変更は行わないようにします。たとえば Rectangle クリップや変換は変更しません。このような変更が必要な場合は、渡された Graphics から新しい Graphics を生成し、それを変更するほうが容易です。さらに上位オブジェクトの実装を行わない場合は、不透明プロパティに注意する必要があります。つまりこのコンポーネントが不透明な場合は、バックグラウンドには不透明でない色を使用する必要があります。不透明プロパティを無視すると画面が見にくくなります。
JComponent 内の paintComponentg - 保護対象の Graphics オブジェクトJComponent.paint(java.awt.Graphics),
ComponentUI
|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
Java、Java 2D、および JDBC は米国ならびにその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.