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.
- Author:
- Kirill Grouchnikov, Thomas Bierhance http://www.orbital-computer.de/JComboBox/, inostock
-
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 BasicComboBoxUI
BasicComboBoxUI.ComboBoxLayoutManager, BasicComboBoxUI.FocusHandler, BasicComboBoxUI.ItemHandler, BasicComboBoxUI.KeyHandler, BasicComboBoxUI.ListDataHandler, BasicComboBoxUI.PropertyChangeHandler -
Field Summary
Fields 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) 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 Rectangleprotected voidvoidvoidupdate(Graphics g, JComponent c) Methods 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
-
Constructor Details
-
RadianceComboBoxUI
-
-
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
-
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
-
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
-