| org.zkoss.zkplus.databind.CollectionItem
All known Subclasses: org.zkoss.zkplus.databind.ComboitemCollectionItem, org.zkoss.zkplus.databind.RowCollectionItem, org.zkoss.zkplus.databind.ListitemCollectionItem,
CollectionItem | public interface CollectionItem (Code) | | The CollectionItem is used by
DataBinder and provides an
interface for collection component to interact with the DataBinder
such as Grid or Listbox.
author: jumperchen See Also: DataBinder since: 3.0.0 |
getComponentAtIndexByOwner | public Component getComponentAtIndexByOwner(Component comp, int index)(Code) | |
Returns the component by the index in the comp's children.
Parameters: comp - Collection owner component such as Grid. Parameters: index - index of the element to return Component the component at the specified position in the list ofcomp's children. |
getComponentCollectionOwner | public Component getComponentCollectionOwner(Component comp)(Code) | |
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. Component the comp's owner. |
getModelByOwner | public ListModel getModelByOwner(Component comp)(Code) | |
Returns the component model as
ListModel
Parameters: comp - Collection owner component such as Grid. ListModel |
setupBindingRenderer | public void setupBindingRenderer(Component comp, DataBinder binder)(Code) | |
Sets the binding renderer for the template component such as Listitem
or Row.
Parameters: comp - A component such as Row or Listitem. Parameters: binder - The associated DataBinder |
|
|