javax.swing.plaf

Class ComboBoxUI

public abstract class ComboBoxUI extends ComponentUI

An abstract base class for delegates that implement the pluggable look and feel for a {@link JComboBox}.
Constructor Summary
ComboBoxUI()
Constructs a new ComboBoxUI.
Method Summary
abstract booleanisFocusTraversable(JComboBox c)
Determines whether the combo box can receive input focus.
abstract booleanisPopupVisible(JComboBox c)
Determines whether the popup button is currently visible.
abstract voidsetPopupVisible(JComboBox c, boolean visible)
Sets the visibility of the popup button.

Constructor Detail

ComboBoxUI

public ComboBoxUI()
Constructs a new ComboBoxUI.

Method Detail

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.

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.

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.