APIdia Launch Partner
Top Description Methods
javax.swing.plaf.basic

public Interface ComboPopup

Known Direct Implementers
javax.swing.plaf.basic.BasicComboPopup
Imports
java.awt.event.MouseListener, .MouseMotionListener, .KeyListener, javax.swing.JList

The interface which defines the methods required for the implementation of the popup portion of a combo box.

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.beans.XMLEncoder.

Author
Tom Santos

Method Summary

Modifier and TypeMethod and Description
public KeyListener

Returns:

a key listener that will be added to the combo box or null
getKeyListener
()

Returns a key listener that will be added to the combo box or null.

public JList<Object>

Returns:

the list that is being used to draw the items in the combo box
getList
()

Returns the list that is being used to draw the items in the combo box.

public MouseListener

Returns:

a MouseListener or null
getMouseListener
()

Returns a mouse listener that will be added to the combo box or null.

public MouseMotionListener

Returns:

a MouseMotionListener or null
getMouseMotionListener
()

Returns a mouse motion listener that will be added to the combo box or null.

public void
hide()

Hides the popup

public boolean

Returns:

true if the component is visible; false otherwise.
isVisible
()

Returns true if the popup is visible (currently being displayed).

public void
show()

Shows the popup

public void
uninstallingUI()

Called to inform the ComboPopup that the UI is uninstalling.

Method Detail

getKeyListenerback to summary
public KeyListener getKeyListener()

Returns a key listener that will be added to the combo box or null. If this method returns null then it will not be added to the combo box.

Returns:KeyListener

a key listener that will be added to the combo box or null

getListback to summary
public JList<Object> getList()

Returns the list that is being used to draw the items in the combo box. This method is highly implementation specific and should not be used for general list manipulation.

Returns:JList<Object>

the list that is being used to draw the items in the combo box

getMouseListenerback to summary
public MouseListener getMouseListener()

Returns a mouse listener that will be added to the combo box or null. If this method returns null then it will not be added to the combo box.

Returns:MouseListener

a MouseListener or null

getMouseMotionListenerback to summary
public MouseMotionListener getMouseMotionListener()

Returns a mouse motion listener that will be added to the combo box or null. If this method returns null then it will not be added to the combo box.

Returns:MouseMotionListener

a MouseMotionListener or null

hideback to summary
public void hide()

Hides the popup

isVisibleback to summary
public boolean isVisible()

Returns true if the popup is visible (currently being displayed).

Returns:boolean

true if the component is visible; false otherwise.

showback to summary
public void show()

Shows the popup

uninstallingUIback to summary
public void uninstallingUI()

Called to inform the ComboPopup that the UI is uninstalling. If the ComboPopup added any listeners in the component, it should remove them here.