JavaTM 2 Platform
Standard Ed. 6

javax.swing.plaf.basic
类 BasicComboBoxUI.ListDataHandler

java.lang.Object
  继承者 javax.swing.plaf.basic.BasicComboBoxUI.ListDataHandler
所有已实现的接口:
EventListener, ListDataListener
正在封闭类:
BasicComboBoxUI

public class BasicComboBoxUI.ListDataHandler
extends Object
implements ListDataListener

此侦听器观察 ComboBoxModel 中的更改。

此公开内部类应该视为受保护内部类。仅在 BasicComboBoxUI 的子类中实例化此类。

另请参见:
BasicComboBoxUI.createListDataListener()

构造方法摘要
BasicComboBoxUI.ListDataHandler()
           
 
方法摘要
 void contentsChanged(ListDataEvent e)
          在列表的内容以某种太过复杂以至用以前的方法难以描述的方式发生更改时发送。
 void intervalAdded(ListDataEvent e)
          在已将 index0,index1 区间中的索引插入数据模型中之后发送。
 void intervalRemoved(ListDataEvent e)
          在已将 index0,index1 区间中的索引从数据模型中移除后发送。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

BasicComboBoxUI.ListDataHandler

public BasicComboBoxUI.ListDataHandler()
方法详细信息

contentsChanged

public void contentsChanged(ListDataEvent e)
从接口 ListDataListener 复制的描述
在列表的内容以某种太过复杂以至用以前的方法难以描述的方式发生更改时发送。例如,在已经替换某个项时发送此方法。Index0 和 index1 括出了该范围。

指定者:
接口 ListDataListener 中的 contentsChanged
参数:
e - 封装事件信息的 ListDataEvent

intervalAdded

public void intervalAdded(ListDataEvent e)
从接口 ListDataListener 复制的描述
在已将 index0,index1 区间中的索引插入数据模型中之后发送。新区间既包括 index0 也包括 index1。

指定者:
接口 ListDataListener 中的 intervalAdded
参数:
e - 封装事件信息的 ListDataEvent

intervalRemoved

public void intervalRemoved(ListDataEvent e)
从接口 ListDataListener 复制的描述
在已将 index0,index1 区间中的索引从数据模型中移除后发送。该区间既包括 index0 也包括 index1。

指定者:
接口 ListDataListener 中的 intervalRemoved
参数:
e - 封装事件信息的 ListDataEvent

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only