public class MetalComboBoxUI extends 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. |
BasicComboBoxUI.ComboBoxLayoutManager, BasicComboBoxUI.FocusHandler, BasicComboBoxUI.ItemHandler, BasicComboBoxUI.KeyHandler, BasicComboBoxUI.ListDataHandler, 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 JButton |
createArrowButton()
Creates a new button for use in rendering the JComboBox.
|
protected ComboBoxEditor |
createEditor()
Creates an editor for the combo box.
|
protected LayoutManager |
createLayoutManager()
Creates a new layout manager for the UI delegate.
|
protected ComboPopup |
createPopup()
Creates a popup for the combo box.
|
PropertyChangeListener |
createPropertyChangeListener()
Creates a new property change listener.
|
static ComponentUI |
createUI(JComponent component)
Returns an instance of MetalComboBoxUI.
|
protected void |
editablePropertyChanged(PropertyChangeEvent e)
Deprecated.
1.4
|
Dimension |
getMinimumSize(JComponent c)
Returns the minimum size for the combo.
|
void |
layoutComboBox(Container parent,
MetalComboBoxUI.MetalComboBoxLayoutManager manager)
Lays out the ComboBox
|
void |
paint(Graphics g,
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, uninstallUIcontains, updatepublic MetalComboBoxUI()
public static ComponentUI createUI(JComponent component)
component - the component for which we return an UI instanceprotected ComboBoxEditor createEditor()
createEditor in class BasicComboBoxUIprotected ComboPopup createPopup()
createPopup in class BasicComboBoxUIprotected JButton createArrowButton()
createArrowButton in class BasicComboBoxUIpublic PropertyChangeListener createPropertyChangeListener()
createPropertyChangeListener in class BasicComboBoxUIpublic void paint(Graphics g, JComponent c)
BasicComboBoxUIpaint in class BasicComboBoxUIg - The graphics context used to paint this combo boxc - comboBox which needs to be painted.protected void editablePropertyChanged(PropertyChangeEvent e)
e - the event.protected LayoutManager createLayoutManager()
createLayoutManager in class BasicComboBoxUIprotected void removeListeners()
public Dimension getMinimumSize(JComponent c)
getMinimumSize in class BasicComboBoxUIc - the componentpublic void configureEditor()
configureEditor in class BasicComboBoxUIpublic void unconfigureEditor()
unconfigureEditor in class BasicComboBoxUIpublic void layoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager)