Interface SorterKey
-
- All Known Implementing Classes:
SorterKeyImpl
public interface SorterKey
Represents a sort key with sort order in the data model of product sorter UI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,String>
getCurrentOrderParameters()
String
getLabel()
String
getName()
Map<String,String>
getOppositeOrderParameters()
Sorter.Order
getOrder()
boolean
isSelected()
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- The sort key.
-
getLabel
String getLabel()
- Returns:
- A user friendly localizable label of a sort key.
-
getOrder
Sorter.Order getOrder()
- Returns:
- The ordering related to this key.
-
isSelected
boolean isSelected()
- Returns:
true
if this is the currently selected key,false
otherwise.
-
getCurrentOrderParameters
Map<String,String> getCurrentOrderParameters()
- Returns:
- The filtering parameters related to the current sort key and sort order.
-
-