|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.endeca.infront.cartridge.model.Sort
public class Sort
Represents a group of actions (both ascending and descending) to sort by a single field
Constructor Summary | |
---|---|
Sort()
|
Method Summary | |
---|---|
SortOptionLabel |
getAscendingAction()
This label's action when the sort is "ascending" |
SortOptionLabel |
getDescendingAction()
This label's action when the sort is "descending" |
String |
getFieldName()
name of the field that will be sorted |
void |
setAscendingAction(SortOptionLabel ascendingAction)
|
void |
setDescendingAction(SortOptionLabel descendingAction)
|
void |
setFieldName(String fieldName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sort()
Method Detail |
---|
public String getFieldName()
public void setFieldName(String fieldName)
getFieldName()
public SortOptionLabel getAscendingAction()
By default this action's label will be the same as the fieldName of this object. It's Navigation State will set the sort parameter (usually Ns) to be equal to [fieldName]|0 (except in the case of the defaultSort which is the equivalent to completely removing the sort parameter). In addition if current Navigation State is the same as the state represented by this action, this action will be selected.
public void setAscendingAction(SortOptionLabel ascendingAction)
getAscendingAction()
public SortOptionLabel getDescendingAction()
By default this action's label will be the same as the fieldName of this object. It's Navigation State will set the sort parameter (usually Ns) to be equal to [fieldName]|1 (except in the case of the defaultSort which is the equivalent to completely removing the sort parameter). In addition if current Navigation State is the same as the state represented by this action, this action will be selected.
public void setDescendingAction(SortOptionLabel descendingAction)
getDescendingAction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |