public class SubstanceComboBoxUI extends javax.swing.plaf.basic.BasicComboBoxUI implements TransitionAwareUI
| 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 ComboBoxBackgroundDelegate |
delegate
Painting delegate.
|
protected java.awt.Insets |
layoutInsets |
protected StateTransitionTracker |
stateTransitionTracker |
protected SubstanceComboBoxUI.ComboBoxPropertyChangeHandler |
substanceChangeHandler
Property change handler on
enabled property,
componentOrientation property and on
SubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION property. |
protected RolloverTextControlListener |
substanceRolloverListener
Listener for transition animations.
|
protected javax.swing.ButtonModel |
transitionModel
Surrogate button model for tracking the state transitions.
|
protected javax.swing.Icon |
uneditableArrowIcon |
arrowButton, cachedMinimumSize, comboBox, currentValuePane, editor, focusListener, hasFocus, isMinimumSizeDirty, itemListener, keyListener, listBox, listDataListener, padding, popup, popupKeyListener, popupMouseListener, popupMouseMotionListener, propertyChangeListener, squareButton| Constructor and Description |
|---|
SubstanceComboBoxUI(javax.swing.JComboBox combo) |
| 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.
|
StateTransitionTracker |
getTransitionTracker()
Returns the model for tracking the transitions.
|
protected void |
installDefaults() |
protected void |
installListeners() |
void |
installUI(javax.swing.JComponent c) |
boolean |
isInside(java.awt.event.MouseEvent me)
Checks whether the mouse position of the specified event lies inside the
area of the component designated for transition effects.
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
protected void |
paintFocus(java.awt.Graphics g,
java.awt.Rectangle bounds)
Paints the focus indication.
|
protected java.awt.Rectangle |
rectangleForCurrentValue() |
void |
unconfigureArrowButton() |
protected void |
uninstallListeners() |
void |
uninstallUI(javax.swing.JComponent c) |
addEditor, createFocusListener, createItemListener, createKeyListener, createListDataListener, createPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getDisplaySize, getInsets, getMaximumSize, getPreferredSize, getSizeForComponent, installComponents, installKeyboardActions, isFocusTraversable, isNavigationKey, isPopupVisible, paintCurrentValue, paintCurrentValueBackground, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureEditor, uninstallComponents, uninstallDefaults, uninstallKeyboardActionsprotected SubstanceComboBoxUI.ComboBoxPropertyChangeHandler substanceChangeHandler
enabled property,
componentOrientation property and on
SubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION property.protected StateTransitionTracker stateTransitionTracker
protected javax.swing.ButtonModel transitionModel
protected RolloverTextControlListener substanceRolloverListener
protected ComboBoxBackgroundDelegate delegate
protected javax.swing.Icon uneditableArrowIcon
protected java.awt.Insets layoutInsets
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicComboBoxUIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicComboBoxUIprotected 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.Rectangle rectangleForCurrentValue()
rectangleForCurrentValue 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 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.BasicComboBoxUIpublic StateTransitionTracker getTransitionTracker()
TransitionAwareUIgetTransitionTracker in interface TransitionAwareUIpublic boolean isInside(java.awt.event.MouseEvent me)
TransitionAwareUIisInside in interface TransitionAwareUIme - Mouse event.true if the mouse position of the specified event
lies inside the area of the component designated for transition
effects, false otherwise.