- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ListUI
-
- javax.swing.plaf.basic.BasicListUI
-
- javax.swing.plaf.synth.SynthListUI
-
- 实现的所有接口
-
PropertyChangeListener
,EventListener
,SynthConstants
,SynthUI
public class SynthListUI extends BasicListUI implements PropertyChangeListener, SynthUI
为JList
提供Synth L&F UI代表。- 从以下版本开始:
- 1.7
-
-
嵌套类汇总
-
嵌套类/接口声明在类 javax.swing.plaf.basic.BasicListUI
BasicListUI.FocusHandler, BasicListUI.ListDataHandler, BasicListUI.ListSelectionHandler, BasicListUI.MouseInputHandler, BasicListUI.PropertyChangeHandler
-
-
字段汇总
-
声明的属性在类 javax.swing.plaf.basic.BasicListUI
cellHeight, cellHeights, cellRendererChanged, cellWidth, fixedCellHeightChanged, fixedCellWidthChanged, focusListener, fontChanged, list, listDataListener, listSelectionListener, modelChanged, mouseInputListener, propertyChangeListener, prototypeCellValueChanged, rendererPane, selectionModelChanged, updateLayoutStateNeeded
-
Fields declared in interface javax.swing.plaf.synth.SynthConstants
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
-
-
构造方法摘要
构造方法 构造器 描述 SynthListUI()
-
方法摘要
所有方法 静态方法 实例方法 具体的方法 变量和类型 方法 描述 static ComponentUI
createUI(JComponent list)
为给定组件创建新的UI对象。void
update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。-
声明方法的类 javax.swing.plaf.basic.BasicListUI
convertRowToY, convertYToRow, createFocusListener, createListDataListener, createListSelectionListener, createMouseInputListener, createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, getPreferredSize, getRowHeight, installDefaults, installKeyboardActions, installListeners, installUI, locationToIndex, maybeUpdateLayoutState, paint, paintCell, selectNextIndex, selectPreviousIndex, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, updateLayoutState
-
声明方法的类 javax.swing.plaf.ListUI
getCellBounds, indexToLocation
-
声明方法的类 javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize
-
声明方法的类 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
声明方法的接口 java.beans.PropertyChangeListener
propertyChange
-
声明方法的接口 javax.swing.plaf.synth.SynthUI
getContext, paintBorder
-
-
-
-
方法详细信息
-
createUI
public static ComponentUI createUI(JComponent list)
为给定组件创建新的UI对象。- 参数
-
list
- 为其创建UI对象的组件 - 结果
- UI对象
-
update
public void update(Graphics g, JComponent c)
通知此UI委托重新绘制指定的组件。 此方法绘制组件背景,然后调用BasicListUI.paint(java.awt.Graphics, javax.swing.JComponent)
方法。通常,此方法不需要被子类覆盖。 所有外观和感觉渲染代码应驻留在
paint
方法中。- 重写:
-
update
在课程ComponentUI
- 参数
-
g
- 用于绘画的Graphics
对象 -
c
- 正在绘制的组件 - 另请参见:
-
BasicListUI.paint(java.awt.Graphics, javax.swing.JComponent)
-
-