- java.lang.Object
- 
- java.awt.Component
- 
- java.awt.Container
- 
- javax.swing.JComponent
- 
- javax.swing.JPopupMenu
- 
- javax.swing.plaf.basic.BasicComboPopup
 
 
 
 
 
- 
- All Implemented Interfaces:
- ImageObserver,- MenuContainer,- Serializable,- Accessible,- MenuElement,- ComboPopup
 - Direct Known Subclasses:
- MetalComboBoxUI.MetalComboPopup
 
 public class BasicComboPopup extends JPopupMenu implements ComboPopup This is a basic implementation of theComboPopupinterface. 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 thecreatexxxListener()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 java.beanspackage. Please seeXMLEncoder.- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classBasicComboPopup.InvocationKeyHandlerAs of Java 2 platform v 1.4, this class is now obsolete and is only included for backwards API compatibility.protected classBasicComboPopup.InvocationMouseHandlerA 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 classBasicComboPopup.InvocationMouseMotionHandlerThis listener watches for dragging and updates the current selection in the list if it is dragging over the list.protected classBasicComboPopup.ItemHandlerThis listener watches for changes to the selection in the combo box.classBasicComboPopup.ListDataHandlerAs of 1.4, this class is now obsolete, doesn't do anything, and is only included for backwards API compatibility.protected classBasicComboPopup.ListMouseHandlerThis listener hides the popup when the mouse is released in the list.protected classBasicComboPopup.ListMouseMotionHandlerThis listener changes the selected item as you move the mouse over the list.protected classBasicComboPopup.ListSelectionHandlerAs 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 classBasicComboPopup.PropertyChangeHandlerThis listener watches for bound properties that have changed in the combo box.- 
Nested classes/interfaces declared in class javax.swing.JPopupMenuJPopupMenu.AccessibleJPopupMenu, JPopupMenu.Separator
 - 
Nested classes/interfaces declared in class javax.swing.JComponentJComponent.AccessibleJComponent
 - 
Nested classes/interfaces declared in class java.awt.ContainerContainer.AccessibleAWTContainer
 - 
Nested classes/interfaces declared in class java.awt.ComponentComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected TimerautoscrollTimerThis protected field is implementation specific.protected JComboBox<Object>comboBoxThe instance ofJComboBox.protected booleanhasEnteredtrueif the mouse cursor is in the popup.protected booleanisAutoScrollingIftruethe auto-scrolling is enabled.protected ItemListeneritemListenerThis protected field is implementation specific.protected KeyListenerkeyListenerThis protected field is implementation specific.protected JList<Object>listThis protected field is implementation specific.protected ListDataListenerlistDataListenerThis protected field is implementation specific.protected MouseListenerlistMouseListenerThis protected field is implementation specific.protected MouseMotionListenerlistMouseMotionListenerThis protected field is implementation specific.protected ListSelectionListenerlistSelectionListenerThis protected field is implementation specific.protected MouseListenermouseListenerThis protected field is implementation specific.protected MouseMotionListenermouseMotionListenerThis protected field is implementation specific.protected PropertyChangeListenerpropertyChangeListenerThis protected field is implementation specific.protected static intSCROLL_DOWNThe direction of scrolling down.protected static intSCROLL_UPThe direction of scrolling up.protected intscrollDirectionThe direction of scrolling.protected JScrollPanescrollerThis protected field is implementation specific.protected booleanvalueIsAdjustingAs of Java 2 platform v1.4 this previously undocumented field is no longer used.- 
Fields declared in class javax.swing.JComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 - 
Fields declared in class java.awt.ComponentaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 - 
Fields declared in interface java.awt.image.ImageObserverABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
- 
 - 
Constructor SummaryConstructors Constructor Description BasicComboPopup(JComboBox<Object> combo)Constructs a new instance ofBasicComboPopup.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidautoScrollDown()This protected method is implementation specific and should be private.protected voidautoScrollUp()This protected method is implementation specific and should be private.protected RectanglecomputePopupBounds(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 voidconfigureList()Configures the list which is used to hold the combo box items in the popup.protected voidconfigurePopup()Configures the popup portion of the combo box.protected voidconfigureScroller()Configures the scrollable portion which holds the list within the combo box popup.protected MouseEventconvertMouseEvent(MouseEvent e)Converts mouse event.protected ItemListenercreateItemListener()Creates anItemListenerwhich will be added to the combo box.protected KeyListenercreateKeyListener()Creates the key listener that will be added to the combo box.protected JList<Object>createList()Creates the JList used in the popup to display the items in the combo box model.protected ListDataListenercreateListDataListener()Creates a list data listener which will be added to theComboBoxModel.protected MouseListenercreateListMouseListener()Creates a mouse listener that watches for mouse events in the popup's list.protected MouseMotionListenercreateListMouseMotionListener()Creates a mouse motion listener that watches for mouse motion events in the popup's list.protected ListSelectionListenercreateListSelectionListener()Creates a list selection listener that watches for selection changes in the popup's list.protected MouseListenercreateMouseListener()Creates a listener that will watch for mouse-press and release events on the combo box.protected MouseMotionListenercreateMouseMotionListener()Creates the mouse motion listener which will be added to the combo box.protected PropertyChangeListenercreatePropertyChangeListener()Creates aPropertyChangeListenerwhich will be added to the combo box.protected JScrollPanecreateScroller()Creates the scroll pane which houses the scrollable list.protected voiddelegateFocus(MouseEvent e)This is a utility method that helps event handlers figure out where to send the focus when the popup is brought up.AccessibleContextgetAccessibleContext()Gets the AccessibleContext associated with this BasicComboPopup.KeyListenergetKeyListener()Implementation of ComboPopup.getKeyListener().JList<Object>getList()Implementation of ComboPopup.getList().MouseListenergetMouseListener()Implementation of ComboPopup.getMouseListener().MouseMotionListenergetMouseMotionListener()Implementation of ComboPopup.getMouseMotionListener().protected intgetPopupHeightForRowCount(int maxRowCount)Retrieves the height of the popup based on the current ListCellRenderer and the maximum row count.voidhide()Implementation of ComboPopup.hide().protected voidinstallComboBoxListeners()This method adds the necessary listeners to the JComboBox.protected voidinstallComboBoxModelListeners(ComboBoxModel<?> model)Installs the listeners on the combo box model.protected voidinstallKeyboardActions()Registers keyboard actions.protected voidinstallListListeners()Adds the listeners to the list control.booleanisFocusTraversable()Overridden to unconditionally return false.voidshow()Implementation of ComboPopup.show().protected voidstartAutoScrolling(int direction)This protected method is implementation specific and should be private.protected voidstopAutoScrolling()This protected method is implementation specific and should be private.protected voidtogglePopup()Makes the popup visible if it is hidden and makes it hidden if it is visible.protected voiduninstallComboBoxModelListeners(ComboBoxModel<?> model)Removes the listeners from the combo box modelvoiduninstallingUI()Called when the UI is uninstalling.protected voiduninstallKeyboardActions()Unregisters keyboard actions.protected voidupdateListBoxSelectionForEvent(MouseEvent anEvent, boolean shouldScroll)A utility method used by the event listeners.- 
Methods declared in class javax.swing.JPopupMenuadd, add, add, addMenuKeyListener, addPopupMenuListener, addSeparator, createActionChangeListener, createActionComponent, firePopupMenuCanceled, firePopupMenuWillBecomeInvisible, firePopupMenuWillBecomeVisible, getComponent, getComponentAtIndex, getComponentIndex, getDefaultLightWeightPopupEnabled, getInvoker, getLabel, getMargin, getMenuKeyListeners, getPopupMenuListeners, getSelectionModel, getSubElements, getUI, getUIClassID, insert, insert, isBorderPainted, isLightWeightPopupEnabled, isPopupTrigger, isVisible, menuSelectionChanged, pack, paintBorder, paramString, processKeyEvent, processKeyEvent, processMouseEvent, remove, removeMenuKeyListener, removePopupMenuListener, setBorderPainted, setDefaultLightWeightPopupEnabled, setInvoker, setLabel, setLightWeightPopupEnabled, setLocation, setPopupSize, setPopupSize, setSelected, setSelectionModel, setUI, setVisible, show, updateUI
 - 
Methods declared in class javax.swing.JComponentaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, fireVetoableChange, 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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, 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, unregisterKeyboardAction, update
 - 
Methods declared in class java.awt.Containeradd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
 - 
Methods declared in class java.awt.Componentaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 - 
Methods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods declared in interface javax.swing.plaf.basic.ComboPopupisVisible
 
- 
 
- 
- 
- 
Field Detail- 
listprotected JList<Object> list This protected field is implementation specific. Do not access directly or override. Use the accessor methods instead.- See Also:
- getList(),- createList()
 
 - 
scrollerprotected JScrollPane scroller This protected field is implementation specific. Do not access directly or override. Use the create method instead- See Also:
- createScroller()
 
 - 
valueIsAdjustingprotected boolean valueIsAdjusting As of Java 2 platform v1.4 this previously undocumented field is no longer used.
 - 
mouseMotionListenerprotected MouseMotionListener mouseMotionListener This protected field is implementation specific. Do not access directly or override. Use the accessor or create methods instead.
 - 
mouseListenerprotected MouseListener mouseListener This protected field is implementation specific. Do not access directly or override. Use the accessor or create methods instead.- See Also:
- getMouseListener(),- createMouseListener()
 
 - 
keyListenerprotected KeyListener keyListener This protected field is implementation specific. Do not access directly or override. Use the accessor or create methods instead.- See Also:
- getKeyListener(),- createKeyListener()
 
 - 
listSelectionListenerprotected ListSelectionListener listSelectionListener This protected field is implementation specific. Do not access directly or override. Use the create method instead.- See Also:
- createListSelectionListener()
 
 - 
listMouseListenerprotected MouseListener listMouseListener This protected field is implementation specific. Do not access directly or override. Use the create method instead.- See Also:
- createListMouseListener()
 
 - 
listMouseMotionListenerprotected MouseMotionListener listMouseMotionListener This protected field is implementation specific. Do not access directly or override. Use the create method instead- See Also:
- createListMouseMotionListener()
 
 - 
propertyChangeListenerprotected PropertyChangeListener propertyChangeListener This protected field is implementation specific. Do not access directly or override. Use the create method instead- See Also:
- createPropertyChangeListener()
 
 - 
listDataListenerprotected ListDataListener listDataListener This protected field is implementation specific. Do not access directly or override. Use the create method instead- See Also:
- createListDataListener()
 
 - 
itemListenerprotected ItemListener itemListener This protected field is implementation specific. Do not access directly or override. Use the create method instead- See Also:
- createItemListener()
 
 - 
autoscrollTimerprotected Timer autoscrollTimer This protected field is implementation specific. Do not access directly or override.
 - 
hasEnteredprotected boolean hasEntered trueif the mouse cursor is in the popup.
 - 
isAutoScrollingprotected boolean isAutoScrolling Iftruethe auto-scrolling is enabled.
 - 
scrollDirectionprotected int scrollDirection The direction of scrolling.
 - 
SCROLL_UPprotected static final int SCROLL_UP The direction of scrolling up.- See Also:
- Constant Field Values
 
 - 
SCROLL_DOWNprotected static final int SCROLL_DOWN The direction of scrolling down.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
showpublic void show() Implementation of ComboPopup.show().- Specified by:
- showin interface- ComboPopup
- Overrides:
- showin class- Component
 
 - 
hidepublic void hide() Implementation of ComboPopup.hide().- Specified by:
- hidein interface- ComboPopup
- Overrides:
- hidein class- Component
 
 - 
getListpublic JList<Object> getList() Implementation of ComboPopup.getList().- Specified by:
- getListin interface- ComboPopup
- Returns:
- the list that is being used to draw the items in the combo box
 
 - 
getMouseListenerpublic MouseListener getMouseListener() Implementation of ComboPopup.getMouseListener().- Specified by:
- getMouseListenerin interface- ComboPopup
- Returns:
- a MouseListeneror null
- See Also:
- ComboPopup.getMouseListener()
 
 - 
getMouseMotionListenerpublic MouseMotionListener getMouseMotionListener() Implementation of ComboPopup.getMouseMotionListener().- Specified by:
- getMouseMotionListenerin interface- ComboPopup
- Returns:
- a MouseMotionListeneror null
- See Also:
- ComboPopup.getMouseMotionListener()
 
 - 
getKeyListenerpublic KeyListener getKeyListener() Implementation of ComboPopup.getKeyListener().- Specified by:
- getKeyListenerin interface- ComboPopup
- Returns:
- a KeyListeneror null
- See Also:
- ComboPopup.getKeyListener()
 
 - 
uninstallingUIpublic 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().- Specified by:
- uninstallingUIin interface- ComboPopup
 
 - 
uninstallComboBoxModelListenersprotected void uninstallComboBoxModelListeners(ComboBoxModel<?> model) Removes the listeners from the combo box model- Parameters:
- model- The combo box model to install listeners
- See Also:
- installComboBoxModelListeners(javax.swing.ComboBoxModel<?>)
 
 - 
uninstallKeyboardActionsprotected void uninstallKeyboardActions() Unregisters keyboard actions.
 - 
createMouseListenerprotected 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 MouseListenerwhich will be added to the combo box or null
 
 - 
createMouseMotionListenerprotected 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 MouseMotionListenerwhich will be added to the combo box or null
 
 - 
createKeyListenerprotected 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 KeyListeneror null
 
 - 
createListSelectionListenerprotected 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 ListSelectionListeneror null
 
 - 
createListDataListenerprotected ListDataListener createListDataListener() Creates a list data listener which will be added to theComboBoxModel. If this method returns null then it will not be added to the combo box model.- Returns:
- an instance of a ListDataListeneror null
 
 - 
createListMouseListenerprotected 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 MouseListeneror null
 
 - 
createListMouseMotionListenerprotected 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 MouseMotionListeneror null
 
 - 
createPropertyChangeListenerprotected PropertyChangeListener createPropertyChangeListener() Creates aPropertyChangeListenerwhich 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 PropertyChangeListeneror null
 
 - 
createItemListenerprotected ItemListener createItemListener() Creates anItemListenerwhich 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 ItemListeneror null
 
 - 
createListprotected JList<Object> 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 JListused to display the combo box items
 
 - 
configureListprotected 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.- See Also:
- createList()
 
 - 
installListListenersprotected void installListListeners() Adds the listeners to the list control.
 - 
createScrollerprotected JScrollPane createScroller() Creates the scroll pane which houses the scrollable list.- Returns:
- the scroll pane which houses the scrollable list
 
 - 
configureScrollerprotected 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.
 - 
configurePopupprotected void configurePopup() Configures the popup portion of the combo box. This method is called when the UI class is created.
 - 
installComboBoxListenersprotected void installComboBoxListeners() This method adds the necessary listeners to the JComboBox.
 - 
installComboBoxModelListenersprotected void installComboBoxModelListeners(ComboBoxModel<?> model) Installs the listeners on the combo box model. Any listeners installed on the combo box model should be removed inuninstallComboBoxModelListeners.- Parameters:
- model- The combo box model to install listeners
- See Also:
- uninstallComboBoxModelListeners(javax.swing.ComboBoxModel<?>)
 
 - 
installKeyboardActionsprotected void installKeyboardActions() Registers keyboard actions.
 - 
isFocusTraversablepublic boolean isFocusTraversable() Overridden to unconditionally return false.- Overrides:
- isFocusTraversablein class- Component
- Returns:
- trueif this- Componentis focusable;- falseotherwise
- See Also:
- Component.setFocusable(boolean)
 
 - 
startAutoScrollingprotected void startAutoScrolling(int direction) This protected method is implementation specific and should be private. do not call or override.- Parameters:
- direction- the direction of scrolling
 
 - 
stopAutoScrollingprotected void stopAutoScrolling() This protected method is implementation specific and should be private. do not call or override.
 - 
autoScrollUpprotected void autoScrollUp() This protected method is implementation specific and should be private. do not call or override.
 - 
autoScrollDownprotected void autoScrollDown() This protected method is implementation specific and should be private. do not call or override.
 - 
getAccessibleContextpublic AccessibleContext getAccessibleContext() Gets the AccessibleContext associated with this BasicComboPopup. The AccessibleContext will have its parent set to the ComboBox.- Specified by:
- getAccessibleContextin interface- Accessible
- Overrides:
- getAccessibleContextin class- JPopupMenu
- Returns:
- an AccessibleContext for the BasicComboPopup
- Since:
- 1.5
 
 - 
delegateFocusprotected void delegateFocus(MouseEvent e) This 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- a mouse event
 
 - 
togglePopupprotected void togglePopup() Makes the popup visible if it is hidden and makes it hidden if it is visible.
 - 
convertMouseEventprotected MouseEvent convertMouseEvent(MouseEvent e) Converts mouse event.- Parameters:
- e- a mouse event
- Returns:
- converted mouse event
 
 - 
getPopupHeightForRowCountprotected int getPopupHeightForRowCount(int maxRowCount) Retrieves the height of the popup based on the current ListCellRenderer and the maximum row count.- Parameters:
- maxRowCount- the row count
- Returns:
- the height of the popup
 
 - 
computePopupBoundsprotected 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
 
 - 
updateListBoxSelectionForEventprotected 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- a mouse event
- shouldScroll- if- truelist should be scrolled.
 
 
- 
 
-