public class BEComboBoxUI extends javax.swing.plaf.basic.BasicComboBoxUI implements BeautyEyeLNFHelper.__UseParentPaintSurported
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.PropertyChangeHandlerarrowButton, cachedMinimumSize, comboBox, currentValuePane, editor, focusListener, hasFocus, isMinimumSizeDirty, itemListener, keyListener, listBox, listDataListener, padding, popup, popupKeyListener, popupMouseListener, popupMouseMotionListener, propertyChangeListener, squareButton| 构造器和说明 |
|---|
BEComboBoxUI() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected javax.swing.JButton |
createArrowButton() |
protected javax.swing.ComboBoxEditor |
createEditor()
Creates the default editor that will be used in editable combo boxes.
|
protected javax.swing.plaf.basic.ComboPopup |
createPopup()
Creates the popup portion of the combo box.
|
protected javax.swing.ListCellRenderer |
createRenderer()
Creates the default renderer that will be used in a non-editiable combo
box.
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates the ui.
|
javax.swing.JComboBox |
getCombox()
Gets the combox.
|
java.awt.Insets |
getInsets() |
void |
installUI(javax.swing.JComponent c) |
boolean |
isUseParentPaint()
是否使用父类的绘制实现方法,true表示是.
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
void |
paintCurrentValueBackground(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
Paints the background of the currently selected item.
|
addEditor, configureArrowButton, configureEditor, createFocusListener, createItemListener, createKeyListener, createLayoutManager, createListDataListener, createPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getDefaultSize, getDisplaySize, getMaximumSize, getMinimumSize, getPreferredSize, getSizeForComponent, installComponents, installDefaults, installKeyboardActions, installListeners, isFocusTraversable, isNavigationKey, isPopupVisible, paintCurrentValue, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureArrowButton, unconfigureEditor, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIpublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - the cpublic boolean isUseParentPaint()
因为在BE LNF中,边框和背景等都是使用N9图,没法通过设置背景色和前景 色来控制JComboBox的颜色和边框,本方法的目的就是当用户设置了进度条的border或背景色 时告之本实现类不使用BE LNF中默认的N9图填充绘制而改用父类中的方法(父类中的方法 就可以支持颜色的设置罗,只是丑点,但总归是能适应用户的需求场景要求,其实用户完全可以 通过JComboBox.setUI(..)方式来自定义UI哦).
isUseParentPaint 在接口中 BeautyEyeLNFHelper.__UseParentPaintSurportedpublic void installUI(javax.swing.JComponent c)
installUI 在类中 javax.swing.plaf.basic.BasicComboBoxUIpublic javax.swing.JComboBox getCombox()
protected javax.swing.JButton createArrowButton()
createArrowButton 在类中 javax.swing.plaf.basic.BasicComboBoxUIpublic void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint 在类中 javax.swing.plaf.basic.BasicComboBoxUIpublic void paintCurrentValueBackground(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
paintCurrentValueBackground 在类中 javax.swing.plaf.basic.BasicComboBoxUIg - the gbounds - the boundshasFocus - the has focusprotected javax.swing.ListCellRenderer createRenderer()
setRenderer.createRenderer 在类中 javax.swing.plaf.basic.BasicComboBoxUIListCellRender used for the combo boxJComboBox.setRenderer(javax.swing.ListCellRenderer<? super E>)public java.awt.Insets getInsets()
getInsets 在类中 javax.swing.plaf.basic.BasicComboBoxUIprotected javax.swing.plaf.basic.ComboPopup createPopup()
createPopup 在类中 javax.swing.plaf.basic.BasicComboBoxUIComboPopupComboPopupprotected javax.swing.ComboBoxEditor createEditor()
setEditor.createEditor 在类中 javax.swing.plaf.basic.BasicComboBoxUIComboBoxEditor used for the combo boxJComboBox.setEditor(javax.swing.ComboBoxEditor)