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)
paintBorder、インタフェース: SynthUIcontext - コンポーネント・コンテキストg - ペイントされるGraphicsx - X座標y - Y座標w - ボーダーの幅h - ボーダーの高さprotected void installListeners()
public void propertyChange(PropertyChangeEvent e)
propertyChange、インタフェース: PropertyChangeListenere - イベント・ソースと変更されたプロパティを記述したPropertyChangeEventオブジェクト。protected void uninstallListeners()
protected void installDefaults()
protected void uninstallDefaults()
nullに設定します。現在の値がUIResourceでなければ、プロパティはオーバーライドされたと判断されます。public SynthContext getContext(JComponent c)
getContext、インタフェース: SynthUIc - SynthContextを要求するコンポーネント。 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.