info.magnolia.cms.gui.controlx.search
Class MultipleSearchListModel

java.lang.Object
  extended by info.magnolia.cms.gui.controlx.list.AbstractListModel
      extended by info.magnolia.cms.gui.controlx.search.AbstractSearchableListModel
          extended by info.magnolia.cms.gui.controlx.search.MultipleSearchListModel
All Implemented Interfaces:
ListModel, SearchableListModel

public class MultipleSearchListModel
extends AbstractSearchableListModel


Nested Class Summary
 
Nested classes/interfaces inherited from class info.magnolia.cms.gui.controlx.list.AbstractListModel
AbstractListModel.ListComparator
 
Field Summary
protected  String[] modelNames
           
protected  AbstractSearchableListModel[] models
           
 
Fields inherited from class info.magnolia.cms.gui.controlx.search.AbstractSearchableListModel
query
 
Fields inherited from class info.magnolia.cms.gui.controlx.list.AbstractListModel
ASCENDING, DESCENDING, groupBy, groupByOrder, sortBy, sortByOrder
 
Constructor Summary
MultipleSearchListModel(AbstractSearchableListModel[] models, String[] modelNames)
           
 
Method Summary
 ListModelIterator getListModel()
           
protected  Collection getResult()
           
 void setGroupBy(String name)
          set group by field
 void setGroupBy(String name, String order)
          set group by field and order ('ASCENDING' | 'DESCENDING')
 void setQuery(SearchQuery query)
          set Query
 void setSortBy(String name)
          set sort by field
 void setSortBy(String name, String order)
          set sort by field and order ('ASCENDING' | 'DESCENDING')
 
Methods inherited from class info.magnolia.cms.gui.controlx.search.AbstractSearchableListModel
getQuery
 
Methods inherited from class info.magnolia.cms.gui.controlx.list.AbstractListModel
createIterator, doSort, getGroupBy, getGroupByOrder, getListModelIterator, getSortBy, getSortByOrder, getValueProvider, iterator, newComparator, resolveId, setValueProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.magnolia.cms.gui.controlx.list.ListModel
getGroupBy, getGroupByOrder, getListModelIterator, getSortBy, getSortByOrder, iterator
 

Field Detail

models

protected final AbstractSearchableListModel[] models

modelNames

protected final String[] modelNames
Constructor Detail

MultipleSearchListModel

public MultipleSearchListModel(AbstractSearchableListModel[] models,
                               String[] modelNames)
Method Detail

getListModel

public ListModelIterator getListModel()

setGroupBy

public void setGroupBy(String name,
                       String order)
Description copied from class: AbstractListModel
set group by field and order ('ASCENDING' | 'DESCENDING')

Specified by:
setGroupBy in interface ListModel
Overrides:
setGroupBy in class AbstractListModel

setGroupBy

public void setGroupBy(String name)
Description copied from class: AbstractListModel
set group by field

Specified by:
setGroupBy in interface ListModel
Overrides:
setGroupBy in class AbstractListModel

setSortBy

public void setSortBy(String name,
                      String order)
Description copied from class: AbstractListModel
set sort by field and order ('ASCENDING' | 'DESCENDING')

Specified by:
setSortBy in interface ListModel
Overrides:
setSortBy in class AbstractListModel

setSortBy

public void setSortBy(String name)
Description copied from class: AbstractListModel
set sort by field

Specified by:
setSortBy in interface ListModel
Overrides:
setSortBy in class AbstractListModel

setQuery

public void setQuery(SearchQuery query)
Description copied from class: AbstractSearchableListModel
set Query

Specified by:
setQuery in interface SearchableListModel
Overrides:
setQuery in class AbstractSearchableListModel

getResult

protected Collection getResult()
                        throws Exception
Specified by:
getResult in class AbstractListModel
Returns:
the collection of the items passed to the iterator
Throws:
Exception


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.