com.endeca.infront.cartridge.model
Class SortOptionConfig

java.lang.Object
  extended by com.endeca.infront.cartridge.model.SortOptionConfig

public class SortOptionConfig
extends Object

This class is the sort option configuration module for ResultList Cartridge.


Constructor Summary
SortOptionConfig()
           
 
Method Summary
 String getLabel()
          Text used to demonstrate sort information.
 String getValue()
           
 void setLabel(String label)
          Sets the user visible label for this sort.
 void setValue(String value)
          Sets the value to apply this sort.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortOptionConfig

public SortOptionConfig()
Method Detail

getLabel

public String getLabel()
Text used to demonstrate sort information. Such as sort property, order etc.

Returns:
Sort information.

setLabel

public void setLabel(String label)
Sets the user visible label for this sort.

Parameters:
label - the name for this sort

getValue

public String getValue()
Returns:
Sort value.

setValue

public void setValue(String value)
Sets the value to apply this sort. "|1" indicates descending order, and "|0" indicates ascending order (the default). Example "product.price|0"

Parameters:
value - The value for this sort


Copyright © 2012, Oracle and/or its affiliates. All rights reserved.