public class CategoryModel<C extends Category>
extends com.jidesoft.list.AbstractGroupableListModel
Constructor and Description |
---|
CategoryModel(java.lang.Object[] groups,
java.util.List<C> categories) |
Modifier and Type | Method and Description |
---|---|
C |
firstCategory() |
C |
getElementAt(int index) |
java.lang.Object |
getGroupAt(int index) |
java.lang.Object[] |
getGroups() |
int |
getSize() |
void |
setCategories(java.util.List<C> categories) |
void |
setGroups(java.lang.Object[] groups) |
addListGroupChangeListener, fireGroupChanged, getListGroupChangeListeners, removeListGroupChangeListener
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public CategoryModel(java.lang.Object[] groups, java.util.List<C> categories)
public C getElementAt(int index)
public int getSize()
public java.lang.Object getGroupAt(int index)
getGroupAt
in interface com.jidesoft.list.GroupableListModel
getGroupAt
in class com.jidesoft.list.AbstractGroupableListModel
public java.lang.Object[] getGroups()
getGroups
in interface com.jidesoft.list.GroupableListModel
getGroups
in class com.jidesoft.list.AbstractGroupableListModel
public void setCategories(java.util.List<C> categories)
public void setGroups(java.lang.Object[] groups)
public C firstCategory()