org.rcfaces.core.model
Class AbstractFilteredCollection

java.lang.Object
  extended by org.rcfaces.core.model.AbstractFilteredCollection
All Implemented Interfaces:
Iterable, Collection, IFiltredCollection, IFiltredCollection2
Direct Known Subclasses:
AbstractFilteredList

public abstract class AbstractFilteredCollection
extends Object
implements Collection, IFiltredCollection, IFiltredCollection2

Version:
$Revision: 1.18 $ $Date: 2011/06/16 09:29:41 $
Author:
Olivier Oeuillot (latest modification by $Author: jbmeslin $)

Nested Class Summary
protected  class AbstractFilteredCollection.FilteredIterator
           
 
Nested classes/interfaces inherited from interface org.rcfaces.core.model.IFiltredCollection
IFiltredCollection.IFiltredIterator
 
Field Summary
protected  Collection collection
           
static Collection EMPTY_COLLECTION
           
static IFiltredCollection EMPTY_FILTERED_COLLECTION
           
 
Fields inherited from interface org.rcfaces.core.model.IFiltredCollection
NO_MAXIMUM_RESULT_NUMBER
 
Constructor Summary
AbstractFilteredCollection()
           
AbstractFilteredCollection(Collection collection)
           
AbstractFilteredCollection(SelectItem[] selecItems)
           
 
Method Summary
protected abstract  boolean accept(IFilterProperties filter, SelectItem selectItem)
           
 boolean add(Object o)
           
 boolean addAll(Collection c)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection c)
           
 boolean isEmpty()
           
 Iterator iterator()
           
 Iterator iterator(IFilterProperties filterProperties, int maxNumberResult)
           
 Iterator iterator(UIComponent component, IFilterProperties filterProperties, int maxNumberResult)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection c)
           
 boolean retainAll(Collection c)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

EMPTY_COLLECTION

public static final Collection EMPTY_COLLECTION

EMPTY_FILTERED_COLLECTION

public static final IFiltredCollection EMPTY_FILTERED_COLLECTION

collection

protected final Collection collection
Constructor Detail

AbstractFilteredCollection

public AbstractFilteredCollection()

AbstractFilteredCollection

public AbstractFilteredCollection(SelectItem[] selecItems)

AbstractFilteredCollection

public AbstractFilteredCollection(Collection collection)
Method Detail

accept

protected abstract boolean accept(IFilterProperties filter,
                                  SelectItem selectItem)
Parameters:
filter -
selectItem -
Returns:
true if the selectItem is sent to the client.

size

public int size()
Specified by:
size in interface Collection

add

public boolean add(Object o)
Specified by:
add in interface Collection

addAll

public boolean addAll(Collection c)
Specified by:
addAll in interface Collection

clear

public void clear()
Specified by:
clear in interface Collection

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection

containsAll

public boolean containsAll(Collection c)
Specified by:
containsAll in interface Collection

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection

removeAll

public boolean removeAll(Collection c)
Specified by:
removeAll in interface Collection

retainAll

public boolean retainAll(Collection c)
Specified by:
retainAll in interface Collection

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection

toArray

public Object[] toArray(Object[] a)
Specified by:
toArray in interface Collection

iterator

public Iterator iterator(IFilterProperties filterProperties,
                         int maxNumberResult)
Specified by:
iterator in interface IFiltredCollection

iterator

public Iterator iterator(UIComponent component,
                         IFilterProperties filterProperties,
                         int maxNumberResult)
Specified by:
iterator in interface IFiltredCollection2


Copyright © 2006-2011 Vedana. All Rights Reserved.