API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.metal. MetalComboBoxUI View Source
Author(s)
Tom Santos
Since
Version
1.53 11/17/05
Serial
Hierarchy
 Object
      ComponentUI
          ComboBoxUI
              BasicComboBoxUI
                  MetalComboBoxUI
Implements
Subclasses
Description
public class MetalComboBoxUI
  Metal UI for JComboBox
Constructors
public MetalComboBoxUI ()
Methods
Hide/Show inherited methods
public void addEditor () [Inherited From BasicComboBoxUI]
  This public method is implementation specific and should be private.
public void configureArrowButton () [Inherited From BasicComboBoxUI]
  This public method is implementation specific and should be private.
public void configureEditor () [Overrides BasicComboBoxUI]
public boolean contains (JComponent c, int x, int y) [Inherited From ComponentUI]
  Returns true if the specified x,y location is contained within the look and feel's defined shape of the specified component.
protected JButton createArrowButton () [Overrides BasicComboBoxUI]
protected ComboBoxEditor createEditor () [Overrides BasicComboBoxUI]
protected FocusListener createFocusListener () [Inherited From BasicComboBoxUI]
  Creates a FocusListener which will be added to the combo box.
protected ItemListener createItemListener () [Inherited From BasicComboBoxUI]
  Creates an ItemListener which will be added to the combo box.
protected KeyListener createKeyListener () [Inherited From BasicComboBoxUI]
  Creates a KeyListener which will be added to the combo box.
protected LayoutManager createLayoutManager () [Overrides BasicComboBoxUI]
protected ListDataListener createListDataListener () [Inherited From BasicComboBoxUI]
  Creates a list data listener which will be added to the ComboBoxModel.
protected ComboPopup createPopup () [Overrides BasicComboBoxUI]
public PropertyChangeListener createPropertyChangeListener () [Overrides BasicComboBoxUI]
protected ListCellRenderer createRenderer () [Inherited From BasicComboBoxUI]
  Creates the default renderer that will be used in a non-editiable combo box.
publicstatic ComponentUI createUI (JComponent c) [Overrides BasicComboBoxUI]
@Deprecated
protected void editablePropertyChanged (PropertyChangeEvent e)
  As of Java 2 platform v1.4 this method is no longer used.
public Accessible getAccessibleChild (JComponent c, int i) [Inherited From BasicComboBoxUI]
public int getAccessibleChildrenCount (JComponent c) [Inherited From BasicComboBoxUI]
public int getBaseline (JComponent c, int width, int height) [Overrides BasicComboBoxUI]
  Returns the baseline.
public BaselineResizeBehavior getBaselineResizeBehavior (JComponent c) [Inherited From BasicComboBoxUI]
  Returns an enum indicating how the baseline of the component changes as the size changes.
protected Dimension getDefaultSize () [Inherited From BasicComboBoxUI]
  Return the default size of an empty display area of the combo box using the current renderer and font.
protected Dimension getDisplaySize () [Inherited From BasicComboBoxUI]
  Returns the calculated size of the display area.
protected Insets getInsets () [Inherited From BasicComboBoxUI]
Gets the insets from the JComboBox.
public Dimension getMaximumSize (JComponent c) [Inherited From BasicComboBoxUI]
public Dimension getMinimumSize (JComponent c) [Overrides BasicComboBoxUI]
public Dimension getPreferredSize (JComponent c) [Inherited From BasicComboBoxUI]
protected void installComponents () [Inherited From BasicComboBoxUI]
  Creates and initializes the components which make up the aggregate combo box.
protected void installDefaults () [Inherited From BasicComboBoxUI]
Installs the default colors, default font, default renderer, and default editor into the JComboBox.
protected void installKeyboardActions () [Inherited From BasicComboBoxUI]
  Adds keyboard actions to the JComboBox.
protected void installListeners () [Inherited From BasicComboBoxUI]
  Create and install the listeners for the combo box and its model.
public void installUI (JComponent c) [Inherited From BasicComboBoxUI]
public boolean isFocusTraversable (JComboBox c) [Inherited From BasicComboBoxUI] [Specified in ComboBoxUI]
  Determines if the JComboBox is focus traversable.
protected boolean isNavigationKey (int keyCode) [Inherited From BasicComboBoxUI]
  Returns whether or not the supplied keyCode maps to a key that is used for navigation.
public boolean isPopupVisible (JComboBox c) [Inherited From BasicComboBoxUI] [Specified in ComboBoxUI]
Tells if the popup is visible or not.
public void layoutComboBox (Container parent, MetalComboBoxLayoutManager manager)
public void paint (Graphics g, JComponent c) [Overrides BasicComboBoxUI]
public void paintCurrentValue (Graphics g, Rectangle bounds, boolean hasFocus) [Overrides BasicComboBoxUI]
  If necessary paints the currently selected item.
