uic.themes
Class UICComboBoxUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.ComboBoxUI
          extended byjavax.swing.plaf.basic.BasicComboBoxUI
              extended byjavax.swing.plaf.metal.MetalComboBoxUI
                  extended byuic.themes.UICComboBoxUI

public class UICComboBoxUI
extends MetalComboBoxUI

Needed to give the ComboBox it's original behaviour back after adding the UICListUI for lists.


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
protected UICComboBoxUI()
           
 
Method Summary
protected  JButton createArrowButton()
           
static ComponentUI createUI(JComponent list)
           
 Dimension getMaximumSize(JComponent c)
           
 Dimension getMinimumSize(JComponent c)
           
 Dimension getPreferredSize(JComponent c)
           
 void installUI(JComponent c)
          Override to :
overwrite the currentValuePane to change opaque of a component in the paintComponent of the CellRendererPane change the keymanager, for sorting set the ui of the listbox to the default ui, otherwise making a selection will fail
 void setPopupVisible(JComboBox c, boolean v)
           
 
Methods inherited from class javax.swing.plaf.metal.MetalComboBoxUI
configureEditor, createEditor, createLayoutManager, createPopup, createPropertyChangeListener, 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, installComponents, installDefaults, installKeyboardActions, installListeners, isFocusTraversable, isNavigationKey, isPopupVisible, paintCurrentValue, paintCurrentValueBackground, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, toggleOpenClose, unconfigureArrowButton, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, 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
 

Constructor Detail

UICComboBoxUI

protected UICComboBoxUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent list)

createArrowButton

protected JButton createArrowButton()

installUI

public void installUI(JComponent c)
Override to :
overwrite the currentValuePane to change opaque of a component in the paintComponent of the CellRendererPane change the keymanager, for sorting set the ui of the listbox to the default ui, otherwise making a selection will fail


setPopupVisible

public void setPopupVisible(JComboBox c,
                            boolean v)

getPreferredSize

public Dimension getPreferredSize(JComponent c)

getMaximumSize

public Dimension getMaximumSize(JComponent c)

getMinimumSize

public Dimension getMinimumSize(JComponent c)


Copyright © 2002,2003 Thomas Zander Available under the Free Apache licence