Module java.desktop

Class BasicComboBoxUI.ListDataHandler

java.lang.Object
javax.swing.plaf.basic.BasicComboBoxUI.ListDataHandler
所有已实现的接口:
EventListener, ListDataListener
封装类:
BasicComboBoxUI

public class BasicComboBoxUI.ListDataHandler extends Object implements ListDataListener
此监听器用于监视ComboBoxModel中的更改。

此公共内部类应被视为受保护的。只能在BasicComboBoxUI的子类中实例化。

参见:
  • Constructor Details

    • ListDataHandler

      public ListDataHandler()
      构造一个ListDataHandler
  • Method Details

    • contentsChanged

      public void contentsChanged(ListDataEvent e)
      从接口中复制的描述: ListDataListener
      当列表的内容以无法用先前的方法描述的方式发生更改时发送。例如,当项目被替换时发送。Index0和index1框定了更改。
      指定者:
      contentsChanged 在接口 ListDataListener
      参数:
      e - 封装事件信息的ListDataEvent
    • intervalAdded

      public void intervalAdded(ListDataEvent e)
      从接口中复制的描述: ListDataListener
      在数据模型中插入index0和index1之间的索引后发送。新区间包括index0和index1。
      指定者:
      intervalAdded 在接口 ListDataListener
      参数:
      e - 封装事件信息的ListDataEvent
    • intervalRemoved

      public void intervalRemoved(ListDataEvent e)
      从接口中复制的描述: ListDataListener
      在数据模型中删除index0和index1之间的索引后发送。区间包括index0和index1。
      指定者:
      intervalRemoved 在接口 ListDataListener
      参数:
      e - 封装事件信息的ListDataEvent