public static class SwingEntityTableModel.DefaultEntityTableSortModel extends AbstractTableSortModel<Entity,Property>
TableSortModel.SortingState
Constructor and Description |
---|
DefaultEntityTableSortModel(Domain domain,
java.lang.String entityId)
Instantiates a new DefaultEntityTableSortModel
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getColumnClass(Property property)
Returns the class of the column with the given identifier
|
protected java.lang.Comparable |
getComparable(Entity entity,
Property property)
Returns a Comparable instance for the given rowObject and columnIdentifier, used when sorting
|
protected java.util.Comparator |
initializeColumnComparator(Property property)
Initializes a comparator used when sorting by the give column,
the comparator receives the column values, but never null.
|
addSortingStateChangedListener, getColumns, getSortingState, isSortingEnabled, setSortingDirective, sort
public DefaultEntityTableSortModel(Domain domain, java.lang.String entityId)
domain
- the underlying entitiesentityId
- the entity IDpublic final java.lang.Class getColumnClass(Property property)
property
- the column identifierprotected java.util.Comparator initializeColumnComparator(Property property)
initializeColumnComparator
in class AbstractTableSortModel<Entity,Property>
property
- the column identifierprotected final java.lang.Comparable getComparable(Entity entity, Property property)
getComparable
in class AbstractTableSortModel<Entity,Property>
entity
- the object representing a given rowproperty
- the column identifierAbstractTableSortModel.sort(java.util.List)