TransitionAwareUI
public 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, uninstallKeyboardActions
contains, update
protected 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 BasicComboBoxUI
public void uninstallUI(JComponent c)
uninstallUI
in class BasicComboBoxUI
protected JButton createArrowButton()
createArrowButton
in class BasicComboBoxUI
protected ListCellRenderer createRenderer()
createRenderer
in class BasicComboBoxUI
protected void installListeners()
installListeners
in class BasicComboBoxUI
protected void uninstallListeners()
uninstallListeners
in class BasicComboBoxUI
protected void installDefaults()
installDefaults
in class BasicComboBoxUI
protected LayoutManager createLayoutManager()
createLayoutManager
in class BasicComboBoxUI
protected Rectangle rectangleForCurrentValue()
rectangleForCurrentValue
in class BasicComboBoxUI
protected Dimension getDefaultSize()
getDefaultSize
in class BasicComboBoxUI
public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class BasicComboBoxUI
protected ComboPopup createPopup()
createPopup
in class BasicComboBoxUI
public void paint(Graphics g, JComponent c)
paint
in class BasicComboBoxUI
protected void paintFocus(Graphics g, Rectangle bounds)
g
- Graphics.bounds
- Bounds for text.public ComboPopup getPopup()
public void configureArrowButton()
configureArrowButton
in class BasicComboBoxUI
protected void configureArrowButtonStraightSide()
public void unconfigureArrowButton()
unconfigureArrowButton
in class BasicComboBoxUI
protected void configureEditor()
configureEditor
in class BasicComboBoxUI
protected ComboBoxEditor createEditor()
createEditor
in class BasicComboBoxUI
public StateTransitionTracker getTransitionTracker()
TransitionAwareUI
getTransitionTracker
in interface TransitionAwareUI
public boolean isInside(MouseEvent me)
TransitionAwareUI
isInside
in interface TransitionAwareUI
me
- Mouse event.true
if the mouse position of the specified event
lies inside the area of the component designated for transition
effects, false
otherwise.