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 TypeClassDescriptionclass
This property change handler changes combo box arrow icon based on the enabled status of the combo box.private class
Layout manager for 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 TypeFieldDescriptionprivate ComboBoxBackgroundDelegate
Painting delegate.private Insets
Property change handler.private RolloverTextControlListener
Listener for transition animations.private StateTransitionTracker
private ButtonModel
Surrogate button model for tracking the state transitions.private 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
protected JButton
protected ComboBoxEditor
protected LayoutManager
protected ComboPopup
protected ListCellRenderer
<Object> static ComponentUI
createUI
(JComponent comp) private Icon
getCurrentIcon
(JButton button) Returns the icon for the specified arrow button.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) private void
paintFocus
(Graphics g, Rectangle bounds) Paints the focus indication.protected Rectangle
protected void
void
void
update
(Graphics g, JComponent c) private void
Methods inherited from class javax.swing.plaf.basic.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, uninstallKeyboardActions
Methods inherited from class javax.swing.plaf.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:
installUI
in classBasicComboBoxUI
-
uninstallUI
- Overrides:
uninstallUI
in classBasicComboBoxUI
-
createArrowButton
- Overrides:
createArrowButton
in classBasicComboBoxUI
-
getCurrentIcon
Returns the icon for the specified arrow button.- Parameters:
button
- Arrow button.- Returns:
- Icon for the specified button.
-
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
-
configureEditor
protected void configureEditor()- Overrides:
configureEditor
in classBasicComboBoxUI
-
createEditor
- Overrides:
createEditor
in classBasicComboBoxUI
-
updateComboBoxBorder
private void updateComboBoxBorder() -
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.
-
update
- Overrides:
update
in classComponentUI
-
getPreferredSize
- Overrides:
getPreferredSize
in classBasicComboBoxUI
-