com.sas.dataselectors.filters
Class BusinessModelToFilterableListModelAdapter

com.sas.dataselectors.filters.BusinessModelToFilterableListModelAdapter
All Implemented Interfaces:
FilterableListModelInterface

public class BusinessModelToFilterableListModelAdapter

The BusinessModelToFilterableListModelAdapter constructs the list of filterable items for the given BusinessModel interface as a data source.


Field Summary
 
Fields inherited from class com.sas.dataselectors.filters.AbstractFilterableListModel
_dataSource, _filterableItems, _initialFilter, _initialized, _locale, environment
 
Constructor Summary
BusinessModelToFilterableListModelAdapter()
          Constructs a new adapter using the default properties.
BusinessModelToFilterableListModelAdapter(com.sas.iquery.metadata.business.BusinessModel dataSource)
          Constructs a new adapter from the specified native model.
BusinessModelToFilterableListModelAdapter(com.sas.iquery.metadata.business.BusinessModel dataSource, java.lang.Object initialFilter)
          Constructs a new adapter from the specified native model and initial filter.
 
Method Summary
protected  FilterableItemInterface createFilterableItem(java.lang.Object filterable)
          Creates an instance of FilterableItemInterface for the given object from the native filter model.
protected  java.util.List getFilterableObjects()
          Returns the list of native filter model objects that should be used for filterable items in the filter model.
 
Methods inherited from class com.sas.dataselectors.filters.AbstractFilterableListModel
cancel, clearAll, clearFilter, commitChanges, createFilterableItemList, getEnvironment, getFilterableItem, getFilterableItems, getInitialFilter, getLocale, getModel, setEnvironment, setInitialFilter, setLocale, setModel
 

Constructor Detail

BusinessModelToFilterableListModelAdapter

public BusinessModelToFilterableListModelAdapter()
Constructs a new adapter using the default properties.


BusinessModelToFilterableListModelAdapter

public BusinessModelToFilterableListModelAdapter(com.sas.iquery.metadata.business.BusinessModel dataSource)
Constructs a new adapter from the specified native model.

Parameters:
dataSource - the native model

BusinessModelToFilterableListModelAdapter

public BusinessModelToFilterableListModelAdapter(com.sas.iquery.metadata.business.BusinessModel dataSource,
                                                 java.lang.Object initialFilter)
Constructs a new adapter from the specified native model and initial filter. The initial filter (if given) will supply the initial structure and contents of the filter model.

Parameters:
dataSource - the native model
initialFilter - the initial filter
Method Detail

getFilterableObjects

protected java.util.List getFilterableObjects()
Returns the list of native filter model objects that should be used for filterable items in the filter model.

Specified by:
getFilterableObjects in class AbstractFilterableListModel
Returns:
the list of native filter model objects to process
See Also:
AbstractFilterableListModel.getFilterableObjects()

createFilterableItem

protected FilterableItemInterface createFilterableItem(java.lang.Object filterable)
Creates an instance of FilterableItemInterface for the given object from the native filter model.

Specified by:
createFilterableItem in class AbstractFilterableListModel
Parameters:
filterable - the native model object to process
Returns:
the FilterableItemInterface instance representing the given object
See Also:
AbstractFilterableListModel.createFilterableItem(Object)



Copyright © 2009 SAS Institute Inc. All Rights Reserved.