org.zkoss.zkplus.databind
Class BindingListModelListModel<E>

java.lang.Object
  extended by org.zkoss.zkplus.databind.BindingListModelListModel<E>
All Implemented Interfaces:
Serializable, BindingListModel<E>, BindingListModelExt<E>, org.zkoss.zul.ext.Selectable<E>, org.zkoss.zul.ListModel<E>

Deprecated. As of release 7.0.0, replace with new ZK binding.

public class BindingListModelListModel<E>
extends Object
implements BindingListModel<E>, org.zkoss.zul.ext.Selectable<E>, Serializable, BindingListModelExt<E>

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

Since:
5.0.8
Author:
peterkuo
See Also:
Serialized Form

Field Summary
protected  org.zkoss.zul.ListModel<E> _model
          Deprecated.  
 
Constructor Summary
BindingListModelListModel(org.zkoss.zul.ListModel<E> model)
          Deprecated.  
BindingListModelListModel(org.zkoss.zul.ListModel<E> model, boolean distinct)
          Deprecated.  
 
Method Summary
 void addListDataListener(org.zkoss.zul.event.ListDataListener l)
          Deprecated.  
 boolean addToSelection(E obj)
          Deprecated.  
 void clearSelection()
          Deprecated.  
 E getElementAt(int index)
          Deprecated.  
 org.zkoss.zul.ListModel<E> getInnerModel()
          Deprecated.  
 Set<E> getSelection()
          Deprecated.  
 int getSize()
          Deprecated.  
 int[] indexesOf(Object elm)
          Deprecated. Returns indexes of the given object inside a ListModel.
 int indexOf(Object obj)
          Deprecated. Returns index of the given object inside a ListModel.
 boolean isDistinct()
          Deprecated. Returns true if all objects inside this ListModel is distinct.
 boolean isMultiple()
          Deprecated.  
 boolean isSelected(Object obj)
          Deprecated.  
 boolean isSelectionEmpty()
          Deprecated.  
 boolean removeFromSelection(Object obj)
          Deprecated.  
 void removeListDataListener(org.zkoss.zul.event.ListDataListener l)
          Deprecated.  
 void setMultiple(boolean multiple)
          Deprecated.  
 void setSelection(Collection<? extends E> selection)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_model

protected org.zkoss.zul.ListModel<E> _model
Deprecated. 
Constructor Detail

BindingListModelListModel

public BindingListModelListModel(org.zkoss.zul.ListModel<E> model)
Deprecated. 

BindingListModelListModel

public BindingListModelListModel(org.zkoss.zul.ListModel<E> model,
                                 boolean distinct)
Deprecated. 
Method Detail

indexOf

public int indexOf(Object obj)
Deprecated. 
Description copied from interface: BindingListModel
Returns index of the given object inside a ListModel.

Specified by:
indexOf in interface BindingListModel<E>

getElementAt

public E getElementAt(int index)
Deprecated. 
Specified by:
getElementAt in interface org.zkoss.zul.ListModel<E>

getSize

public int getSize()
Deprecated. 
Specified by:
getSize in interface org.zkoss.zul.ListModel<E>

addListDataListener

public void addListDataListener(org.zkoss.zul.event.ListDataListener l)
Deprecated. 
Specified by:
addListDataListener in interface org.zkoss.zul.ListModel<E>

removeListDataListener

public void removeListDataListener(org.zkoss.zul.event.ListDataListener l)
Deprecated. 
Specified by:
removeListDataListener in interface org.zkoss.zul.ListModel<E>

getInnerModel

public org.zkoss.zul.ListModel<E> getInnerModel()
Deprecated. 

getSelection

public Set<E> getSelection()
Deprecated. 
Specified by:
getSelection in interface org.zkoss.zul.ext.Selectable<E>

setSelection

public void setSelection(Collection<? extends E> selection)
Deprecated. 
Specified by:
setSelection in interface org.zkoss.zul.ext.Selectable<E>

isSelected

public boolean isSelected(Object obj)
Deprecated. 
Specified by:
isSelected in interface org.zkoss.zul.ext.Selectable<E>

isSelectionEmpty

public boolean isSelectionEmpty()
Deprecated. 
Specified by:
isSelectionEmpty in interface org.zkoss.zul.ext.Selectable<E>

addToSelection

public boolean addToSelection(E obj)
Deprecated. 
Specified by:
addToSelection in interface org.zkoss.zul.ext.Selectable<E>

removeFromSelection

public boolean removeFromSelection(Object obj)
Deprecated. 
Specified by:
removeFromSelection in interface org.zkoss.zul.ext.Selectable<E>

clearSelection

public void clearSelection()
Deprecated. 
Specified by:
clearSelection in interface org.zkoss.zul.ext.Selectable<E>

setMultiple

public void setMultiple(boolean multiple)
Deprecated. 
Specified by:
setMultiple in interface org.zkoss.zul.ext.Selectable<E>

isMultiple

public boolean isMultiple()
Deprecated. 
Specified by:
isMultiple in interface org.zkoss.zul.ext.Selectable<E>

indexesOf

public int[] indexesOf(Object elm)
Deprecated. 
Description copied from interface: BindingListModelExt
Returns indexes of the given object inside a ListModel.

Specified by:
indexesOf in interface BindingListModelExt<E>
Parameters:
elm - the specified object
Returns:
indexes that contains the given object; return empty array if none found.

isDistinct

public boolean isDistinct()
Deprecated. 
Description copied from interface: BindingListModelExt
Returns true if all objects inside this ListModel is distinct. This is for DataBinder performance so there is no need to scan the whole ListModel as long as find one.

Specified by:
isDistinct in interface BindingListModelExt<E>
Returns:
true if all objects inside this ListModel is distinct; otherwise, return false.


Copyright © 2014. All rights reserved.