JIDE 3.5.15

com.jidesoft.list
Class AbstractGroupListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by com.jidesoft.list.AbstractGroupListModel
All Implemented Interfaces:
GroupListModel, Serializable, ListModel

public abstract class AbstractGroupListModel
extends AbstractListModel
implements GroupListModel

This is an abstract implementation of GroupListModel However, some methods such as #getGroupStart(int) & #getGroupEnd(int) may not have a good performance. Better override them.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
AbstractGroupListModel()
           
 
Method Summary
 int[] getGroupCellIndices()
          Returns all group cell indices
 int getGroupRowIndex(int row)
          Returns the group row index where the group has the specified row.
 int getNextGroupRowIndex(int row)
          Returns the next group row index where the previous group has the specified row, if any.
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jidesoft.list.GroupListModel
isGroupRow
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener
 

Constructor Detail

AbstractGroupListModel

public AbstractGroupListModel()
Method Detail

getGroupRowIndex

public int getGroupRowIndex(int row)
Description copied from interface: GroupListModel
Returns the group row index where the group has the specified row.

Specified by:
getGroupRowIndex in interface GroupListModel
Parameters:
row - the row index.
Returns:
the group row index where the group has the specified row

getNextGroupRowIndex

public int getNextGroupRowIndex(int row)
Description copied from interface: GroupListModel
Returns the next group row index where the previous group has the specified row, if any.

Specified by:
getNextGroupRowIndex in interface GroupListModel
Parameters:
row - the row index.
Returns:
the next group row index where the previous group has the specified row

getGroupCellIndices

public int[] getGroupCellIndices()
Description copied from interface: GroupListModel
Returns all group cell indices

Specified by:
getGroupCellIndices in interface GroupListModel
Returns:
all group cell indices

JIDE 3.5.15