Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jvnet.substance
Class SubstanceComboBoxUI

    java.lang.Object
      javax.swing.plaf.ComponentUI
          javax.swing.plaf.ComboBoxUI
              javax.swing.plaf.basic.BasicComboBoxUI
                  org.jvnet.substance.SubstanceComboBoxUI

    public class SubstanceComboBoxUI

extends javax.swing.plaf.basic.BasicComboBoxUI

UI for combo boxes in Substance look and feel.

Author:
  Kirill Grouchnikov, Thomas Bierhance http://www.orbital-computer.de/JComboBox/, inostock

Nested Class Summary
`class` | `SubstanceComboBoxUI.ComboBoxPropertyChangeHandler` This property change handler changes combo box arrow icon based on the enabled status of the combo box.

Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicComboBoxUI
`javax.swing.plaf.basic.BasicComboBoxUI.ComboBoxLayoutManager, javax.swing.plaf.basic.BasicComboBoxUI.FocusHandler, javax.swing.plaf.basic.BasicComboBoxUI.ItemHandler, javax.swing.plaf.basic.BasicComboBoxUI.KeyHandler, javax.swing.plaf.basic.BasicComboBoxUI.ListDataHandler, javax.swing.plaf.basic.BasicComboBoxUI.PropertyChangeHandler`

Field Summary
`protected SubstanceComboBoxUI.ComboBoxPropertyChangeHandler` | `substanceChangeHandler` Property change handler on `enabled` property, `componentOrientation` property and on `SubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION` property.
`protected org.jvnet.lafwidget.animation.FadeStateListener` | `substanceFadeStateListener` Listener for fade animations.
`protected java.awt.event.FocusListener` | `substanceFocusListener` Focus listener on the combobox.

Fields inherited from class javax.swing.plaf.basic.BasicComboBoxUI
`arrowButton, cachedMinimumSize, comboBox, currentValuePane, editor, focusListener, hasFocus, isMinimumSizeDirty, itemListener, keyListener, listBox, listDataListener, popup, popupKeyListener, popupMouseListener, popupMouseMotionListener, propertyChangeListener`

Constructor Summary
`SubstanceComboBoxUI()`

Method Summary
`void` | `configureArrowButton()`
`protected void` | `configureArrowButtonStraightSide()` Configures the straight side of the arrow button.
`protected void` | `configureEditor()`
`protected javax.swing.JButton` | `createArrowButton()`
`protected javax.swing.ComboBoxEditor` | `createEditor()`
`protected java.awt.LayoutManager` | `createLayoutManager()`
`protected javax.swing.plaf.basic.ComboPopup` | `createPopup()`
`protected javax.swing.ListCellRenderer` | `createRenderer()`
`static javax.swing.plaf.ComponentUI` | `createUI(javax.swing.JComponent comp)`
`protected java.awt.Dimension` | `getDefaultSize()`
`java.awt.Dimension` | `getMinimumSize(javax.swing.JComponent c)`
`javax.swing.plaf.basic.ComboPopup` | `getPopup()` Returns the popup of the associated combobox.
`protected void` | `installDefaults()`
`protected void` | `installListeners()`
`void` | `paint(java.awt.Graphics g, javax.swing.JComponent c)`
`void` | `paintCurrentValue(java.awt.Graphics g, java.awt.Rectangle bounds, boolean hasFocus)`
`void` | `paintCurrentValueBackground(java.awt.Graphics g, java.awt.Rectangle bounds, boolean hasFocus)`
`protected void` | `paintFocus(java.awt.Graphics g, java.awt.Rectangle bounds)` Paints the focus indication.
`void` | `unconfigureArrowButton()`
`protected void` | `uninstallListeners()`

Methods inherited from class javax.swing.plaf.basic.BasicComboBoxUI
`addEditor, createFocusListener, createItemListener, createKeyListener, createListDataListener, createPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getDisplaySize, getInsets, getMaximumSize, getPreferredSize, installComponents, installKeyboardActions, installUI, isFocusTraversable, isNavigationKey, isPopupVisible, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureEditor, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI`

Methods inherited from class javax.swing.plaf.ComponentUI
`contains, update`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### substanceChangeHandler

    protected SubstanceComboBoxUI.ComboBoxPropertyChangeHandler substanceChangeHandler

  Property change handler on `enabled` property, `componentOrientation` property and on `SubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION` property.

### substanceFadeStateListener

    protected org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener

  Listener for fade animations.

### substanceFocusListener

    protected java.awt.event.FocusListener substanceFocusListener

  Focus listener on the combobox.

Constructor Detail

### SubstanceComboBoxUI

    public SubstanceComboBoxUI()

Method Detail

### createUI

    public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)

### createArrowButton

    protected javax.swing.JButton createArrowButton()

  Overrides:
    `createArrowButton` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### createRenderer

    protected javax.swing.ListCellRenderer createRenderer()

  Overrides:
    `createRenderer` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### installListeners

    protected void installListeners()

  Overrides:
    `installListeners` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### uninstallListeners

    protected void uninstallListeners()

  Overrides:
    `uninstallListeners` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### installDefaults

    protected void installDefaults()

  Overrides:
    `installDefaults` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### createLayoutManager

    protected java.awt.LayoutManager createLayoutManager()

  Overrides:
    `createLayoutManager` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### getDefaultSize

    protected java.awt.Dimension getDefaultSize()

  Overrides:
    `getDefaultSize` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### getMinimumSize

    public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)

  Overrides:
    `getMinimumSize` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### createPopup

    protected javax.swing.plaf.basic.ComboPopup createPopup()

  Overrides:
    `createPopup` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### paintCurrentValueBackground

    public void paintCurrentValueBackground(java.awt.Graphics g,
                                            java.awt.Rectangle bounds,
                                            boolean hasFocus)

  Overrides:
    `paintCurrentValueBackground` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### paintCurrentValue

    public void paintCurrentValue(java.awt.Graphics g,
                                  java.awt.Rectangle bounds,
                                  boolean hasFocus)

  Overrides:
    `paintCurrentValue` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### paint

    public void paint(java.awt.Graphics g,
                      javax.swing.JComponent c)

  Overrides:
    `paint` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### paintFocus

    protected void paintFocus(java.awt.Graphics g,
                              java.awt.Rectangle bounds)

  Paints the focus indication.

  Parameters:
    `g` - Graphics.
    `bounds` - Bounds for text.

### getPopup

    public javax.swing.plaf.basic.ComboPopup getPopup()

  Returns the popup of the associated combobox.

  Returns:
    The popup of the associated combobox.

### configureArrowButton

    public void configureArrowButton()

  Overrides:
    `configureArrowButton` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### configureArrowButtonStraightSide

    protected void configureArrowButtonStraightSide()

  Configures the straight side of the arrow button.

### unconfigureArrowButton

    public void unconfigureArrowButton()

  Overrides:
    `unconfigureArrowButton` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### configureEditor

    protected void configureEditor()

  Overrides:
    `configureEditor` in class `javax.swing.plaf.basic.BasicComboBoxUI`

### createEditor

    protected javax.swing.ComboBoxEditor createEditor()

  Overrides:
    `createEditor` in class `javax.swing.plaf.basic.BasicComboBoxUI`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD