uic.themes
Class UICComboBoxUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.ComboBoxUI
              |
              +--javax.swing.plaf.basic.BasicComboBoxUI
                    |
                    +--javax.swing.plaf.metal.MetalComboBoxUI
                          |
                          +--uic.themes.UICComboBoxUI

public class UICComboBoxUI
extends MetalComboBoxUI

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


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()
Overrides:
createArrowButton in class MetalComboBoxUI

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

Overrides:
installUI in class BasicComboBoxUI

setPopupVisible

public void setPopupVisible(JComboBox c,
                            boolean v)
Overrides:
setPopupVisible in class BasicComboBoxUI

getPreferredSize

public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class BasicComboBoxUI

getMaximumSize

public Dimension getMaximumSize(JComponent c)
Overrides:
getMaximumSize in class BasicComboBoxUI

getMinimumSize

public Dimension getMinimumSize(JComponent c)
Overrides:
getMinimumSize in class MetalComboBoxUI


Copyright © 2002,2003 Thomas Zander