public class SubstanceComboBoxUI
extends javax.swing.plaf.basic.BasicComboBoxUI
| Modifier and Type | Class and Description |
|---|---|
class |
SubstanceComboBoxUI.ComboBoxPropertyChangeHandler
This property change handler changes combo box arrow icon based on the
enabled status of the combo box.
|
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| Modifier and Type | Field and Description |
|---|---|
protected SubstanceComboBoxUI.ComboBoxPropertyChangeHandler |
substanceChangeHandler
Property change handler on
enabled property,
componentOrientation property and on
SubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION property. |
protected org.jvnet.lafwidget.animation.FadeStateListener |
substanceFadeStateListener
Listener for fade animations.
|
protected java.awt.event.FocusListener |
substanceFocusListener
Focus listener on the combobox.
|
arrowButton, cachedMinimumSize, comboBox, currentValuePane, editor, focusListener, hasFocus, isMinimumSizeDirty, itemListener, keyListener, listBox, listDataListener, padding, popup, popupKeyListener, popupMouseListener, popupMouseMotionListener, propertyChangeListener, squareButton| Constructor and Description |
|---|
SubstanceComboBoxUI() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureArrowButton() |
protected void |
configureArrowButtonStraightSide()
Configures the straight side of the arrow button.
|
protected void |
configureEditor() |
protected javax.swing.JButton |
createArrowButton() |
protected javax.swing.ComboBoxEditor |
createEditor() |
protected java.awt.LayoutManager |
createLayoutManager() |
protected javax.swing.plaf.basic.ComboPopup |
createPopup() |
protected javax.swing.ListCellRenderer |
createRenderer() |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent comp) |
protected java.awt.Dimension |
getDefaultSize() |
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c) |
javax.swing.plaf.basic.ComboPopup |
getPopup()
Returns the popup of the associated combobox.
|
protected void |
installDefaults() |
protected void |
installListeners() |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
void |
paintCurrentValue(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus) |
void |
paintCurrentValueBackground(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus) |
protected void |
paintFocus(java.awt.Graphics g,
java.awt.Rectangle bounds)
Paints the focus indication.
|
void |
unconfigureArrowButton() |
protected void |
uninstallListeners() |
addEditor, createFocusListener, createItemListener, createKeyListener, createListDataListener, createPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getDisplaySize, getInsets, getMaximumSize, getPreferredSize, getSizeForComponent, installComponents, installKeyboardActions, installUI, isFocusTraversable, isNavigationKey, isPopupVisible, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureEditor, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUIprotected SubstanceComboBoxUI.ComboBoxPropertyChangeHandler substanceChangeHandler
enabled property,
componentOrientation property and on
SubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION property.protected org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener
protected java.awt.event.FocusListener substanceFocusListener
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
protected javax.swing.JButton createArrowButton()
createArrowButton in class javax.swing.plaf.basic.BasicComboBoxUIprotected javax.swing.ListCellRenderer createRenderer()
createRenderer in class javax.swing.plaf.basic.BasicComboBoxUIprotected void installListeners()
installListeners in class javax.swing.plaf.basic.BasicComboBoxUIprotected void uninstallListeners()
uninstallListeners in class javax.swing.plaf.basic.BasicComboBoxUIprotected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicComboBoxUIprotected java.awt.LayoutManager createLayoutManager()
createLayoutManager in class javax.swing.plaf.basic.BasicComboBoxUIprotected java.awt.Dimension getDefaultSize()
getDefaultSize in class javax.swing.plaf.basic.BasicComboBoxUIpublic java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize in class javax.swing.plaf.basic.BasicComboBoxUIprotected javax.swing.plaf.basic.ComboPopup createPopup()
createPopup in class javax.swing.plaf.basic.BasicComboBoxUIpublic void paintCurrentValueBackground(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
paintCurrentValueBackground in class javax.swing.plaf.basic.BasicComboBoxUIpublic void paintCurrentValue(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
paintCurrentValue in class javax.swing.plaf.basic.BasicComboBoxUIpublic void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicComboBoxUIprotected void paintFocus(java.awt.Graphics g,
java.awt.Rectangle bounds)
g - Graphics.bounds - Bounds for text.public javax.swing.plaf.basic.ComboPopup getPopup()
public void configureArrowButton()
configureArrowButton in class javax.swing.plaf.basic.BasicComboBoxUIprotected void configureArrowButtonStraightSide()
public void unconfigureArrowButton()
unconfigureArrowButton in class javax.swing.plaf.basic.BasicComboBoxUIprotected void configureEditor()
configureEditor in class javax.swing.plaf.basic.BasicComboBoxUIprotected javax.swing.ComboBoxEditor createEditor()
createEditor in class javax.swing.plaf.basic.BasicComboBoxUI