javax.swing.plaf.metal
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.PropertyChangeHandler
arrowButton, 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, uninstallUI
contains, update
public MetalComboBoxUI()
public static ComponentUI createUI(JComponent component)
component
- the component for which we return an UI instanceprotected ComboBoxEditor createEditor()
createEditor
in class BasicComboBoxUI
protected ComboPopup createPopup()
createPopup
in class BasicComboBoxUI
protected JButton createArrowButton()
createArrowButton
in class BasicComboBoxUI
public PropertyChangeListener createPropertyChangeListener()
createPropertyChangeListener
in class BasicComboBoxUI
public void paint(Graphics g, JComponent c)
BasicComboBoxUI
paint
in class BasicComboBoxUI
g
- 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 BasicComboBoxUI
protected void removeListeners()
public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class BasicComboBoxUI
c
- the componentpublic void configureEditor()
configureEditor
in class BasicComboBoxUI
public void unconfigureEditor()
unconfigureEditor
in class BasicComboBoxUI
public void layoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager)