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 BEAN
getBean(BeanTableModel<BEAN> tableModel)
int
getModelIndex()
java.lang.String
toString()
void
updateModelIndex(int delta)
-
-
-
Constructor Detail
-
ViewRow
public ViewRow(SectionTableModel tableModel, int modelIndex)
-
-
Method Detail
-
getBean
public BEAN getBean(BeanTableModel<BEAN> tableModel)
- Specified by:
getBean
in interfaceViewToModel<BEAN>
-
getModelIndex
public int getModelIndex()
- Specified by:
getModelIndex
in interfaceViewToModel<BEAN>
-
updateModelIndex
public void updateModelIndex(int delta)
- Specified by:
updateModelIndex
in interfaceViewToModel<BEAN>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-