⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listdataevent.java

📁 非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应用程序更漂亮更易操作。 官网:www.zkoss.org
💻 JAVA
字号:
/* ListDataEvent.java{{IS_NOTE	Purpose:			Description:			History:		Wed Aug 17 18:03:55     2005, Created by tomyeh}}IS_NOTECopyright (C) 2005 Potix Corporation. All Rights Reserved.{{IS_RIGHT	This program is distributed under GPL Version 2.0 in the hope that	it will be useful, but WITHOUT ANY WARRANTY.}}IS_RIGHT*/package org.zkoss.zul.event;import org.zkoss.zul.ListModel;/** * Defines an event that encapsulates changes to a list.  * * @author tomyeh */public class ListDataEvent {	/** Identifies one or more changes in the lists contents. */	public static final int CONTENTS_CHANGED = 0;    /** Identifies the addition of one or more contiguous items to the list. */    	public static final int INTERVAL_ADDED = 1;    /** Identifies the removal of one or more contiguous items from the list. */   	public static final int INTERVAL_REMOVED = 2;	private final ListModel _model;	private final int _type, _index0, _index1;	public ListDataEvent(ListModel model, int type, int index0, int index1) {		if (model == null)			throw new NullPointerException();		_model = model;		_type = type;		_index0 = index0;		_index1 = index1;	}	/** Returns the list model that fires this event.	 */	public ListModel getModel() {		return _model;	}	/** Returns the event type. One of {@link #CONTENTS_CHANGED},	 * {@link #INTERVAL_ADDED}, or {@link #INTERVAL_REMOVED}.	 */	public int getType() {		return _type;	}	/** Returns the lower index of the change range.	 * For a single element, this value is the same as that returned by	 * {@link #getIndex1}.	 */	public int getIndex0() {		return _index0;	}	/** Returns the upper index of the change range.	 * For a single element, this value is the same as that returned by	 * {@link #getIndex0}.	 */	public int getIndex1() {		return _index1;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -