Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* BindingGroupsListModel.java
 
 {{IS_NOTE
 	Purpose:
 		
 	Description:
 		
 	History:
 		Jan 26, 2011 10:47:25 AM, Created by henrichen
}}IS_NOTE
Copyright (C) 2011 Potix Corporation. All Rights Reserved.
*/
package org.zkoss.zkplus.databind;

This is the BindingListModel as a org.zkoss.zul.impl.GroupsListModel to be used with org.zkoss.zul.Listbox, org.zkoss.zul.Grid, and DataBinder. Add or remove the contents of this model as a GroupListModel would cause the associated Listbox or Grid to change accordingly.

Deprecated:
As of release 7.0.0, replace with new ZK binding.
Author(s):
henrichen
Since:
5.0.6
	@SuppressWarnings("unchecked")
		super(model);
	}
	//--BindingListModel--//
	public int indexOf(Object obj) {
		for(int j = getSize(); j-- > 0;) {
			if (Objects.equals(getElementAt(j), obj)) {
				return j;
			}
		}
		return -1;
	}
New to GrepCode? Check out our FAQ X