Package Summary  Overview Summary

class:MetalComboBoxUI [NONE]


  • public class MetalComboBoxUI
    extends BasicComboBoxUI
    
    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 JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.

    See Also:
    MetalComboBoxEditor, MetalComboBoxButton

constructor:<init>() [NONE]

  • MetalComboBoxUI

    public MetalComboBoxUI()

method:createUI(javax.swing.JComponent) [NONE]

  • createUI

    public static ComponentUI createUI​(JComponent c)
    Constructs an instance of MetalComboBoxUI.
    Parameters:
    c - a component
    Returns:
    an instance of MetalComboBoxUI

method:paint(java.awt.Graphics,javax.swing.JComponent) [NONE]

  • paint

    public void paint​(Graphics g,
                      JComponent c)
    Description copied from class: ComponentUI
    Paints the specified component appropriately 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.
    Overrides:
    paint in class BasicComboBoxUI
    Parameters:
    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
    See Also:
    ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)

method:paintCurrentValue(java.awt.Graphics,java.awt.Rectangle,boolean) [NONE]

  • paintCurrentValue

    public void paintCurrentValue​(Graphics g,
                                  Rectangle bounds,
                                  boolean hasFocus)
    If necessary paints the currently selected item.
    Overrides:
    paintCurrentValue in class BasicComboBoxUI
    Parameters:
    g - Graphics to paint to
    bounds - Region to paint current value to
    hasFocus - whether or not the JComboBox has focus
    Throws:
    NullPointerException - if any of the arguments are null.
    Since:
    1.5

method:paintCurrentValueBackground(java.awt.Graphics,java.awt.Rectangle,boolean) [NONE]

  • paintCurrentValueBackground

    public void paintCurrentValueBackground​(Graphics g,
                                            Rectangle bounds,
                                            boolean hasFocus)
    If necessary paints the background of the currently selected item.
    Overrides:
    paintCurrentValueBackground in class BasicComboBoxUI
    Parameters:
    g - Graphics to paint to
    bounds - Region to paint background to
    hasFocus - whether or not the JComboBox has focus
    Throws:
    NullPointerException - if any of the arguments are null.
    Since:
    1.5

method:getBaseline(javax.swing.JComponent,int,int) [NONE]

method:createEditor() [NONE]

method:createPopup() [NONE]

method:createArrowButton() [NONE]

  • createArrowButton

    protected JButton createArrowButton()
    Description copied from class: BasicComboBoxUI
    Creates a button which will be used as the control to show or hide the popup portion of the combo box.
    Overrides:
    createArrowButton in class BasicComboBoxUI
    Returns:
    a button which represents the popup control

method:createPropertyChangeListener() [NONE]

  • createPropertyChangeListener

    public PropertyChangeListener createPropertyChangeListener()
    Description copied from class: BasicComboBoxUI
    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.
    Overrides:
    createPropertyChangeListener in class BasicComboBoxUI
    Returns:
    an instance of a PropertyChangeListener or null

method:editablePropertyChanged(java.beans.PropertyChangeEvent) [NONE]

  • editablePropertyChanged

    @Deprecated
    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.
    Parameters:
    e - an instance of PropertyChangeEvent

method:createLayoutManager() [NONE]

method:layoutComboBox(java.awt.Container,javax.swing.plaf.metal.MetalComboBoxUI.MetalComboBoxLayoutManager) [NONE]

method:removeListeners() [NONE]

  • removeListeners

    @Deprecated
    protected void removeListeners()
    Deprecated.
    As of Java 2 platform v1.4.
    As of Java 2 platform v1.4 this method is no longer used.

method:configureEditor() [NONE]

method:unconfigureEditor() [NONE]

method:getMinimumSize(javax.swing.JComponent) [NONE]

© 2019 Oracle Corporation and/or its affiliates