This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.plaf.basic
class BasicComboPopup

java.lang.Object extended by java.awt.Component extended by java.awt.Container extended by javax.swing.JComponent extended by javax.swing.JPopupMenu extended by javax.swing.plaf.basic.BasicComboPopup
All Implemented Interfaces:
MenuContainer, ImageObserver, Serializable, Accessible, MenuElement, TransferHandler.HasGetTransferHandler, ComboPopup
Direct Known Subclasses:
MetalComboBoxUI.MetalComboPopup

public class BasicComboPopup
extends JPopupMenu
implements ComboPopup

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 JavaBeansTM has been added to the java.beans package. Please see {@link java.beans.XMLEncoder}.


Nested Class Summary
 class

           As of Java 2 platform v 1.4, this class is now obsolete and is only included for backwards API compatibility.
protected class

           A listener to be registered upon the combo box (not its popup menu) to handle mouse events that affect the state of the popup menu.
protected class

           This listener watches for dragging and updates the current selection in the list if it is dragging over the list.
protected class

           This listener watches for changes to the selection in the combo box.
 class

           As of 1.4, this class is now obsolete, doesn't do anything, and is only included for backwards API compatibility.
protected class

           This listener hides the popup when the mouse is released in the list.
protected class

           This listener changes the selected item as you move the mouse over the list.
protected class

           As of Java 2 platform v 1.4, this class is now obsolete, doesn't do anything, and is only included for backwards API compatibility.
protected class

           This listener watches for bound properties that have changed in the combo box.
Nested classes/interfaces inherited from class javax.swing.JPopupMenu
JPopupMenu.AccessibleJPopupMenu, JPopupMenu.Separator
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
   
Field Summary
protected Timer autoscrollTimer
          This protected field is implementation specific.
protected JComboBox comboBox
          
protected boolean hasEntered
          
protected boolean isAutoScrolling
          
protected ItemListener itemListener
          This protected field is implementation specific.
protected KeyListener keyListener
          This protected field is implementation specific.
protected JList list
          This protected field is implementation specific.
protected ListDataListener listDataListener
          This protected field is implementation specific.
protected MouseListener listMouseListener
          This protected field is implementation specific.
protected MouseMotionListener listMouseMotionListener
          This protected field is implementation specific.
protected ListSelectionListener listSelectionListener
          This protected field is implementation specific.
protected MouseListener mouseListener
          This protected field is implementation specific.
protected MouseMotionListener mouseMotionListener
          This protected field is implementation specific.
protected PropertyChangeListener propertyChangeListener
          This protected field is implementation specific.
protected int scrollDirection
          
protected JScrollPane scroller
          This protected field is implementation specific.
protected static int SCROLL_DOWN
          
protected static int SCROLL_UP
          
protected boolean valueIsAdjusting
          As of Java 2 platform v1.4 this previously undocumented field is no longer used.
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary

          
 
Method Summary
protected void

          This protected method is implementation specific and should be private.
protected void

          This protected method is implementation specific and should be private.
protected Rectangle
computePopupBounds(int px, int py, int pw, int ph)

          Calculate the placement and size of the popup portion of the combo box based on the combo box location and the enclosing screen bounds.
protected void

          Configures the list which is used to hold the combo box items in the popup.
protected void

          Configures the popup portion of the combo box.
protected void

          Configures the scrollable portion which holds the list within the combo box popup.
protected MouseEvent

          
protected ItemListener

          Creates an ItemListener which will be added to the combo box.
protected KeyListener

          Creates the key listener that will be added to the combo box.
protected JList

          Creates the JList used in the popup to display the items in the combo box model.
protected ListDataListener

          Creates a list data listener which will be added to the ComboBoxModel.
protected MouseListener

          Creates a mouse listener that watches for mouse events in the popup's list.
protected MouseMotionListener

          Creates a mouse motion listener that watches for mouse motion events in the popup's list.
protected ListSelectionListener

          Creates a list selection listener that watches for selection changes in the popup's list.
protected MouseListener

          Creates a listener that will watch for mouse-press and release events on the combo box.
protected MouseMotionListener

          Creates the mouse motion listener which will be added to the combo box.
protected PropertyChangeListener

          Creates a PropertyChangeListener which will be added to the combo box.
protected JScrollPane

          Creates the scroll pane which houses the scrollable list.
protected void

          This is is a utility method that helps event handlers figure out where to send the focus when the popup is brought up.
protected void

          Notifies PopupMenuListeners that this popup menu is cancelled.
protected void

          Notifies PopupMenuListeners that this popup menu will become invisible.
protected void

          Notifies PopupMenuListeners that this popup menu will become visible.
 AccessibleContext

          Gets the AccessibleContext associated with this BasicComboPopup.
 KeyListener

          Implementation of ComboPopup.getKeyListener().
 JList

          Implementation of ComboPopup.getList().
 MouseListener

          Implementation of ComboPopup.getMouseListener().
 MouseMotionListener

          Implementation of ComboPopup.getMouseMotionListener().
