Class SubstanceComboBoxUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ComboBoxUI
javax.swing.plaf.basic.BasicComboBoxUI
org.pushingpixels.substance.internal.ui.SubstanceComboBoxUI
- All Implemented Interfaces:
TransitionAwareUI
UI for combo boxes in Substance look and feel.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
This property change handler changes combo box arrow icon based on the enabled status of the combo box.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
FieldsModifier and TypeFieldDescriptionprotected ComboBoxBackgroundDelegate
Painting delegate.protected Insets
protected StateTransitionTracker
Property change handler onenabled
property,componentOrientation
property and onSubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION
property.protected RolloverTextControlListener
Listener for transition animations.protected ButtonModel
Surrogate button model for tracking the state transitions.protected Icon
Fields inherited from class javax.swing.plaf.basic.BasicComboBoxUI
arrowButton, cachedMinimumSize, comboBox, currentValuePane, editor, focusListener, hasFocus, isMinimumSizeDirty, itemListener, keyListener, listBox, listDataListener, padding, popup, popupKeyListener, popupMouseListener, popupMouseMotionListener, propertyChangeListener, squareButton
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
Configures the straight side of the arrow button.protected void
protected JButton
protected ComboBoxEditor
protected LayoutManager
protected ComboPopup
protected ListCellRenderer
static ComponentUI
createUI
(JComponent comp) protected Dimension
getPopup()
Returns the popup of the associated combobox.Returns the model for tracking the transitions.protected void
protected void
void
boolean
isInside
(MouseEvent me) Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.void
paint
(Graphics g, JComponent c) protected void
paintFocus
(Graphics g, Rectangle bounds) Paints the focus indication.protected Rectangle
void
protected void
void
Methods inherited from class javax.swing.plaf.basic.BasicComboBoxUI
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, uninstallKeyboardActions
Methods inherited from class javax.swing.plaf.ComponentUI
contains, update
-
Field Details
-
substanceChangeHandler
Property change handler onenabled
property,componentOrientation
property and onSubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION
property. -
stateTransitionTracker
-
transitionModel
Surrogate button model for tracking the state transitions. -
substanceRolloverListener
Listener for transition animations. -
delegate
Painting delegate. -
uneditableArrowIcon
-
layoutInsets
-
-
Constructor Details
-
SubstanceComboBoxUI
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUI
in classBasicComboBoxUI
-
uninstallUI
- Overrides:
uninstallUI
in classBasicComboBoxUI
-
createArrowButton
- Overrides:
createArrowButton
in classBasicComboBoxUI
-
createRenderer
- Overrides:
createRenderer
in classBasicComboBoxUI
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classBasicComboBoxUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListeners
in classBasicComboBoxUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classBasicComboBoxUI
-
createLayoutManager
- Overrides:
createLayoutManager
in classBasicComboBoxUI
-
rectangleForCurrentValue
- Overrides:
rectangleForCurrentValue
in classBasicComboBoxUI
-
getDefaultSize
- Overrides:
getDefaultSize
in classBasicComboBoxUI
-
getMinimumSize
- Overrides:
getMinimumSize
in classBasicComboBoxUI
-
createPopup
- Overrides:
createPopup
in classBasicComboBoxUI
-
paint
- Overrides:
paint
in classBasicComboBoxUI
-
paintFocus
Paints the focus indication.- Parameters:
g
- Graphics.bounds
- Bounds for text.
-
getPopup
Returns the popup of the associated combobox.- Returns:
- The popup of the associated combobox.
-
configureArrowButton
public void configureArrowButton()- Overrides:
configureArrowButton
in classBasicComboBoxUI
-
configureArrowButtonStraightSide
protected void configureArrowButtonStraightSide()Configures the straight side of the arrow button. -
unconfigureArrowButton
public void unconfigureArrowButton()- Overrides:
unconfigureArrowButton
in classBasicComboBoxUI
-
configureEditor
protected void configureEditor()- Overrides:
configureEditor
in classBasicComboBoxUI
-
createEditor
- Overrides:
createEditor
in classBasicComboBoxUI
-
getTransitionTracker
Description copied from interface:TransitionAwareUI
Returns the model for tracking the transitions.- Specified by:
getTransitionTracker
in interfaceTransitionAwareUI
- Returns:
- Model for tracking the transitions.
-
isInside
Description copied from interface:TransitionAwareUI
Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.- Specified by:
isInside
in interfaceTransitionAwareUI
- Parameters:
me
- Mouse event.- Returns:
true
if the mouse position of the specified event lies inside the area of the component designated for transition effects,false
otherwise.
-