Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* CollectionItem.java
 
 
  Purpose:
  
  Description:
  
  History:
  Jul 31, 2007 2:51:58 PM , Created by jumperchen
 Copyright (C) 2007 Potix Corporation. All Rights Reserved.
 {{IS_RIGHT
 This program is distributed under LGPL Version 2.1 in the hope that
 it will be useful, but WITHOUT ANY WARRANTY.
 }}IS_RIGHT
 */
package org.zkoss.zkplus.databind;
The CollectionItem is used by DataBinder and provides an interface for collection component to interact with the DataBinder such as Grid or Listbox.

Deprecated:
As of release 7.0.0, replace with new ZK binding.
Author(s):
jumperchen
Since:
3.0.0
See also:
DataBinder
public interface CollectionItem {

Returns the component's owner.

For example: if this comp is a Row component then this method will return the associated Grid component of the Row.

Parameters:
comp A component as Row or Listitem.
Returns:
Component the comp's owner.

Returns the component by the index in the comp's children.

Parameters:
comp Collection owner component such as Grid.
index index of the element to return
Returns:
Component the component at the specified position in the list of comp's children.
	public Component getComponentAtIndexByOwner(Component compint index);

Returns the component model as org.zkoss.zul.ListModel

Parameters:
comp Collection owner component such as Grid.
Returns:
ListModel

Sets the binding renderer for the template component such as Listitem or Row.

Parameters:
comp A component such as Row or Listitem.
binder The associated DataBinder
	public void setupBindingRenderer(Component compDataBinder binder);
New to GrepCode? Check out our FAQ X