Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.jgoodies.looks.plastic
Class PlasticComboBoxUI

    java.lang.Object
      javax.swing.plaf.ComponentUI
          javax.swing.plaf.ComboBoxUI
              javax.swing.plaf.basic.BasicComboBoxUI
                  javax.swing.plaf.metal.MetalComboBoxUI
                      com.jgoodies.looks.plastic.PlasticComboBoxUI

public final class PlasticComboBoxUI
extends MetalComboBoxUI

The JGoodies Plastic Look and Feel implementation of `ComboBoxUI`. Has the same height as text fields - unless you change the renderer.

Version:
  $Revision: 1.5 $
Author:
  Karsten Lentzsch

Nested Class Summary

Nested classes inherited from class javax.swing.plaf.metal.MetalComboBoxUI
`MetalComboBoxUI.MetalComboBoxLayoutManager, MetalComboBoxUI.MetalComboPopup, MetalComboBoxUI.MetalPropertyChangeListener`

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

Field Summary

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
`PlasticComboBoxUI()`

Method Summary
`protected JButton` | `createArrowButton()` Creates and answers the arrow button that is to be used in the combo box.
`protected ComboBoxEditor` | `createEditor()` Creates the editor that is to be used in editable combo boxes.
`protected LayoutManager` | `createLayoutManager()` Creates a layout manager for managing the components which make up the combo box.
`protected ComboPopup` | `createPopup()`
`PropertyChangeListener` | `createPropertyChangeListener()`
`static ComponentUI` | `createUI(JComponent b)`
`Dimension` | `getMinimumSize(JComponent c)` Overriden to correct the combobox height.
`protected boolean` | `isToolBarComboBox(JComponent c)` Checks and answers if this combo is in a tool bar.
`void` | `update(Graphics g, JComponent c)`

Methods inherited from class javax.swing.plaf.metal.MetalComboBoxUI
`configureEditor, editablePropertyChanged, layoutComboBox, paint, removeListeners, unconfigureEditor`

Methods inherited from class javax.swing.plaf.basic.BasicComboBoxUI
`addEditor, configureArrowButton, createFocusListener, createItemListener, createKeyListener, createListDataListener, createRenderer, getAccessibleChild, getAccessibleChildrenCount, getDefaultSize, getDisplaySize, getInsets, getMaximumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isFocusTraversable, isNavigationKey, isPopupVisible, paintCurrentValue, paintCurrentValueBackground, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureArrowButton, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI`

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

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

Constructor Detail

### PlasticComboBoxUI

    public PlasticComboBoxUI()

Method Detail

### createUI

    public static ComponentUI createUI(JComponent b)

### createEditor

    protected ComboBoxEditor createEditor()

  Creates the editor that is to be used in editable combo boxes. This method only gets called if a custom editor has not already been installed in the JComboBox.

### createPopup

    protected ComboPopup createPopup()

### getMinimumSize

    public Dimension getMinimumSize(JComponent c)

  Overriden to correct the combobox height.

### createArrowButton

    protected JButton createArrowButton()

  Creates and answers the arrow button that is to be used in the combo box.

  Overridden to use a button that can have a pseudo 3D effect.

### createLayoutManager

    protected LayoutManager createLayoutManager()

  Creates a layout manager for managing the components which make up the combo box.

  Overriden to use a layout that has a fixed width arrow button.

  Returns:
    an instance of a layout manager

### update

    public void update(Graphics g,
                       JComponent c)

### isToolBarComboBox

    protected boolean isToolBarComboBox(JComponent c)

  Checks and answers if this combo is in a tool bar.

  Parameters:
    `c` - the component to check
  Returns:
    true if in tool bar, false otherwise

### createPropertyChangeListener

    public PropertyChangeListener createPropertyChangeListener()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 JGoodies Karsten Lentzsch. All Rights Reserved.