de.muntjak.tinylookandfeel
Class TinyComboBoxUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ComboBoxUI
          extended by javax.swing.plaf.basic.BasicComboBoxUI
              extended by de.muntjak.tinylookandfeel.TinyComboBoxUI

public class TinyComboBoxUI
extends javax.swing.plaf.basic.BasicComboBoxUI

TinyComboBoxUI


Nested Class Summary
 class TinyComboBoxUI.TinyComboBoxLayoutManager
          This inner class is marked "public" due to a compiler bug.
 class TinyComboBoxUI.TinyPropertyChangeListener
          This inner class is marked "public" due to a compiler bug.
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicComboBoxUI
javax.swing.plaf.basic.BasicComboBoxUI.ComboBoxLayoutManager, javax.swing.plaf.basic.BasicComboBoxUI.FocusHandler, javax.swing.plaf.basic.BasicComboBoxUI.ItemHandler, javax.swing.plaf.basic.BasicComboBoxUI.KeyHandler, javax.swing.plaf.basic.BasicComboBoxUI.ListDataHandler, javax.swing.plaf.basic.BasicComboBoxUI.PropertyChangeHandler
 
Field Summary
protected  java.awt.Dimension cachedDisplaySize
           
protected  boolean isDisplaySizeDirty
           
 
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
TinyComboBoxUI()
           
 
Method Summary
protected  javax.swing.JButton createArrowButton()
           
protected  javax.swing.ComboBoxEditor createEditor()
           
protected  java.awt.LayoutManager createLayoutManager()
           
 java.beans.PropertyChangeListener createPropertyChangeListener()
           
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  void editablePropertyChanged(java.beans.PropertyChangeEvent e)
          Deprecated. As of Java 2 platform v1.4.
protected  java.awt.Dimension getDisplaySize()
          Copied from BasicComboBoxUI, because isDisplaySizeDirty was declared private!?
 java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
           
protected  void installComponents()
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
protected  java.awt.Rectangle rectangleForCurrentValue2()
           
protected  void removeListeners()
          Deprecated. As of Java 2 platform v1.4.
 
Methods inherited from class javax.swing.plaf.basic.BasicComboBoxUI
addEditor, configureArrowButton, configureEditor, createFocusListener, createItemListener, createKeyListener, createListDataListener, createPopup, createRenderer, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getDefaultSize, getInsets, getMaximumSize, getPreferredSize, installDefaults, installKeyboardActions, installListeners, installUI, isFocusTraversable, isNavigationKey, isPopupVisible, paintCurrentValue, paintCurrentValueBackground, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureArrowButton, unconfigureEditor, 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
 

Field Detail

isDisplaySizeDirty

protected boolean isDisplaySizeDirty

cachedDisplaySize

protected java.awt.Dimension cachedDisplaySize
Constructor Detail

TinyComboBoxUI

public TinyComboBoxUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.basic.BasicComboBoxUI

createEditor

protected javax.swing.ComboBoxEditor createEditor()
Overrides:
createEditor in class javax.swing.plaf.basic.BasicComboBoxUI

createArrowButton

protected javax.swing.JButton createArrowButton()
Overrides:
createArrowButton in class javax.swing.plaf.basic.BasicComboBoxUI

installComponents

protected void installComponents()
Overrides:
installComponents in class javax.swing.plaf.basic.BasicComboBoxUI

createPropertyChangeListener

public java.beans.PropertyChangeListener createPropertyChangeListener()
Overrides:
createPropertyChangeListener in class javax.swing.plaf.basic.BasicComboBoxUI

editablePropertyChanged

protected void editablePropertyChanged(java.beans.PropertyChangeEvent e)
Deprecated. As of Java 2 platform v1.4.

As of Java 2 platform v1.4 this method is no longer used. Do not call or override. All the functionality of this method is in the MetalPropertyChangeListener.


createLayoutManager

protected java.awt.LayoutManager createLayoutManager()
Overrides:
createLayoutManager in class javax.swing.plaf.basic.BasicComboBoxUI

rectangleForCurrentValue2

protected java.awt.Rectangle rectangleForCurrentValue2()

removeListeners

protected void removeListeners()
Deprecated. As of Java 2 platform v1.4.

As of Java 2 platform v1.4 this method is no longer used.


getMinimumSize

public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
Overrides:
getMinimumSize in class javax.swing.plaf.basic.BasicComboBoxUI
Parameters:
c - the combo box

getDisplaySize

protected java.awt.Dimension getDisplaySize()
Copied from BasicComboBoxUI, because isDisplaySizeDirty was declared private!? Returns the calculated size of the display area. The display area is the portion of the combo box in which the selected item is displayed. This method will use the prototype display value if it has been set.

For combo boxes with a non trivial number of items, it is recommended to use a prototype display value to significantly speed up the display size calculation.

Overrides:
getDisplaySize in class javax.swing.plaf.basic.BasicComboBoxUI
Returns:
the size of the display area calculated from the combo box items
See Also:
JComboBox.setPrototypeDisplayValue(java.lang.Object)