java.lang.Object | ||||
↳ | javax.swing.plaf.ComponentUI | |||
↳ | javax.swing.plaf.ComboBoxUI | |||
↳ | javax.swing.plaf.basic.BasicComboBoxUI | |||
↳ | javax.swing.plaf.metal.MetalComboBoxUI |
Metal UI for JComboBox
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MetalComboBoxUI.MetalComboBoxLayoutManager | This inner class is marked "public" due to a compiler bug. | ||||||||||
MetalComboBoxUI.MetalComboPopup | This class is deprecated. As of Java 2 platform v1.4. | ||||||||||
MetalComboBoxUI.MetalPropertyChangeListener | This inner class is marked "public" due to a compiler bug. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This protected method is implementation specific and should be private.
| |||||||||||
Creates a
PropertyChangeListener which will be added to
the combo box. | |||||||||||
Returns the baseline.
| |||||||||||
The minumum size is the size of the display area plus insets plus the button.
| |||||||||||
Paints the specified component appropriate for the look and feel.
| |||||||||||
If necessary paints the currently selected item.
| |||||||||||
If necessary paints the background of the currently selected item.
| |||||||||||
This protected method is implementation specific and should be private.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an button which will be used as the control to show or hide
the popup portion of the combo box.
| |||||||||||
Creates the default editor that will be used in editable combo boxes.
| |||||||||||
Creates a layout manager for managing the components which make up the
combo box.
| |||||||||||
Creates the popup portion of the combo box.
| |||||||||||
This method is deprecated.
As of Java 2 platform v1.4.
| |||||||||||
This method is deprecated.
As of Java 2 platform v1.4.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
This protected method is implementation specific and should be private. do not call or override.
Creates a PropertyChangeListener
which will be added to
the combo box. If this method returns null then it will not
be added to the combo box.
PropertyChangeListener
or null
Returns the baseline.
c | JComponent baseline is being requested for |
---|---|
width | the width to get the baseline for |
height | the height to get the baseline for |
The minumum size is the size of the display area plus insets plus the button.
c | the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components |
---|
Dimension
object or null
Paints the specified component appropriate for the look and feel.
This method is invoked from the ComponentUI.update
method when
the specified component is being painted. Subclasses should override
this method and use the specified Graphics
object to
render the content of the component.
g | the Graphics context in which to paint |
---|---|
c | the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components |
If necessary paints the currently selected item.
g | Graphics to paint to |
---|---|
bounds | Region to paint current value to |
hasFocus | whether or not the JComboBox has focus |
NullPointerException | if any of the arguments are null. |
---|
If necessary paints the background of the currently selected item.
g | Graphics to paint to |
---|---|
bounds | Region to paint background to |
hasFocus | whether or not the JComboBox has focus |
NullPointerException | if any of the arguments are null. |
---|
This protected method is implementation specific and should be private. Do not call or override.
Creates an button which will be used as the control to show or hide the popup portion of the combo box.
Creates the default editor that will be used in editable combo boxes.
A default editor will be used only if an editor has not been
explicitly set with setEditor
.
ComboBoxEditor
used for the combo boxCreates a layout manager for managing the components which make up the combo box.
Creates the popup portion of the combo box.
ComboPopup
This method is deprecated.
As of Java 2 platform v1.4.
As of Java 2 platform v1.4 this method is no longer used. Do not call or override. All the functionality of this method is in the MetalPropertyChangeListener.
This method is deprecated.
As of Java 2 platform v1.4.
As of Java 2 platform v1.4 this method is no longer used.