Class RadianceComboBoxUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ComboBoxUI
javax.swing.plaf.basic.BasicComboBoxUI
org.pushingpixels.radiance.theming.internal.ui.RadianceComboBoxUI
- All Implemented Interfaces:
TransitionAwareUI
UI for combo boxes in Radiance 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.private classLayout manager for combo box.Nested classes/interfaces inherited from class BasicComboBoxUI
BasicComboBoxUI.ComboBoxLayoutManager, BasicComboBoxUI.FocusHandler, BasicComboBoxUI.ItemHandler, BasicComboBoxUI.KeyHandler, BasicComboBoxUI.ListDataHandler, BasicComboBoxUI.PropertyChangeHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ComboBoxBackgroundDelegatePainting delegate.private InsetsProperty change handler.private RolloverTextControlListenerListener for transition animations.private StateTransitionTrackerprivate ButtonModelSurrogate button model for tracking the state transitions.private IconFields inherited from class 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 voidprotected JButtonprotected ComboBoxEditorprotected LayoutManagerprotected ComboPopupprotected ListCellRenderer<Object> static ComponentUIcreateUI(JComponent comp) private IcongetCurrentIcon(JButton button) Returns the icon for the specified arrow button.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) private voidpaintFocus(Graphics g, Rectangle bounds) Paints the focus indication.protected Rectangleprotected voidvoidvoidupdate(Graphics g, JComponent c) private voidMethods inherited from class BasicComboBoxUI
addEditor, createFocusListener, createItemListener, createKeyListener, createListDataListener, createPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getDisplaySize, getInsets, getMaximumSize, getSizeForComponent, installComponents, installKeyboardActions, isFocusTraversable, isNavigationKey, isPopupVisible, paintCurrentValue, paintCurrentValueBackground, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureArrowButton, unconfigureEditor, uninstallComponents, uninstallDefaults, uninstallKeyboardActionsMethods inherited from class ComponentUI
contains
-
Field Details
-
radianceChangeHandler
Property change handler. -
stateTransitionTracker
-
transitionModel
Surrogate button model for tracking the state transitions. -
radianceRolloverListener
Listener for transition animations. -
delegate
Painting delegate. -
uneditableArrowIcon
-
layoutInsets
-
-
Constructor Details
-
RadianceComboBoxUI
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUIin classBasicComboBoxUI
-
uninstallUI
- Overrides:
uninstallUIin classBasicComboBoxUI
-
createArrowButton
- Overrides:
createArrowButtonin classBasicComboBoxUI
-
getCurrentIcon
-
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
-
getPopup
Returns the popup of the associated combobox.- Returns:
- The popup of the associated combobox.
-
configureArrowButton
public void configureArrowButton()- Overrides:
configureArrowButtonin classBasicComboBoxUI
-
configureEditor
protected void configureEditor()- Overrides:
configureEditorin classBasicComboBoxUI
-
createEditor
- Overrides:
createEditorin classBasicComboBoxUI
-
updateComboBoxBorder
private void updateComboBoxBorder() -
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.
-
update
- Overrides:
updatein classComponentUI
-
getPreferredSize
- Overrides:
getPreferredSizein classBasicComboBoxUI
-