protected int
getPopupHeightForRowCount(int maxRowCount)

          Retrieves the height of the popup based on the current ListCellRenderer and the maximum row count.
 void

          Implementation of ComboPopup.hide().
protected void

          This method adds the necessary listeners to the JComboBox.
protected void

          Installs the listeners on the combo box model.
protected void

          
protected void

          Adds the listeners to the list control.
 boolean

          Overridden to unconditionally return false.
 void

          Implementation of ComboPopup.show().
protected void
startAutoScrolling(int direction)

          This protected method is implementation specific and should be private.
protected void

          This protected method is implementation specific and should be private.
protected void

          Makes the popup visible if it is hidden and makes it hidden if it is visible.
protected void

          Removes the listeners from the combo box model
 void

          Called when the UI is uninstalling.
protected void

          
protected void
updateListBoxSelectionForEvent(MouseEvent anEvent, boolean shouldScroll)

          A utility method used by the event listeners.
 
Methods inherited from class javax.swing.JPopupMenu
add, add, add, addMenuKeyListener, addPopupMenuListener, addSeparator, createActionChangeListener, createActionComponent, firePopupMenuCanceled, firePopupMenuWillBecomeInvisible, firePopupMenuWillBecomeVisible, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getDefaultLightWeightPopupEnabled, getInvoker, getLabel, getMargin, getMenuKeyListeners, getPopupMenuListeners, getSelectionModel, getSubElements, getUI, getUIClassID, insert, insert, isBorderPainted, isLightWeightPopupEnabled, isPopupTrigger, isVisible, menuSelectionChanged, pack, paintBorder, paramString, processFocusEvent, processKeyEvent, processKeyEvent, processMouseEvent, remove, removeMenuKeyListener, removePopupMenuListener, setBorderPainted, setDefaultLightWeightPopupEnabled, setInvoker, setLabel, setLightWeightPopupEnabled, setLocation, setPopupSize, setPopupSize, setSelected, setSelectionModel, setUI, setVisible, show, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

autoscrollTimer

protected Timer autoscrollTimer
This protected field is implementation specific. Do not access directly or override.

comboBox

protected JComboBox comboBox

hasEntered

protected boolean hasEntered

isAutoScrolling

protected boolean isAutoScrolling

itemListener

protected ItemListener itemListener
This protected field is implementation specific. Do not access directly or override. Use the create method instead

keyListener

protected KeyListener keyListener
This protected field is implementation specific. Do not access directly or override. Use the accessor or create methods instead.

list

protected JList list
This protected field is implementation specific. Do not access directly or override. Use the accessor methods instead.

listDataListener

protected ListDataListener listDataListener
This protected field is implementation specific. Do not access directly or override. Use the create method instead

listMouseListener

protected MouseListener listMouseListener
This protected field is implementation specific. Do not access directly or override. Use the create method instead.

listMouseMotionListener

protected MouseMotionListener listMouseMotionListener
This protected field is implementation specific. Do not access directly or override. Use the create method instead

listSelectionListener

protected ListSelectionListener listSelectionListener
This protected field is implementation specific. Do not access directly or override. Use the create method instead.

mouseListener

protected MouseListener mouseListener
This protected field is implementation specific. Do not access directly or override. Use the accessor or create methods instead.

mouseMotionListener

protected MouseMotionListener mouseMotionListener
This protected field is implementation specific. Do not access directly or override. Use the accessor or create methods instead.

propertyChangeListener

protected PropertyChangeListener propertyChangeListener
This protected field is implementation specific. Do not access directly or override. Use the create method instead

scrollDirection

protected int scrollDirection

scroller

protected JScrollPane scroller
This protected field is implementation specific. Do not access directly or override. Use the create method instead

SCROLL_DOWN

protected static final int SCROLL_DOWN

SCROLL_UP

protected static final int SCROLL_UP

valueIsAdjusting

protected boolean valueIsAdjusting
As of Java 2 platform v1.4 this previously undocumented field is no longer used.
Constructor Detail

BasicComboPopup

public BasicComboPopup(JComboBox combo)
Parameters:
combo
Method Detail

autoScrollDown

protected void autoScrollDown()
This protected method is implementation specific and should be private. do not call or override.


autoScrollUp

protected void autoScrollUp()
This protected method is implementation specific and should be private. do not call or override.


computePopupBounds

protected Rectangle computePopupBounds(int px,
                                       int py,
                                       int pw,
                                       int ph)
Calculate the placement and size of the popup portion of the combo box based on the combo box location and the enclosing screen bounds. If no transformations are required, then the returned rectangle will have the same values as the parameters.

Parameters:
px - starting x location
py - starting y location
pw - starting width
ph - starting height
Returns:
a rectangle which represents the placement and size of the popup

configureList

protected void configureList()
Configures the list which is used to hold the combo box items in the popup. This method is called when the UI class is created.


configurePopup

protected void configurePopup()
Configures the popup portion of the combo box. This method is called when the UI class is created.


configureScroller

protected void configureScroller()
Configures the scrollable portion which holds the list within the combo box popup. This method is called when the UI class is created.


convertMouseEvent

protected MouseEvent convertMouseEvent(MouseEvent e)
Parameters:
e

