com.jidesoft.list
Class AbstractGroupListModel
java.lang.Object
javax.swing.AbstractListModel
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGroupListModel
public AbstractGroupListModel()
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