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| Constructor and Description | 
|---|
| SynthListUI() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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在 
            ComponentUI 
           g - 用于绘画的 
            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在接口 
            SynthUI 
           context - 组件上下文 
           g - 
            Graphics画上 
           x - X坐标 
           y - Y坐标 
           w - 边框的宽度 
           h - 边框的高度 
           protected void installListeners()
public void propertyChange(PropertyChangeEvent e)
propertyChange在界面 
            PropertyChangeListener 
           e - 描述事件源和已更改的属性的PropertyChangeEvent对象。 
           protected void uninstallListeners()
protected void installDefaults()
protected void uninstallDefaults()
null 。 
           如果某个属性的当前值不是UIResource,则该属性被视为被UIResource 。 
          public SynthContext getContext(JComponent c)
getContext在接口 
            SynthUI 
           c - 组件请求SynthContext。 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.