org.jvnet.substance
Class SubstanceComboBoxUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ComboBoxUI
javax.swing.plaf.basic.BasicComboBoxUI
org.jvnet.substance.SubstanceComboBoxUI
public class SubstanceComboBoxUI
- extends javax.swing.plaf.basic.BasicComboBoxUI
UI for combo boxes in Substance look and feel.
- Author:
- Kirill Grouchnikov, Thomas Bierhance http://www.orbital-computer.de/JComboBox/, inostock
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 |
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 |
Methods inherited from class javax.swing.plaf.basic.BasicComboBoxUI |
addEditor, createFocusListener, createItemListener, createKeyListener, createListDataListener, createPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getDisplaySize, getInsets, getMaximumSize, getPreferredSize, installComponents, installKeyboardActions, installUI, isFocusTraversable, isNavigationKey, isPopupVisible, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureEditor, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI |
Methods inherited from class javax.swing.plaf.ComponentUI |
contains |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
substanceChangeHandler
protected SubstanceComboBoxUI.ComboBoxPropertyChangeHandler substanceChangeHandler
- Property change handler on
enabled
property,
componentOrientation
property and on
SubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION
property.
substanceFadeStateListener
protected org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener
- Listener for fade animations.
substanceFocusListener
protected java.awt.event.FocusListener substanceFocusListener
- Focus listener on the combobox.
SubstanceComboBoxUI
public SubstanceComboBoxUI()
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
createArrowButton
protected javax.swing.JButton createArrowButton()
- Overrides:
createArrowButton
in class javax.swing.plaf.basic.BasicComboBoxUI
createRenderer
protected javax.swing.ListCellRenderer createRenderer()
- Overrides:
createRenderer
in class javax.swing.plaf.basic.BasicComboBoxUI
installListeners
protected void installListeners()
- Overrides:
installListeners
in class javax.swing.plaf.basic.BasicComboBoxUI
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListeners
in class javax.swing.plaf.basic.BasicComboBoxUI
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in class javax.swing.plaf.basic.BasicComboBoxUI
createLayoutManager
protected java.awt.LayoutManager createLayoutManager()
- Overrides:
createLayoutManager
in class javax.swing.plaf.basic.BasicComboBoxUI
getDefaultSize
protected java.awt.Dimension getDefaultSize()
- Overrides:
getDefaultSize
in class javax.swing.plaf.basic.BasicComboBoxUI
getMinimumSize
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
- Overrides:
getMinimumSize
in class javax.swing.plaf.basic.BasicComboBoxUI
createPopup
protected javax.swing.plaf.basic.ComboPopup createPopup()
- Overrides:
createPopup
in class javax.swing.plaf.basic.BasicComboBoxUI
paintCurrentValueBackground
public void paintCurrentValueBackground(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
- Overrides:
paintCurrentValueBackground
in class javax.swing.plaf.basic.BasicComboBoxUI
paintCurrentValue
public void paintCurrentValue(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
- Overrides:
paintCurrentValue
in class javax.swing.plaf.basic.BasicComboBoxUI
paint
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
- Overrides:
paint
in class javax.swing.plaf.basic.BasicComboBoxUI
paintFocus
protected void paintFocus(java.awt.Graphics g,
java.awt.Rectangle bounds)
- Paints the focus indication.
- Parameters:
g
- Graphics.bounds
- Bounds for text.
getPopup
public javax.swing.plaf.basic.ComboPopup getPopup()
- Returns the popup of the associated combobox.
- Returns:
- The popup of the associated combobox.
update
public void update(java.awt.Graphics g,
javax.swing.JComponent c)
- Overrides:
update
in class javax.swing.plaf.ComponentUI
configureArrowButton
public void configureArrowButton()
- Overrides:
configureArrowButton
in class javax.swing.plaf.basic.BasicComboBoxUI
unconfigureArrowButton
public void unconfigureArrowButton()
- Overrides:
unconfigureArrowButton
in class javax.swing.plaf.basic.BasicComboBoxUI
configureEditor
protected void configureEditor()
- Overrides:
configureEditor
in class javax.swing.plaf.basic.BasicComboBoxUI
createEditor
protected javax.swing.ComboBoxEditor createEditor()
- Overrides:
createEditor
in class javax.swing.plaf.basic.BasicComboBoxUI