createItemListener

protected ItemListener createItemListener()
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.

Subclasses may override this method to return instances of their own ItemEvent handlers.

Returns:
an instance of an ItemListener or null

createKeyListener

protected KeyListener createKeyListener()
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.

Returns:
a KeyListener or null

createList

protected JList createList()
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.

Returns:
a JList used to display the combo box items

createListDataListener

protected ListDataListener createListDataListener()
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.

Returns:
an instance of a ListDataListener or null

createListMouseListener

protected MouseListener createListMouseListener()
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.

Returns:
an instance of a MouseListener or null

createListMouseMotionListener

protected MouseMotionListener createListMouseMotionListener()
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.

Returns:
an instance of a MouseMotionListener or null

createListSelectionListener

protected ListSelectionListener createListSelectionListener()
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.

Returns:
an instance of a ListSelectionListener or null

createMouseListener

protected MouseListener createMouseListener()
Creates a listener that will watch for mouse-press and release events on the combo box. Warning: When overriding this method, make sure to maintain the existing behavior.

Returns:
a MouseListener which will be added to the combo box or null

createMouseMotionListener

protected MouseMotionListener createMouseMotionListener()
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.

Returns:
a MouseMotionListener which will be added to the combo box or null

createPropertyChangeListener

protected PropertyChangeListener createPropertyChangeListener()
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.

Returns:
an instance of a PropertyChangeListener or null

createScroller

protected JScrollPane createScroller()
Creates the scroll pane which houses the scrollable list.


delegateFocus

protected void delegateFocus(MouseEvent e)
This is is a utility method that helps event handlers figure out where to send the focus when the popup is brought up. The standard implementation delegates the focus to the editor (if the combo box is editable) or to the JComboBox if it is not editable.

Parameters:
e

firePopupMenuCanceled

protected void firePopupMenuCanceled()
Overrides:
firePopupMenuCanceled in class JPopupMenu

firePopupMenuWillBecomeInvisible

protected void firePopupMenuWillBecomeInvisible()
Overrides:
firePopupMenuWillBecomeInvisible in class JPopupMenu

firePopupMenuWillBecomeVisible

protected void firePopupMenuWillBecomeVisible()
Overrides:
firePopupMenuWillBecomeVisible in class JPopupMenu

getAccessibleContext

public AccessibleContext getAccessibleContext()
Gets the AccessibleContext associated with this BasicComboPopup. The AccessibleContext will have its parent set to the ComboBox.

Overrides:
getAccessibleContext in class JPopupMenu
Returns:
an AccessibleContext for the BasicComboPopup

getKeyListener

public KeyListener getKeyListener()
Implementation of ComboPopup.getKeyListener().

Returns:
a KeyListener or null

getList

public JList getList()
Implementation of ComboPopup.getList().


getMouseListener

public MouseListener getMouseListener()
Implementation of ComboPopup.getMouseListener().

Returns:
a MouseListener or null

getMouseMotionListener

public MouseMotionListener getMouseMotionListener()
Implementation of ComboPopup.getMouseMotionListener().

Returns:
a MouseMotionListener or null

getPopupHeightForRowCount

protected int getPopupHeightForRowCount(int maxRowCount)
Retrieves the height of the popup based on the current ListCellRenderer and the maximum row count.

Parameters:
maxRowCount

hide

public void hide()
Implementation of ComboPopup.hide().

Overrides:
hide in class Component

installComboBoxListeners

protected void installComboBoxListeners()
This method adds the necessary listeners to the JComboBox.


installComboBoxModelListeners

protected void installComboBoxModelListeners(ComboBoxModel model)
Installs the listeners on the combo box model. Any listeners installed on the combo box model should be removed in uninstallComboBoxModelListeners.

Parameters:
model - The combo box model to install listeners

installKeyboardActions

protected void installKeyboardActions()

installListListeners

protected void installListListeners()
Adds the listeners to the list control.


isFocusTraversable

public boolean isFocusTraversable()
Overridden to unconditionally return false.

Overrides:
isFocusTraversable in class Component

show

public void show()
Implementation of ComboPopup.show().

Overrides:
show in class Component

startAutoScrolling

protected void startAutoScrolling(int direction)
This protected method is implementation specific and should be private. do not call or override.

Parameters:
direction

stopAutoScrolling

protected void stopAutoScrolling()
This protected method is implementation specific and should be private. do not call or override.


togglePopup

protected void togglePopup()
Makes the popup visible if it is hidden and makes it hidden if it is visible.


uninstallComboBoxModelListeners

protected void uninstallComboBoxModelListeners(ComboBoxModel model)
Removes the listeners from the combo box model

Parameters:
model - The combo box model to install listeners

uninstallingUI

public void uninstallingUI()
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().


uninstallKeyboardActions

protected void uninstallKeyboardActions()

updateListBoxSelectionForEvent

protected void updateListBoxSelectionForEvent(MouseEvent anEvent,
                                              boolean shouldScroll)
A utility method used by the event listeners. Given a mouse event, it changes the list selection to the list item below the mouse.

Parameters:
anEvent
shouldScroll


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.