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 JavaBeans
has been added to the java.beans package.
Please see java..
MetalComboBoxEditor, MetalComboBoxButton
| Modifier and Type | Class and Description |
|---|---|
| public class | MetalComboBoxUI.
This class should be treated as a "protected" inner class. |
| public class | MetalComboBoxUI.
Deprecated
As of Java 2 platform v1.4.
This class should be treated as a "protected" inner class.
|
| public class | MetalComboBoxUI.
This class should be treated as a "protected" inner class. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | configureEditor()
Overrides javax. This protected method is implementation specific and should be private. |
| protected JButton | createArrowButton()
Overrides javax. Creates a button which will be used as the control to show or hide the popup portion of the combo box. |
| protected ComboBoxEditor | createEditor()
Overrides javax. Creates the default editor that will be used in editable combo boxes. |
| protected LayoutManager | createLayoutManager()
Overrides javax. Creates a layout manager for managing the components which make up the combo box. |
| protected ComboPopup | createPopup()
Overrides javax. Creates the popup portion of the combo box. |
| public PropertyChangeListener | createPropertyChangeListener()
Overrides javax. Creates a |
| public static ComponentUI | Returns: an instance ofMetalComboBoxUIa component c)Hides javax. Constructs an instance of |
| protected void | editablePropertyChanged(PropertyChangeEvent
an instance of e)PropertyChangeEvent
Deprecated
As of Java 2 platform v1.4.
As of Java 2 platform v1.4 this method is no longer used. |
| public int | getBaseline(JComponent c, int width, int height)
Overrides javax. Returns the baseline. |
| public Dimension | getMinimumSize(JComponent c)
Overrides javax. The minimum size is the size of the display area plus insets plus the button. |
| public void | layoutComboBox(Container
a container parent, MetalComboBoxUI.an instance of managerMetalComboBoxLayoutManagerLays out the |
| public void | paint(Graphics g, JComponent c)
Overrides javax. Paints the specified component appropriately for the look and feel. |
| public void | paintCurrentValue(Graphics
Graphics to paint to g, Rectangle Region to paint current value to bounds, boolean whether or not the JComboBox has focus hasFocus)Overrides javax. If necessary paints the currently selected item. |
| public void | paintCurrentValueBackground(Graphics
Graphics to paint to g, Rectangle Region to paint background to bounds, boolean whether or not the JComboBox has focus hasFocus)Overrides javax. If necessary paints the background of the currently selected item. |
| protected void | removeListeners()
Deprecated
As of Java 2 platform v1.4.
As of Java 2 platform v1.4 this method is no longer used. |
| public void | unconfigureEditor()
Overrides javax. This protected method is implementation specific and should be private. |
| private void |
| MetalComboBoxUI | back to summary |
|---|---|
| public MetalComboBoxUI() Constructs a | |
| configureEditor | back to summary |
|---|---|
| public void configureEditor() Overrides javax. Doc from javax. This protected method is implementation specific and should be private. do not call or override. | |
| createArrowButton | back to summary |
|---|---|
| protected JButton createArrowButton() Overrides javax. Doc from javax. Creates a button which will be used as the control to show or hide the popup portion of the combo box. | |
| createEditor | back to summary |
|---|---|
| protected ComboBoxEditor createEditor() Overrides javax. Doc from javax. 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 | |
| createLayoutManager | back to summary |
|---|---|
| protected LayoutManager createLayoutManager() Overrides javax. Doc from javax. Creates a layout manager for managing the components which make up the combo box. | |
| createPopup | back to summary |
|---|---|
| protected ComboPopup createPopup() Overrides javax. Doc from javax. Creates the popup portion of the combo box. | |
| createPropertyChangeListener | back to summary |
|---|---|
| public PropertyChangeListener createPropertyChangeListener() Overrides javax. Doc from javax. Creates a | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent c) Hides javax. Constructs an instance of
| |
| editablePropertyChanged | back to summary |
|---|---|
| protected void editablePropertyChanged(PropertyChangeEvent e)
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.
| |
| getBaseline | back to summary |
|---|---|
| public int getBaseline(JComponent c, int width, int height) Overrides javax. Returns the baseline.
| |
| getMinimumSize | back to summary |
|---|---|
| public Dimension getMinimumSize(JComponent c) Overrides javax. Doc from javax. The minimum size is the size of the display area plus insets plus the button. | |
| layoutComboBox | back to summary |
|---|---|
| public void layoutComboBox(Container parent, MetalComboBoxUI. Lays out the
| |
| paint | back to summary |
|---|---|
| public void paint(Graphics g, JComponent c) Overrides javax. Doc from javax. Paints the specified component appropriately for the look and feel.
This method is invoked from the | |
| paintCurrentValue | back to summary |
|---|---|
| public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) Overrides javax. If necessary paints the currently selected item.
| |
| paintCurrentValueBackground | back to summary |
|---|---|
| public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) Overrides javax. If necessary paints the background of the currently selected item.
| |
| removeListeners | back to summary |
|---|---|
| protected void removeListeners()
Deprecated As of Java 2 platform v1.4. As of Java 2 platform v1.4 this method is no longer used.
| |
| unconfigureEditor | back to summary |
|---|---|
| public void unconfigureEditor() Overrides javax. Doc from javax. This protected method is implementation specific and should be private. Do not call or override. | |
| updateButtonForOcean | back to summary |
|---|---|
| private void updateButtonForOcean(JButton button) Resets the necessary state on the ComboBoxButton for ocean. | |
MetalComboBoxUI.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | layoutContainer(Container parent)
Overrides javax. Implements java. Lays out the specified container. |
| public void |
| MetalComboBoxLayoutManager | back to summary |
|---|---|
| public MetalComboBoxLayoutManager() Constructs a | |
| layoutContainer | back to summary |
|---|---|
| public void layoutContainer(Container parent) Overrides javax. Implements java. Doc from java. Lays out the specified container. | |
| superLayout | back to summary |
|---|---|
| public void superLayout(Container parent) Lays out the parent container.
| |
Deprecated
As of Java 2 platform v1.4.
MetalComboBoxUI.
This class is now obsolete and doesn't do anything and
is only included for backwards API compatibility. Do not call or
override.
| Access | Constructor and Description |
|---|---|
| public | MetalComboPopup(JComboBox<Object>
an instance of cBox)JComboBoxConstructs a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| public void | delegateFocus(MouseEvent e)
Overrides javax. This is a utility method that helps event handlers figure out where to send the focus when the popup is brought up. |
| MetalComboPopup | back to summary |
|---|---|
| public MetalComboPopup(JComboBox<Object> cBox) Constructs a new instance of | |
| delegateFocus | back to summary |
|---|---|
| public void delegateFocus(MouseEvent e) Overrides javax. Doc from javax. This is a utility method that helps event handlers figure out where to send the focus when the popup is brought up. The standard implementation delegates the focus to the editor (if the combo box is editable) or to the JComboBox if it is not editable. | |
MetalComboBoxUI.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | propertyChange(PropertyChangeEvent e)
Overrides javax. Implements java. This method gets called when a bound property is changed. |
| MetalPropertyChangeListener | back to summary |
|---|---|
| public MetalPropertyChangeListener() Constructs a | |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(PropertyChangeEvent e) Overrides javax. Implements java. Doc from java. This method gets called when a bound property is changed. | |