Interface SectionTableModel<T>
-
- All Superinterfaces:
BeanTableModel<T>
,ColumnIdentifier
,javax.swing.table.TableModel
- All Known Implementing Classes:
BeanListMultimapTableModel
public interface SectionTableModel<T> extends BeanTableModel<T>, ColumnIdentifier
Table model interface for aSectionTable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<T>
getGroup(int groupNumber)
int
getGroupNumber(int rowIndex)
java.lang.String
getSectionName(int rowIndex)
int
getSectionRow(int rowIndex)
boolean
isSectionRow(int rowIndex)
-
Methods inherited from interface io.github.jonestimd.swing.table.model.BeanTableModel
getBean, getBeanCount, getCursor, getValue, handleClick, setBeans, updateBeans
-
Methods inherited from interface io.github.jonestimd.swing.table.model.ColumnIdentifier
getColumnIdentifier
-
-
-
-
Method Detail
-
isSectionRow
boolean isSectionRow(int rowIndex)
- Returns:
- true of the row is a group header.
-
getGroupNumber
int getGroupNumber(int rowIndex)
- Returns:
- the group number of the specified row.
-
getSectionRow
int getSectionRow(int rowIndex)
- Returns:
- the index of the group header row for the specified row.
-
getSectionName
java.lang.String getSectionName(int rowIndex)
- Returns:
- the display text for the header row of the group containing the specified row.
-
getGroup
java.util.List<T> getGroup(int groupNumber)
- Returns:
- the beans in the specified group.
-
-