org.tentackle.plaf.tmetal
Class TMetalComboBoxUI

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 org.tentackle.plaf.tmetal.TMetalComboBoxUI

public class TMetalComboBoxUI
extends MetalComboBoxUI

UI for JComboBox/FormComboBox/FormFieldComboBox.

Author:
harald

Nested Class Summary
 
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
TMetalComboBoxUI()
           
 
Method Summary
protected  ComboPopup createPopup()
          Overridden to install special popup that recognizes FormComboBoxRenderer.
static ComponentUI createUI(JComponent c)
           
protected  void installListeners()
          Create and install the listeners for the combo box and its model.
protected  void uninstallListeners()
          Remove the installed listeners from the combo box and its model.
 
Methods inherited from class javax.swing.plaf.metal.MetalComboBoxUI
configureEditor, createArrowButton, createEditor, createLayoutManager, createPropertyChangeListener, editablePropertyChanged, getBaseline, getMinimumSize, layoutComboBox, paint, paintCurrentValue, paintCurrentValueBackground, removeListeners, unconfigureEditor
 
Methods inherited from class javax.swing.plaf.basic.BasicComboBoxUI
addEditor, configureArrowButton, createFocusListener, createItemListener, createKeyListener, createListDataListener, createRenderer, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehavior, getDefaultSize, getDisplaySize, getInsets, getMaximumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installUI, isFocusTraversable, isNavigationKey, isPopupVisible, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureArrowButton, 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
 

Constructor Detail

TMetalComboBoxUI

public TMetalComboBoxUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

installListeners

protected void installListeners()
Description copied from class: javax.swing.plaf.basic.BasicComboBoxUI
Create and install the listeners for the combo box and its model. This method is called when the UI is installed.

Overrides:
installListeners in class BasicComboBoxUI

uninstallListeners

protected void uninstallListeners()
Description copied from class: javax.swing.plaf.basic.BasicComboBoxUI
Remove the installed listeners from the combo box and its model. The number and types of listeners removed and in this method should be the same that was added in installListeners

Overrides:
uninstallListeners in class BasicComboBoxUI

createPopup

protected ComboPopup createPopup()
Overridden to install special popup that recognizes FormComboBoxRenderer.

Overrides:
createPopup in class MetalComboBoxUI
Returns:
an instance of ComboPopup
See Also:
ComboPopup


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de