javax.swing.plaf.metal
public class MetalComboBoxUI extends BasicComboBoxUI
| Nested Class Summary | |
|---|---|
| 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
A popup menu for the combo-box.
|
| class | MetalComboBoxUI.MetalPropertyChangeListener
A listener used to handle property changes in the {@link JComboBox}
component, to ensure that the UI delegate accurately reflects the current
state in the rendering onscreen. |
| Constructor Summary | |
|---|---|
| MetalComboBoxUI()
Constructs a new instance of MetalComboBoxUI. | |
| Method Summary | |
|---|---|
| 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)
Updates the button and text field to reflect a change in the 'editable'
property.
|
| 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) |
| protected void | removeListeners()
Not used in Classpath.
|
| void | unconfigureEditor()
Unconfigures the editor for this combo box. |
Returns: A button.
Returns: An editor.
Returns: A new layout manager.
Returns: A popup.
Returns: A new property change listener.
Parameters: component the component for which we return an UI instance
Returns: an instance of MetalComboBoxUI
Deprecated: 1.4
Updates the button and text field to reflect a change in the 'editable' property.Parameters: e the event.
Parameters: c the component
Returns: The minimum size for the combo box.
Deprecated: 1.4
Not used in Classpath.