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 TypeClassDescriptionclassThis 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 ComboBoxBackgroundDelegatePainting delegate.protected Insetsprotected StateTransitionTrackerProperty change handler onenabledproperty,componentOrientationproperty and onSubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATIONproperty.protected RolloverTextControlListenerListener for transition animations.protected ButtonModelSurrogate button model for tracking the state transitions.protected IconFields 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 TypeMethodDescriptionvoidprotected voidConfigures the straight side of the arrow button.protected voidprotected JButtonprotected ComboBoxEditorprotected LayoutManagerprotected ComboPopupprotected ListCellRendererstatic ComponentUIcreateUI(JComponent comp) protected DimensiongetPopup()Returns the popup of the associated combobox.Returns the model for tracking the transitions.protected voidprotected voidvoidbooleanisInside(MouseEvent me) Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.voidpaint(Graphics g, JComponent c) protected voidpaintFocus(Graphics g, Rectangle bounds) Paints the focus indication.protected Rectanglevoidprotected voidvoidMethods 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, uninstallKeyboardActionsMethods inherited from class javax.swing.plaf.ComponentUI
contains, update
-
Field Details
-
substanceChangeHandler
Property change handler onenabledproperty,componentOrientationproperty and onSubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATIONproperty. -
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:
installUIin classBasicComboBoxUI
-
uninstallUI
- Overrides:
uninstallUIin classBasicComboBoxUI
-
createArrowButton
- Overrides:
createArrowButtonin classBasicComboBoxUI
-
createRenderer
- Overrides:
createRendererin classBasicComboBoxUI
-
installListeners
protected void installListeners()- Overrides:
installListenersin classBasicComboBoxUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classBasicComboBoxUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicComboBoxUI
-
createLayoutManager
- Overrides:
createLayoutManagerin classBasicComboBoxUI
-
rectangleForCurrentValue
- Overrides:
rectangleForCurrentValuein classBasicComboBoxUI
-
getDefaultSize
- Overrides:
getDefaultSizein classBasicComboBoxUI
-
getMinimumSize
- Overrides:
getMinimumSizein classBasicComboBoxUI
-
createPopup
- Overrides:
createPopupin classBasicComboBoxUI
-
paint
- Overrides:
paintin 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:
configureArrowButtonin classBasicComboBoxUI
-
configureArrowButtonStraightSide
protected void configureArrowButtonStraightSide()Configures the straight side of the arrow button. -
unconfigureArrowButton
public void unconfigureArrowButton()- Overrides:
unconfigureArrowButtonin classBasicComboBoxUI
-
configureEditor
protected void configureEditor()- Overrides:
configureEditorin classBasicComboBoxUI
-
createEditor
- Overrides:
createEditorin classBasicComboBoxUI
-
getTransitionTracker
Description copied from interface:TransitionAwareUIReturns the model for tracking the transitions.- Specified by:
getTransitionTrackerin interfaceTransitionAwareUI- Returns:
- Model for tracking the transitions.
-
isInside
Description copied from interface:TransitionAwareUIChecks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.- Specified by:
isInsidein interfaceTransitionAwareUI- Parameters:
me- Mouse event.- Returns:
trueif the mouse position of the specified event lies inside the area of the component designated for transition effects,falseotherwise.
-