TransitionAwareUIpublic class SubstanceComboBoxUI extends BasicComboBoxUI implements TransitionAwareUI
| Modifier and Type | Class | Description |
|---|---|---|
class |
SubstanceComboBoxUI.ComboBoxPropertyChangeHandler |
This property change handler changes combo box arrow icon based on the
enabled status of the combo box.
|
BasicComboBoxUI.ComboBoxLayoutManager, BasicComboBoxUI.FocusHandler, BasicComboBoxUI.ItemHandler, BasicComboBoxUI.KeyHandler, BasicComboBoxUI.ListDataHandler, BasicComboBoxUI.PropertyChangeHandler| Modifier and Type | Field | Description |
|---|---|---|
protected ComboBoxBackgroundDelegate |
delegate |
Painting delegate.
|
protected Insets |
layoutInsets |
|
protected StateTransitionTracker |
stateTransitionTracker |
|
protected SubstanceComboBoxUI.ComboBoxPropertyChangeHandler |
substanceChangeHandler |
Property change handler on
enabled property,
componentOrientation property and on
SubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION property. |
protected RolloverTextControlListener |
substanceRolloverListener |
Listener for transition animations.
|
protected ButtonModel |
transitionModel |
Surrogate button model for tracking the state transitions.
|
protected Icon |
uneditableArrowIcon |
arrowButton, cachedMinimumSize, comboBox, currentValuePane, editor, focusListener, hasFocus, isMinimumSizeDirty, itemListener, keyListener, listBox, listDataListener, padding, popup, popupKeyListener, popupMouseListener, popupMouseMotionListener, propertyChangeListener, squareButton| Constructor | Description |
|---|---|
SubstanceComboBoxUI(JComboBox combo) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
configureArrowButton() |
|
protected void |
configureArrowButtonStraightSide() |
Configures the straight side of the arrow button.
|
protected void |
configureEditor() |
|
protected JButton |
createArrowButton() |
|
protected ComboBoxEditor |
createEditor() |
|
protected LayoutManager |
createLayoutManager() |
|
protected ComboPopup |
createPopup() |
|
protected ListCellRenderer |
createRenderer() |
|
static ComponentUI |
createUI(JComponent comp) |
|
protected Dimension |
getDefaultSize() |
|
Dimension |
getMinimumSize(JComponent c) |
|
ComboPopup |
getPopup() |
Returns the popup of the associated combobox.
|
StateTransitionTracker |
getTransitionTracker() |
Returns the model for tracking the transitions.
|
protected void |
installDefaults() |
|
protected void |
installListeners() |
|
void |
installUI(JComponent c) |
|
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 |
rectangleForCurrentValue() |
|
void |
unconfigureArrowButton() |
|
protected void |
uninstallListeners() |
|
void |
uninstallUI(JComponent c) |
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, uninstallKeyboardActionscontains, updateprotected SubstanceComboBoxUI.ComboBoxPropertyChangeHandler substanceChangeHandler
enabled property,
componentOrientation property and on
SubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION property.protected StateTransitionTracker stateTransitionTracker
protected ButtonModel transitionModel
protected RolloverTextControlListener substanceRolloverListener
protected ComboBoxBackgroundDelegate delegate
protected Icon uneditableArrowIcon
protected Insets layoutInsets
public SubstanceComboBoxUI(JComboBox combo)
public static ComponentUI createUI(JComponent comp)
public void installUI(JComponent c)
installUI in class BasicComboBoxUIpublic void uninstallUI(JComponent c)
uninstallUI in class BasicComboBoxUIprotected JButton createArrowButton()
createArrowButton in class BasicComboBoxUIprotected ListCellRenderer createRenderer()
createRenderer in class BasicComboBoxUIprotected void installListeners()
installListeners in class BasicComboBoxUIprotected void uninstallListeners()
uninstallListeners in class BasicComboBoxUIprotected void installDefaults()
installDefaults in class BasicComboBoxUIprotected LayoutManager createLayoutManager()
createLayoutManager in class BasicComboBoxUIprotected Rectangle rectangleForCurrentValue()
rectangleForCurrentValue in class BasicComboBoxUIprotected Dimension getDefaultSize()
getDefaultSize in class BasicComboBoxUIpublic Dimension getMinimumSize(JComponent c)
getMinimumSize in class BasicComboBoxUIprotected ComboPopup createPopup()
createPopup in class BasicComboBoxUIpublic void paint(Graphics g, JComponent c)
paint in class BasicComboBoxUIprotected void paintFocus(Graphics g, Rectangle bounds)
g - Graphics.bounds - Bounds for text.public ComboPopup getPopup()
public void configureArrowButton()
configureArrowButton in class BasicComboBoxUIprotected void configureArrowButtonStraightSide()
public void unconfigureArrowButton()
unconfigureArrowButton in class BasicComboBoxUIprotected void configureEditor()
configureEditor in class BasicComboBoxUIprotected ComboBoxEditor createEditor()
createEditor in class BasicComboBoxUIpublic StateTransitionTracker getTransitionTracker()
TransitionAwareUIgetTransitionTracker in interface TransitionAwareUIpublic boolean isInside(MouseEvent me)
TransitionAwareUIisInside in interface TransitionAwareUIme - Mouse event.true if the mouse position of the specified event
lies inside the area of the component designated for transition
effects, false otherwise.