public interface CollectionItem
DataBinder and provides an
interface for collection component to interact with the DataBinder
such as Grid or Listbox.DataBinder| Modifier and Type | Method and Description |
|---|---|
org.zkoss.zk.ui.Component |
getComponentAtIndexByOwner(org.zkoss.zk.ui.Component comp,
int index)
Deprecated.
Returns the component by the index in the comp's children.
|
org.zkoss.zk.ui.Component |
getComponentCollectionOwner(org.zkoss.zk.ui.Component comp)
Deprecated.
Returns the component's owner.
|
org.zkoss.zul.ListModel |
getModelByOwner(org.zkoss.zk.ui.Component comp)
Deprecated.
Returns the component model as
ListModel
|
void |
setupBindingRenderer(org.zkoss.zk.ui.Component comp,
DataBinder binder)
Deprecated.
Sets the binding renderer for the template component such as Listitem
or Row.
|
org.zkoss.zk.ui.Component getComponentCollectionOwner(org.zkoss.zk.ui.Component comp)
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.comp - A component as Row or Listitem.org.zkoss.zk.ui.Component getComponentAtIndexByOwner(org.zkoss.zk.ui.Component comp,
int index)
Returns the component by the index in the comp's children.
comp - Collection owner component such as Grid.index - index of the element to returnorg.zkoss.zul.ListModel getModelByOwner(org.zkoss.zk.ui.Component comp)
Returns the component model as ListModel
comp - Collection owner component such as Grid.void setupBindingRenderer(org.zkoss.zk.ui.Component comp,
DataBinder binder)
Sets the binding renderer for the template component such as Listitem or Row.
comp - A component such as Row or Listitem.binder - The associated DataBinderCopyright © 2015. All rights reserved.