org.openxava.filters
Class CollectionInViewBaseFilter

java.lang.Object
  extended by org.openxava.filters.CollectionInViewBaseFilter
All Implemented Interfaces:
java.io.Serializable, IFilter
Direct Known Subclasses:
CollectionInViewFilter, CollectionWithConditionInViewFilter

public abstract class CollectionInViewBaseFilter
extends java.lang.Object
implements IFilter

Used for implementing collections using a Tab from a View.

Author:
Javier Paniza
See Also:
Serialized Form

Constructor Summary
CollectionInViewBaseFilter()
           
 
Method Summary
 java.lang.Object filter(java.lang.Object o)
           
protected abstract  java.util.Collection getKeyValues()
          Values to add as key at the begin of arguments for filtering.
 View getView()
           
 void setView(View view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionInViewBaseFilter

public CollectionInViewBaseFilter()
Method Detail

filter

public java.lang.Object filter(java.lang.Object o)
                        throws FilterException
Specified by:
filter in interface IFilter
Parameters:
o - Argument to filter. A object.
Returns:
Argument filtered. Can be a object array.
Throws:
FilterException - Any problem.

getKeyValues

protected abstract java.util.Collection getKeyValues()
                                              throws XavaException
Values to add as key at the begin of arguments for filtering.

Throws:
XavaException

getView

public View getView()

setView

public void setView(View view)