public class MetalComboBoxUI extends javax.swing.plaf.basic.BasicComboBoxUI
JComboBox component.| Modifier and Type | Class and Description |
|---|---|
class |
MetalComboBoxUI.MetalComboBoxLayoutManager
A layout manager that arranges the editor component (if active) and the
button that make up the combo box.
|
class |
MetalComboBoxUI.MetalComboPopup
Deprecated.
1.4
|
class |
MetalComboBoxUI.MetalPropertyChangeListener
A listener used to handle property changes in the
JComboBox
component, to ensure that the UI delegate accurately reflects the current
state in the rendering onscreen. |
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, popup, popupKeyListener, popupMouseListener, popupMouseMotionListener, propertyChangeListener| Constructor and Description |
|---|
MetalComboBoxUI()
Constructs a new instance of MetalComboBoxUI.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configureEditor()
Configures the editor for this combo box.
|
protected javax.swing.JButton |
createArrowButton()
Creates a new button for use in rendering the JComboBox.
|
protected javax.swing.ComboBoxEditor |
createEditor()
Creates an editor for the combo box.
|
protected java.awt.LayoutManager |
createLayoutManager()
Creates a new layout manager for the UI delegate.
|
protected javax.swing.plaf.basic.ComboPopup |
createPopup()
Creates a popup for the combo box.
|
java.beans.PropertyChangeListener |
createPropertyChangeListener()
Creates a new property change listener.
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent component)
Returns an instance of MetalComboBoxUI.
|
protected void |
editablePropertyChanged(java.beans.PropertyChangeEvent e)
Deprecated.
1.4
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
Returns the minimum size for the combo.
|
void |
layoutComboBox(java.awt.Container parent,
MetalComboBoxUI.MetalComboBoxLayoutManager manager)
Lays out the ComboBox
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Paints given menu item using specified graphics context
|
protected void |
removeListeners()
Deprecated.
1.4
|
void |
unconfigureEditor()
Unconfigures the editor for this combo box.
|
addEditor, configureArrowButton, createFocusListener, createItemListener, createKeyListener, createListDataListener, createRenderer, getAccessibleChild, getAccessibleChildrenCount, getDefaultSize, getDisplaySize, getInsets, getMaximumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isFocusTraversable, isNavigationKey, isPopupVisible, paintCurrentValue, paintCurrentValueBackground, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureArrowButton, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIpublic MetalComboBoxUI()
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent component)
component - the component for which we return an UI instanceprotected javax.swing.ComboBoxEditor createEditor()
createEditor in class javax.swing.plaf.basic.BasicComboBoxUIprotected javax.swing.plaf.basic.ComboPopup createPopup()
createPopup in class javax.swing.plaf.basic.BasicComboBoxUIprotected javax.swing.JButton createArrowButton()
createArrowButton in class javax.swing.plaf.basic.BasicComboBoxUIpublic java.beans.PropertyChangeListener createPropertyChangeListener()
createPropertyChangeListener in class javax.swing.plaf.basic.BasicComboBoxUIpublic void paint(java.awt.Graphics g, javax.swing.JComponent c)
javax.swing.plaf.basic.BasicComboBoxUIpaint in class javax.swing.plaf.basic.BasicComboBoxUIg - The graphics context used to paint this combo boxc - comboBox which needs to be painted.protected void editablePropertyChanged(java.beans.PropertyChangeEvent e)
e - the event.protected java.awt.LayoutManager createLayoutManager()
createLayoutManager in class javax.swing.plaf.basic.BasicComboBoxUIprotected void removeListeners()
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize in class javax.swing.plaf.basic.BasicComboBoxUIc - the componentpublic void configureEditor()
configureEditor in class javax.swing.plaf.basic.BasicComboBoxUIpublic void unconfigureEditor()
unconfigureEditor in class javax.swing.plaf.basic.BasicComboBoxUIpublic void layoutComboBox(java.awt.Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager)