|
|||||||||
| 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.jvnet.substance.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 SubstanceComboBoxUI.ComboBoxPropertyChangeHandler |
substanceChangeHandler
Property change handler on enabled property,
componentOrientation property and on
SubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION property. |
protected org.jvnet.lafwidget.animation.FadeStateListener |
substanceFadeStateListener
Listener for fade animations. |
protected java.awt.event.FocusListener |
substanceFocusListener
Focus listener on the combobox. |
| 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()
|
|
| 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 b)
|
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. |
protected void |
installDefaults()
|
protected void |
installListeners()
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
void |
paintCurrentValue(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
|
void |
paintCurrentValueBackground(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
|
protected void |
paintFocus(java.awt.Graphics g,
java.awt.Rectangle bounds)
Paints the focus indication. |
void |
unconfigureArrowButton()
|
protected void |
uninstallListeners()
|
void |
update(java.awt.Graphics g,
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, installUI, isFocusTraversable, isNavigationKey, isPopupVisible, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureEditor, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains |
| 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 org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener
protected java.awt.event.FocusListener substanceFocusListener
| Constructor Detail |
|---|
public SubstanceComboBoxUI()
| Method Detail |
|---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
protected 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.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 paintCurrentValueBackground(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
paintCurrentValueBackground in class javax.swing.plaf.basic.BasicComboBoxUI
public void paintCurrentValue(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
paintCurrentValue 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 update(java.awt.Graphics g,
javax.swing.JComponent c)
update in class javax.swing.plaf.ComponentUIpublic 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.BasicComboBoxUI
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||