javax.swing.plaf
Class ComboBoxUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ComboBoxUI
Direct Known Subclasses:
BasicComboBoxUI, MultiComboBoxUI

public abstract class ComboBoxUI
extends ComponentUI

An abstract base class for delegates that implement the pluggable look and feel for a JComboBox.


Constructor Summary
ComboBoxUI()
          Constructs a new ComboBoxUI.
 
Method Summary
abstract  boolean isFocusTraversable(JComboBox c)
          Determines whether the combo box can receive input focus.
abstract  boolean isPopupVisible(JComboBox c)
          Determines whether the popup button is currently visible.
abstract  void setPopupVisible(JComboBox c, boolean visible)
          Sets the visibility of the popup button.
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComboBoxUI

public ComboBoxUI()
Constructs a new ComboBoxUI.

Method Detail

setPopupVisible

public abstract void setPopupVisible(JComboBox c,
                                     boolean visible)
Sets the visibility of the popup button.

Parameters:
c - the JComboBox whose popup is shown or hidden.
visible - true to show the popup, false to hide it.

isPopupVisible

public abstract boolean isPopupVisible(JComboBox c)
Determines whether the popup button is currently visible.

Parameters:
c - the JComboBox whose popup visibility is retrieved.
Returns:
true if the popup button is currently visible, false otherwise.

isFocusTraversable

public abstract boolean isFocusTraversable(JComboBox c)
Determines whether the combo box can receive input focus.

Parameters:
c - JComboBox whose focus traversability is to be retrieved.
Returns:
true if c can receive input focus, false otherwise.