uic.themes
Class UICComboBoxUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ComboBoxUI
          extended by javax.swing.plaf.basic.BasicComboBoxUI
              extended by javax.swing.plaf.metal.MetalComboBoxUI
                  extended by uic.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
protected  class UICComboBoxUI.UICComboPopup
           
 
Nested classes/interfaces inherited from class javax.swing.plaf.metal.MetalComboBoxUI
MetalComboBoxUI.MetalComboBoxLayoutManager, MetalComboBoxUI.MetalComboPopup, MetalComboBoxUI.MetalPropertyChangeListener
 
Nested classes/interfaces 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()
           
protected  ComboPopup createPopup()
           
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, createPropertyChangeListener, editablePropertyChanged, layoutComboBox, paint, paintCurrentValue, paintCurrentValueBackground, 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, 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

createPopup

protected ComboPopup createPopup()
Overrides:
createPopup in class MetalComboBoxUI

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-2004 Thomas Zander Available under the Free Apache licence