Class SectionTableRowSorter.ViewRow<BEAN>
- java.lang.Object
-
- io.github.jonestimd.swing.table.sort.SectionTableRowSorter.ViewRow<BEAN>
-
- Type Parameters:
BEAN- the class of the beans in the table
- All Implemented Interfaces:
ViewToModel<BEAN>
- Enclosing class:
- SectionTableRowSorter<BEAN,MODEL extends SectionTableModel<BEAN> & BeanTableModel<BEAN>>
protected static class SectionTableRowSorter.ViewRow<BEAN> extends java.lang.Object implements ViewToModel<BEAN>
A mapping between the view and the model.
-
-
Constructor Summary
Constructors Constructor Description ViewRow(SectionTableModel tableModel, int modelIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BEANgetBean(BeanTableModel<BEAN> tableModel)intgetModelIndex()java.lang.StringtoString()voidupdateModelIndex(int delta)
-
-
-
Constructor Detail
-
ViewRow
public ViewRow(SectionTableModel tableModel, int modelIndex)
-
-
Method Detail
-
getBean
public BEAN getBean(BeanTableModel<BEAN> tableModel)
- Specified by:
getBeanin interfaceViewToModel<BEAN>
-
getModelIndex
public int getModelIndex()
- Specified by:
getModelIndexin interfaceViewToModel<BEAN>
-
updateModelIndex
public void updateModelIndex(int delta)
- Specified by:
updateModelIndexin interfaceViewToModel<BEAN>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-