public void paintCurrentValueBackground (Graphics g, Rectangle bounds, boolean hasFocus) [Overrides BasicComboBoxUI]
  If necessary paints the background of the currently selected item.
protected Rectangle rectangleForCurrentValue () [Inherited From BasicComboBoxUI]
Returns the area that is reserved for drawing the currently selected item.
public void removeEditor () [Inherited From BasicComboBoxUI]
  This public method is implementation specific and should be private.
@Deprecated
protected void removeListeners ()
As of Java 2 platform v1.4 this method is no longer used.
protected void selectNextPossibleValue () [Inherited From BasicComboBoxUI]
  Selects the next item in the list.
protected void selectPreviousPossibleValue () [Inherited From BasicComboBoxUI]
  Selects the previous item in the list.
public void setPopupVisible (JComboBox c, boolean v) [Inherited From BasicComboBoxUI] [Specified in ComboBoxUI]
Hides the popup.
protected void toggleOpenClose () [Inherited From BasicComboBoxUI]
Hides the popup if it is showing and shows the popup if it is hidden.
public void unconfigureArrowButton () [Inherited From BasicComboBoxUI]
  This public method is implementation specific and should be private.
public void unconfigureEditor () [Overrides BasicComboBoxUI]
protected void uninstallComponents () [Inherited From BasicComboBoxUI]
  The aggregate components which compise the combo box are unregistered and uninitialized.
protected void uninstallDefaults () [Inherited From BasicComboBoxUI]
Uninstalls the default colors, default font, default renderer, and default editor into the JComboBox.
protected void uninstallKeyboardActions () [Inherited From BasicComboBoxUI]
Removes the focus InputMap and ActionMap.
protected void uninstallListeners () [Inherited From BasicComboBoxUI]
  Remove the installed listeners from the combo box and its model.
public void uninstallUI (JComponent c) [Inherited From BasicComboBoxUI]
public void update (Graphics g, JComponent c) [Inherited From ComponentUI]
  Notifies this UI delegate that it's time to paint the specified component.
Fields
Hide/Show inherited fields
protected JButton arrowButton [Inherited From BasicComboBoxUI]
protected Dimension cachedMinimumSize [Inherited From BasicComboBoxUI]
protected JComboBox comboBox [Inherited From BasicComboBoxUI]
protected CellRendererPane currentValuePane [Inherited From BasicComboBoxUI]
protected Component editor [Inherited From BasicComboBoxUI]
protected FocusListener focusListener [Inherited From BasicComboBoxUI]
  This protected field is implementation specific.
protected boolean hasFocus [Inherited From BasicComboBoxUI]
  This protected field is implementation specific.
protected boolean isMinimumSizeDirty [Inherited From BasicComboBoxUI]
protected ItemListener itemListener [Inherited From BasicComboBoxUI]
  This protected field is implementation specific.
protected KeyListener keyListener [Inherited From BasicComboBoxUI]
  This protected field is implementation specific.
protected JList listBox [Inherited From BasicComboBoxUI]
protected ListDataListener listDataListener [Inherited From BasicComboBoxUI]
  This protected field is implementation specific.
protected ComboPopup popup [Inherited From BasicComboBoxUI]
protected KeyListener popupKeyListener [Inherited From BasicComboBoxUI]
protected MouseListener popupMouseListener [Inherited From BasicComboBoxUI]
protected MouseMotionListener popupMouseMotionListener [Inherited From BasicComboBoxUI]
protected PropertyChangeListener propertyChangeListener [Inherited From BasicComboBoxUI]
  This protected field is implementation specific.
Nested Classes
  MetalComboBoxUI.MetalPropertyChangeListener
This inner class is marked "public" due to a compiler bug.
  MetalComboBoxUI.MetalComboBoxLayoutManager
This inner class is marked "public" due to a compiler bug.
@Deprecated
  MetalComboBoxUI.MetalComboPopup
This inner class is marked "public" due to a compiler bug.
  BasicComboBoxUI.KeyHandler
This listener checks to see if the key event isn't a navigation key.
  BasicComboBoxUI.FocusHandler
This listener hides the popup when the focus is lost.
  BasicComboBoxUI.ListDataHandler
This listener watches for changes in the ComboBoxModel.
  BasicComboBoxUI.ItemHandler
This listener watches for changes to the selection in the combo box.
  BasicComboBoxUI.PropertyChangeHandler
This listener watches for bound properties that have changed in the combo box.
  BasicComboBoxUI.ComboBoxLayoutManager
This layout manager handles the 'standard' layout of combo boxes.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar