模块 java.desktop

类 BasicComboPopup.ListDataHandler

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

public class BasicComboPopup.ListDataHandler extends Object implements ListDataListener
从 1.4 开始,这个类现在已经过时,不做任何事情,并且只是为了向后的 API 兼容性而被包含在内。请勿调用或重写。

该功能已迁移到 ItemHandler 中。

参见:
  • 构造方法详细信息

    • ListDataHandler

      public ListDataHandler()
      构造一个 ListDataHandler
  • 方法详情

    • 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封装了事件信息