|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.gui.controlx.list.AbstractListModel
public abstract class AbstractListModel
Nested Class Summary | |
---|---|
protected class |
AbstractListModel.ListComparator
Does simple or sub ordering |
Field Summary | |
---|---|
static String |
ASCENDING
sort or group by order |
static String |
DESCENDING
sort or group by order |
protected String |
groupBy
group by field name |
protected String |
groupByOrder
group by order |
protected String |
sortBy
sort by field name |
protected String |
sortByOrder
sort by order |
Constructor Summary | |
---|---|
AbstractListModel()
|
Method Summary | |
---|---|
protected ListModelIterator |
createIterator(Collection items)
Create the iterator |
protected Collection |
doSort(Collection collection)
sort |
String |
getGroupBy()
get group on field name |
String |
getGroupByOrder()
get group by ordering |
ListModelIterator |
getListModelIterator()
this must be implemented by implementing classes |
protected abstract Collection |
getResult()
|
String |
getSortBy()
get sort on field name |
String |
getSortByOrder()
get sort by ordering |
ValueProvider |
getValueProvider()
|
Iterator |
iterator()
implement Iterable |
protected AbstractListModel.ListComparator |
newComparator()
|
protected String |
resolveId(int index,
Object value)
Use by the list iterator to resolve the id |
void |
setGroupBy(String name)
set group by field |
void |
setGroupBy(String name,
String order)
set group by field and order ('ASCENDING' | 'DESCENDING') |
void |
setSortBy(String name)
set sort by field |
void |
setSortBy(String name,
String order)
set sort by field and order ('ASCENDING' | 'DESCENDING') |
void |
setValueProvider(ValueProvider valueProvider)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DESCENDING
public static final String ASCENDING
protected String sortBy
protected String sortByOrder
protected String groupBy
protected String groupByOrder
Constructor Detail |
---|
public AbstractListModel()
Method Detail |
---|
public ListModelIterator getListModelIterator()
getListModelIterator
in interface ListModel
ListModelIterator
public Iterator iterator()
ListModel
iterator
in interface ListModel
protected abstract Collection getResult() throws Exception
Exception
protected ListModelIterator createIterator(Collection items)
items
-
public void setSortBy(String name)
setSortBy
in interface ListModel
name
- public void setSortBy(String name, String order)
setSortBy
in interface ListModel
name
- order
- public void setGroupBy(String name)
setGroupBy
in interface ListModel
name
- public void setGroupBy(String name, String order)
setGroupBy
in interface ListModel
name
- order
- public String getSortBy()
getSortBy
in interface ListModel
public String getSortByOrder()
getSortByOrder
in interface ListModel
public String getGroupBy()
getGroupBy
in interface ListModel
public String getGroupByOrder()
getGroupByOrder
in interface ListModel
protected Collection doSort(Collection collection)
collection
-
protected AbstractListModel.ListComparator newComparator()
public void setValueProvider(ValueProvider valueProvider)
valueProvider
- the valueProvider to setpublic ValueProvider getValueProvider()
protected String resolveId(int index, Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |