declare namespace javax {
namespace swing {
namespace plaf {
namespace basic {
/**
* This is a basic implementation of the ComboPopup
interface.
* This class represents the ui for the popup portion of the combo box.
*
* All event handling is handled by listener classes created with the
* createxxxListener()
methods and internal classes.
* You can change the behavior of this class by overriding the
* createxxxListener()
methods and supplying your own
* event listeners or subclassing from the ones supplied in this class.
*
* 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
* Subclasses may override this method to return instances of their own
* ItemEvent handlers.
* @return an instance of an java.beans
package.
* Please see {@link java.beans.XMLEncoder}.
* @author Tom Santos
* @author Mark Davidson
*/
// @ts-ignore
class BasicComboPopup extends javax.swing.JPopupMenu implements javax.swing.plaf.basic.ComboPopup {
// @ts-ignore
constructor(combo: javax.swing.JComboBoxMouseListener
or null
* @see ComboPopup#getMouseListener
*/
// @ts-ignore
public getMouseListener(): java.awt.event.MouseListener
/**
* Implementation of ComboPopup.getMouseMotionListener().
* @return a MouseMotionListener
or null
* @see ComboPopup#getMouseMotionListener
*/
// @ts-ignore
public getMouseMotionListener(): java.awt.event.MouseMotionListener
/**
* Implementation of ComboPopup.getKeyListener().
* @return a KeyListener
or null
* @see ComboPopup#getKeyListener
*/
// @ts-ignore
public getKeyListener(): java.awt.event.KeyListener
/**
* Called when the UI is uninstalling. Since this popup isn't in the component
* tree, it won't get it's uninstallUI() called. It removes the listeners that
* were added in addComboBoxListeners().
*/
// @ts-ignore
public uninstallingUI(): void
/**
* Removes the listeners from the combo box model
* @param model The combo box model to install listeners
* @see #installComboBoxModelListeners
*/
// @ts-ignore
uninstallComboBoxModelListeners(model: javax.swing.ComboBoxModelMouseListener
which will be added to
* the combo box or null
*/
// @ts-ignore
createMouseListener(): java.awt.event.MouseListener
/**
* Creates the mouse motion listener which will be added to the combo
* box.
* Warning:
* When overriding this method, make sure to maintain the existing
* behavior.
* @return a MouseMotionListener
which will be added to
* the combo box or null
*/
// @ts-ignore
createMouseMotionListener(): java.awt.event.MouseMotionListener
/**
* Creates the key listener that will be added to the combo box. If
* this method returns null then it will not be added to the combo box.
* @return a KeyListener
or null
*/
// @ts-ignore
createKeyListener(): java.awt.event.KeyListener
/**
* Creates a list selection listener that watches for selection changes in
* the popup's list. If this method returns null then it will not
* be added to the popup list.
* @return an instance of a ListSelectionListener
or null
*/
// @ts-ignore
createListSelectionListener(): javax.swing.event.ListSelectionListener
/**
* Creates a list data listener which will be added to the
* ComboBoxModel
. If this method returns null then
* it will not be added to the combo box model.
* @return an instance of a ListDataListener
or null
*/
// @ts-ignore
createListDataListener(): javax.swing.event.ListDataListener
/**
* Creates a mouse listener that watches for mouse events in
* the popup's list. If this method returns null then it will
* not be added to the combo box.
* @return an instance of a MouseListener
or null
*/
// @ts-ignore
createListMouseListener(): java.awt.event.MouseListener
/**
* Creates a mouse motion listener that watches for mouse motion
* events in the popup's list. If this method returns null then it will
* not be added to the combo box.
* @return an instance of a MouseMotionListener
or null
*/
// @ts-ignore
createListMouseMotionListener(): java.awt.event.MouseMotionListener
/**
* 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.
* @return an instance of a PropertyChangeListener
or null
*/
// @ts-ignore
createPropertyChangeListener(): java.beans.PropertyChangeListener
/**
* Creates an ItemListener
which will be added to the
* combo box. If this method returns null then it will not
* be added to the combo box.
* ItemListener
or null
*/
// @ts-ignore
createItemListener(): java.awt.event.ItemListener
/**
* Creates the JList used in the popup to display
* the items in the combo box model. This method is called when the UI class
* is created.
* @return a JList
used to display the combo box items
*/
// @ts-ignore
createList(): javax.swing.JListuninstallComboBoxModelListeners
.
* @param model The combo box model to install listeners
* @see #uninstallComboBoxModelListeners
*/
// @ts-ignore
installComboBoxModelListeners(model: javax.swing.ComboBoxModel