Package com.explodingpixels.widgets.plaf
Class EPComboPopup
- java.lang.Object
-
- com.explodingpixels.widgets.plaf.EPComboPopup
-
- All Implemented Interfaces:
javax.swing.plaf.basic.ComboPopup
public class EPComboPopup extends java.lang.Object implements javax.swing.plaf.basic.ComboPopup
An implementation ofComboPopup
that uses actualJMenuItem
s rather than aJList
to display it's contents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
EPComboPopup.ComboBoxVerticalCenterProvider
-
Constructor Summary
Constructors Constructor Description EPComboPopup(javax.swing.JComboBox comboBox)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.event.KeyListener
getKeyListener()
javax.swing.JList
getList()
This method is not implemented and would throw anUnsupportedOperationException
ifBasicComboBoxUI
didn't call it.java.awt.event.MouseListener
getMouseListener()
java.awt.event.MouseMotionListener
getMouseMotionListener()
void
hide()
boolean
isVisible()
void
setFont(java.awt.Font font)
void
setVerticalComponentCenterProvider(EPComboPopup.ComboBoxVerticalCenterProvider comboBoxVerticalCenterProvider)
void
show()
void
uninstallingUI()
-
-
-
Method Detail
-
setFont
public void setFont(java.awt.Font font)
-
setVerticalComponentCenterProvider
public void setVerticalComponentCenterProvider(EPComboPopup.ComboBoxVerticalCenterProvider comboBoxVerticalCenterProvider)
-
show
public void show()
- Specified by:
show
in interfacejavax.swing.plaf.basic.ComboPopup
-
hide
public void hide()
- Specified by:
hide
in interfacejavax.swing.plaf.basic.ComboPopup
-
isVisible
public boolean isVisible()
- Specified by:
isVisible
in interfacejavax.swing.plaf.basic.ComboPopup
-
getList
public javax.swing.JList getList()
This method is not implemented and would throw anUnsupportedOperationException
ifBasicComboBoxUI
didn't call it. Thus, this method should not be used, as it always returns null.- Specified by:
getList
in interfacejavax.swing.plaf.basic.ComboPopup
- Returns:
- null.
-
getMouseListener
public java.awt.event.MouseListener getMouseListener()
- Specified by:
getMouseListener
in interfacejavax.swing.plaf.basic.ComboPopup
-
getMouseMotionListener
public java.awt.event.MouseMotionListener getMouseMotionListener()
- Specified by:
getMouseMotionListener
in interfacejavax.swing.plaf.basic.ComboPopup
-
getKeyListener
public java.awt.event.KeyListener getKeyListener()
- Specified by:
getKeyListener
in interfacejavax.swing.plaf.basic.ComboPopup
-
uninstallingUI
public void uninstallingUI()
- Specified by:
uninstallingUI
in interfacejavax.swing.plaf.basic.ComboPopup
-
-