-
- 所有已知实现类:
-
BasicComboPopup,MetalComboBoxUI.MetalComboPopup
public interface ComboPopup定义实现组合框的弹出部分所需的方法的界面。警告:此类的序列化对象与将来的Swing版本不兼容。 当前的序列化支持适用于运行相同版本的Swing的应用程序之间的短期存储或RMI。 从1.4开始,支持所有JavaBeans的长期存储已被添加到
java.beans包中。 请参阅XMLEncoder。
-
-
方法摘要
所有方法 接口方法 抽象方法 Modifier and Type 方法 描述 KeyListenergetKeyListener()返回一个将被添加到组合框或null的关键侦听器。JList<Object>getList()返回用于在组合框中绘制项目的列表。MouseListenergetMouseListener()返回一个将被添加到组合框或null的鼠标监听器。MouseMotionListenergetMouseMotionListener()返回一个将被添加到组合框或null的鼠标移动侦听器。voidhide()隐藏弹出窗口booleanisVisible()如果弹出窗口可见(正在显示),则返回true。voidshow()显示弹出窗口voiduninstallingUI()调用通知ComboPopup用户界面正在卸载。
-
-
-
方法详细信息
-
show
void show()
显示弹出窗口
-
hide
void hide()
隐藏弹出窗口
-
isVisible
boolean isVisible()
如果弹出窗口可见(正在显示),则返回true。- 结果
-
true如果组件可见;false否则。
-
getMouseListener
MouseListener getMouseListener()
返回一个将被添加到组合框或null的鼠标监听器。 如果此方法返回null,则不会将其添加到组合框中。- 结果
-
一个
MouseListener或null
-
getMouseMotionListener
MouseMotionListener getMouseMotionListener()
返回一个将被添加到组合框或null的鼠标移动侦听器。 如果此方法返回null,则不会将其添加到组合框中。- 结果
-
一个
MouseMotionListener或null
-
getKeyListener
KeyListener getKeyListener()
返回一个将被添加到组合框或null的关键侦听器。 如果此方法返回null,则不会将其添加到组合框中。- 结果
- 一个将被添加到组合框或null的关键侦听器
-
uninstallingUI
void uninstallingUI()
调用通知ComboPopup用户界面正在卸载。 X- 20045 X- 200 X- 200 200 X- 200 X- 200 200 X- 200 200 X- 200 X- 200 200
-
-