Package mdlaf.components.combobox
Class MaterialComboBoxUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ComboBoxUI
-
- javax.swing.plaf.basic.BasicComboBoxUI
-
- mdlaf.components.combobox.MaterialComboBoxUI
-
public class MaterialComboBoxUI extends javax.swing.plaf.basic.BasicComboBoxUI
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classMaterialComboBoxUI.ArrowButtonComboBoxprotected classMaterialComboBoxUI.FocusListenerColorprotected classMaterialComboBoxUI.MaterialComboBoxPopup-
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
Fields Modifier and Type Field Description protected intarcprotected javax.swing.JButtonarrowButtonprotected java.awt.Colorbackgroundprotected javax.swing.border.BorderdisabledBorderprotected MaterialComboBoxUI.FocusListenerColorfocusListener-
Fields inherited from class javax.swing.plaf.basic.BasicComboBoxUI
cachedMinimumSize, comboBox, currentValuePane, editor, hasFocus, isMinimumSizeDirty, itemListener, keyListener, listBox, listDataListener, padding, popup, popupKeyListener, popupMouseListener, popupMouseMotionListener, propertyChangeListener, squareButton
-
-
Constructor Summary
Constructors Constructor Description MaterialComboBoxUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.swing.JButtoncreateArrowButton()protected javax.swing.ComboBoxEditorcreateEditor()protected java.awt.event.FocusListenercreateFocusListener()protected javax.swing.plaf.basic.ComboPopupcreatePopup()protected javax.swing.ListCellRenderercreateRenderer()static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)protected voidinstallDefaults()protected voidinstallListeners()voidinstallUI(javax.swing.JComponent c)voidpaint(java.awt.Graphics g, javax.swing.JComponent c)voidpaintCurrentValue(java.awt.Graphics g, java.awt.Rectangle bounds, boolean hasFocus)voidunconfigureArrowButton()protected voiduninstallListeners()voiduninstallUI(javax.swing.JComponent c)voidupdate(java.awt.Graphics g, javax.swing.JComponent c)-
Methods inherited from class javax.swing.plaf.basic.BasicComboBoxUI
addEditor, configureArrowButton, configureEditor, createItemListener, createKeyListener, createLayoutManager, createListDataListener, createPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getDefaultSize, getDisplaySize, getInsets, getMaximumSize, getMinimumSize, getPreferredSize, getSizeForComponent, installComponents, installKeyboardActions, isFocusTraversable, isNavigationKey, isPopupVisible, paintCurrentValueBackground, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureEditor, uninstallComponents, uninstallDefaults, uninstallKeyboardActions
-
-
-
-
Field Detail
-
arrowButton
protected javax.swing.JButton arrowButton
-
background
protected java.awt.Color background
-
focusListener
protected MaterialComboBoxUI.FocusListenerColor focusListener
-
arc
protected int arc
-
disabledBorder
protected javax.swing.border.Border disabledBorder
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUIin classjavax.swing.plaf.basic.BasicComboBoxUI
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classjavax.swing.plaf.basic.BasicComboBoxUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin classjavax.swing.plaf.basic.BasicComboBoxUI
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
paintin classjavax.swing.plaf.basic.BasicComboBoxUI
-
createArrowButton
protected javax.swing.JButton createArrowButton()
- Overrides:
createArrowButtonin classjavax.swing.plaf.basic.BasicComboBoxUI
-
createPopup
protected javax.swing.plaf.basic.ComboPopup createPopup()
- Overrides:
createPopupin classjavax.swing.plaf.basic.BasicComboBoxUI
-
unconfigureArrowButton
public void unconfigureArrowButton()
- Overrides:
unconfigureArrowButtonin classjavax.swing.plaf.basic.BasicComboBoxUI
-
installListeners
protected void installListeners()
- Overrides:
installListenersin classjavax.swing.plaf.basic.BasicComboBoxUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListenersin classjavax.swing.plaf.basic.BasicComboBoxUI
-
update
public void update(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
updatein classjavax.swing.plaf.ComponentUI
-
paintCurrentValue
public void paintCurrentValue(java.awt.Graphics g, java.awt.Rectangle bounds, boolean hasFocus)- Overrides:
paintCurrentValuein classjavax.swing.plaf.basic.BasicComboBoxUI
-
createRenderer
protected javax.swing.ListCellRenderer createRenderer()
- Overrides:
createRendererin classjavax.swing.plaf.basic.BasicComboBoxUI
-
createEditor
protected javax.swing.ComboBoxEditor createEditor()
- Overrides:
createEditorin classjavax.swing.plaf.basic.BasicComboBoxUI
-
createFocusListener
protected java.awt.event.FocusListener createFocusListener()
- Overrides:
createFocusListenerin classjavax.swing.plaf.basic.BasicComboBoxUI
-
-