JIDE 3.5.15

com.jidesoft.list
Interface GroupListModel

All Superinterfaces:
ListModel
All Known Implementing Classes:
AbstractGroupListModel, DefaultGroupListModel

public interface GroupListModel
extends ListModel

An enhanced interface of ListModel.

In fact, only one of all the methods below is useful. It is isGroupRow, because any methods else is dependent on isGroupRow(int) .


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.
 boolean isGroupRow(int row)
          Returns true if the specified row is a group row, false otherwise.
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener
 

Method Detail

getGroupRowIndex

int getGroupRowIndex(int row)
Returns the group row index where the group has the specified row.

Parameters:
row - the row index.
Returns:
the group row index where the group has the specified row

getNextGroupRowIndex

int getNextGroupRowIndex(int row)
Returns the next group row index where the previous group has the specified row, if any.

Parameters:
row - the row index.
Returns:
the next group row index where the previous group has the specified row

isGroupRow

boolean isGroupRow(int row)
Returns true if the specified row is a group row, false otherwise.

Parameters:
row - the row index.
Returns:
true if the specified row is a group row, false otherwise.

getGroupCellIndices

int[] getGroupCellIndices()
Returns all group cell indices

Returns:
all group cell indices

JIDE 3.5.15