|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ComboBoxUI
javax.swing.plaf.basic.BasicComboBoxUI
org.pushingpixels.substance.internal.ui.SubstanceComboBoxUI
public class SubstanceComboBoxUI
UI for combo boxes in Substance look and feel.
| Nested Class Summary | |
|---|---|
class |
SubstanceComboBoxUI.ComboBoxPropertyChangeHandler
This property change handler changes combo box arrow icon based on the enabled status of the combo box. |
| Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicComboBoxUI |
|---|
javax.swing.plaf.basic.BasicComboBoxUI.ComboBoxLayoutManager, javax.swing.plaf.basic.BasicComboBoxUI.FocusHandler, javax.swing.plaf.basic.BasicComboBoxUI.ItemHandler, javax.swing.plaf.basic.BasicComboBoxUI.KeyHandler, javax.swing.plaf.basic.BasicComboBoxUI.ListDataHandler, javax.swing.plaf.basic.BasicComboBoxUI.PropertyChangeHandler |
| Field Summary | |
|---|---|
protected StateTransitionTracker |
stateTransitionTracker
|
protected SubstanceComboBoxUI.ComboBoxPropertyChangeHandler |
substanceChangeHandler
Property change handler on enabled property,
componentOrientation property and on
SubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION property. |
| Fields inherited from class javax.swing.plaf.basic.BasicComboBoxUI |
|---|
arrowButton, cachedMinimumSize, comboBox, currentValuePane, editor, focusListener, hasFocus, isMinimumSizeDirty, itemListener, keyListener, listBox, listDataListener, popup, popupKeyListener, popupMouseListener, popupMouseMotionListener, propertyChangeListener |
| Constructor Summary | |
|---|---|
SubstanceComboBoxUI(javax.swing.JComboBox combo)
|
|
| Method Summary | |
|---|---|
void |
configureArrowButton()
|
protected void |
configureArrowButtonStraightSide()
Configures the straight side of the arrow button. |
protected void |
configureEditor()
|
protected javax.swing.JButton |
createArrowButton()
|
protected javax.swing.ComboBoxEditor |
createEditor()
|
protected java.awt.LayoutManager |
createLayoutManager()
|
protected javax.swing.plaf.basic.ComboPopup |
createPopup()
|
protected javax.swing.ListCellRenderer |
createRenderer()
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent comp)
|
protected java.awt.Dimension |
getDefaultSize()
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
|
javax.swing.plaf.basic.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(javax.swing.JComponent c)
|
boolean |
isInside(java.awt.event.MouseEvent me)
Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
protected void |
paintFocus(java.awt.Graphics g,
java.awt.Rectangle bounds)
Paints the focus indication. |
protected java.awt.Rectangle |
rectangleForCurrentValue()
|
void |
unconfigureArrowButton()
|
protected void |
uninstallListeners()
|
void |
uninstallUI(javax.swing.JComponent c)
|
| Methods inherited from class javax.swing.plaf.basic.BasicComboBoxUI |
|---|
addEditor, createFocusListener, createItemListener, createKeyListener, createListDataListener, createPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getDisplaySize, getInsets, getMaximumSize, getPreferredSize, installComponents, installKeyboardActions, isFocusTraversable, isNavigationKey, isPopupVisible, paintCurrentValue, paintCurrentValueBackground, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureEditor, uninstallComponents, uninstallDefaults, uninstallKeyboardActions |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SubstanceComboBoxUI.ComboBoxPropertyChangeHandler substanceChangeHandler
enabled property,
componentOrientation property and on
SubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION property.
protected StateTransitionTracker stateTransitionTracker
| Constructor Detail |
|---|
public SubstanceComboBoxUI(javax.swing.JComboBox combo)
| Method Detail |
|---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicComboBoxUIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicComboBoxUIprotected javax.swing.JButton createArrowButton()
createArrowButton in class javax.swing.plaf.basic.BasicComboBoxUIprotected javax.swing.ListCellRenderer createRenderer()
createRenderer in class javax.swing.plaf.basic.BasicComboBoxUIprotected void installListeners()
installListeners in class javax.swing.plaf.basic.BasicComboBoxUIprotected void uninstallListeners()
uninstallListeners in class javax.swing.plaf.basic.BasicComboBoxUIprotected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicComboBoxUIprotected java.awt.LayoutManager createLayoutManager()
createLayoutManager in class javax.swing.plaf.basic.BasicComboBoxUIprotected java.awt.Rectangle rectangleForCurrentValue()
rectangleForCurrentValue in class javax.swing.plaf.basic.BasicComboBoxUIprotected java.awt.Dimension getDefaultSize()
getDefaultSize in class javax.swing.plaf.basic.BasicComboBoxUIpublic java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize in class javax.swing.plaf.basic.BasicComboBoxUIprotected javax.swing.plaf.basic.ComboPopup createPopup()
createPopup in class javax.swing.plaf.basic.BasicComboBoxUI
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicComboBoxUI
protected void paintFocus(java.awt.Graphics g,
java.awt.Rectangle bounds)
g - Graphics.bounds - Bounds for text.public javax.swing.plaf.basic.ComboPopup getPopup()
public void configureArrowButton()
configureArrowButton in class javax.swing.plaf.basic.BasicComboBoxUIprotected void configureArrowButtonStraightSide()
public void unconfigureArrowButton()
unconfigureArrowButton in class javax.swing.plaf.basic.BasicComboBoxUIprotected void configureEditor()
configureEditor in class javax.swing.plaf.basic.BasicComboBoxUIprotected javax.swing.ComboBoxEditor createEditor()
createEditor in class javax.swing.plaf.basic.BasicComboBoxUIpublic StateTransitionTracker getTransitionTracker()
TransitionAwareUI
getTransitionTracker in interface TransitionAwareUIpublic boolean isInside(java.awt.event.MouseEvent me)
TransitionAwareUI
isInside 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||