org.shept.beans.support
Interface ExampleDefinition

All Superinterfaces:
FilterDefinition

public interface ExampleDefinition
extends FilterDefinition

Marker interface to indicate a valid FilterProvider. The @see ScrollingListProviderFactory will use this definition to initiantiate appropriate Scrolling list objects. This interface is typically used on entity objects to define instances as examples to the underlying filter. A simple implementation in a user object would just return the uninitialized object meaning no filtering is performed and the ListProvider will just return all available instances from the database. public ModelCreation getNewModelTemplate() { // initialize properties here as required return new User(); } Note that you will usually have to annotate FilterDefinition.getNewModelTemplate() with a @Transient for entity models.

Version:
$Rev: 61 $
Author:
Andi

Method Summary
 
Methods inherited from interface org.shept.beans.support.FilterDefinition
getNewModelTemplate
 



Copyright © 2011. All Rights Reserved.