public class SynthListUI extends BasicListUI implements PropertyChangeListener, SynthUI
JList の Synth L&F UI の委譲を提供します。BasicListUI.FocusHandler, BasicListUI.ListDataHandler, BasicListUI.ListSelectionHandler, BasicListUI.MouseInputHandler, BasicListUI.PropertyChangeHandlercellHeight, cellHeights, cellRendererChanged, cellWidth, fixedCellHeightChanged, fixedCellWidthChanged, focusListener, fontChanged, list, listDataListener, listSelectionListener, modelChanged, mouseInputListener, propertyChangeListener, prototypeCellValueChanged, rendererPane, selectionModelChanged, updateLayoutStateNeededDEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED| コンストラクタと説明 |
|---|
SynthListUI() |
| 修飾子と型 | メソッドと説明 |
|---|---|
static ComponentUI |
createUI(JComponent list)
指定されたコンポーネントの新しい UI オブジェクトを作成します。
|
SynthContext |
getContext(JComponent c)
指定されたコンポーネントのコンテキストを返します。
|
protected void |
installDefaults()
リストのプロパティー (フォント、フォアグラウンド、およびバックグラウンドなど) を初期化して、CellRendererPane を追加します。
|
protected void |
installListeners()
JList、そのモデル、およびその selectionModel のリスナーを作成およびインストールします。
|
void |
paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
ボーダーをペイントします。
|
void |
propertyChange(PropertyChangeEvent e)
バウンドプロパティーの変更時に呼び出されます。
|
protected void |
uninstallDefaults()
明示的にオーバーライドされていないリストプロパティーを
null に設定します。 |
protected void |
uninstallListeners()
JList、そのモデル、およびその selectionModel からリスナーを削除します。
|
void |
update(Graphics g, JComponent c)
この UI 委譲に、指定されたコンポーネントを再ペイントするよう通知します。
|
convertRowToY, convertYToRow, createFocusListener, createListDataListener, createListSelectionListener, createMouseInputListener, createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, getCellBounds, getPreferredSize, getRowHeight, indexToLocation, installKeyboardActions, installUI, locationToIndex, maybeUpdateLayoutState, paint, paintCell, selectNextIndex, selectPreviousIndex, uninstallKeyboardActions, uninstallUI, updateLayoutStatecontains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSizepublic static ComponentUI createUI(JComponent list)
list - UI オブジェクトを作成するコンポーネントpublic void update(Graphics g, JComponent c)
BasicListUI.paint(java.awt.Graphics, javax.swing.JComponent) メソッドを呼び出します。
一般に、このメソッドはサブクラスによってオーバーライドする必要はありません。すべての Look & Feel の描画コードを paint メソッドに入れるようにしてください。
update、クラス: ComponentUIg - ペイントに使用される Graphics オブジェクトc - ペイントされるコンポーネントBasicListUI.paint(java.awt.Graphics, javax.swing.JComponent)public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
SynthUIpaintBorder、インタフェース: SynthUIcontext - コンポーネントコンテキストg - ペイントされる Graphicsx - X 座標y - Y 座標w - ボーダーの幅h - ボーダーの高さprotected void installListeners()
BasicListUIpublic void propertyChange(PropertyChangeEvent e)
PropertyChangeListenerpropertyChange、インタフェース: PropertyChangeListenere - イベントソースと変更されたプロパティーを記述した PropertyChangeEvent オブジェクト。protected void uninstallListeners()
BasicListUIprotected void installDefaults()
BasicListUIprotected void uninstallDefaults()
BasicListUInull に設定します。現在の値が UIResource でなければ、プロパティーはオーバーライドされたと判断されます。public SynthContext getContext(JComponent c)
SynthUIgetContext、インタフェース: SynthUIc - SynthContext を要求するコンポーネント。 バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.