|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.dataselectors.filters.BusinessQueryToFilterableListModelAdapter
public class BusinessQueryToFilterableListModelAdapter
The BusinessQueryToFilterableListModelAdapter constructs the list of filterable items for the given BusinessQuery interface as a data source.
| Field Summary |
|---|
| Fields inherited from class com.sas.dataselectors.filters.AbstractFilterableListModel |
|---|
_dataSource, _filterableItems, _initialFilter, _initialized, _locale, environment |
| Constructor Summary | |
|---|---|
BusinessQueryToFilterableListModelAdapter()
Constructs a new adapter using the default properties. |
|
BusinessQueryToFilterableListModelAdapter(com.sas.iquery.metadata.business.BusinessQuery dataSource)
Constructs a new adapter from the specified native model. |
|
BusinessQueryToFilterableListModelAdapter(com.sas.iquery.metadata.business.BusinessQuery dataSource,
int environment)
Constructs a new adapter from the specified native model. |
|
BusinessQueryToFilterableListModelAdapter(com.sas.iquery.metadata.business.BusinessQuery dataSource,
java.lang.Object initialFilter)
Constructs a new adapter from the specified native model and initial filter. |
|
| Method Summary | |
|---|---|
void |
cancel()
Voids any changes made by the filter model to the native model and frees any resources (as appropriate). |
void |
clearFilter(int index)
Removes the filter from the filterable item at the specified index. |
boolean |
commitChanges()
Commits any model changes in all filterable items to the native model. |
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 |
|---|
clearAll, createFilterableItemList, getEnvironment, getFilterableItem, getFilterableItems, getInitialFilter, getLocale, getModel, setEnvironment, setInitialFilter, setLocale, setModel |
| Constructor Detail |
|---|
public BusinessQueryToFilterableListModelAdapter()
public BusinessQueryToFilterableListModelAdapter(com.sas.iquery.metadata.business.BusinessQuery dataSource)
dataSource - the native model
public BusinessQueryToFilterableListModelAdapter(com.sas.iquery.metadata.business.BusinessQuery dataSource,
java.lang.Object initialFilter)
dataSource - the native modelinitialFilter - the initial filter
public BusinessQueryToFilterableListModelAdapter(com.sas.iquery.metadata.business.BusinessQuery dataSource,
int environment)
dataSource - the native modelenvironment - the operating environment (e.g. Swing,JSP)| Method Detail |
|---|
protected java.util.List getFilterableObjects()
getFilterableObjects in class AbstractFilterableListModelAbstractFilterableListModel.getFilterableObjects()protected FilterableItemInterface createFilterableItem(java.lang.Object filterable)
createFilterableItem in class AbstractFilterableListModelfilterable - the native model object to process
AbstractFilterableListModel.createFilterableItem(Object)public boolean commitChanges()
commitChanges in interface FilterableListModelInterfacecommitChanges in class AbstractFilterableListModelpublic void cancel()
cancel in interface FilterableListModelInterfacecancel in class AbstractFilterableListModelpublic void clearFilter(int index)
AbstractFilterableListModel
clearFilter in interface FilterableListModelInterfaceclearFilter in class AbstractFilterableListModelindex - the index in the list of filterable items of the filter to clear
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||