org.apache.beehive.netui.databinding.datagrid.services
Class SortService

Object
  extended by SortService

public class SortService
extends Object

8.1: _sort=~[+|-] 9.0: netui_sort=~[+|-] todo: would be great to move the namespace name into the key for faster lookups todo: figure out the back-compat story (a sad, long, and sordid one to be sure)


Method Summary
 boolean addSort(String sortExpression, int direction)
           
static SortService getInstance(JspContext jspContext, String namespace)
           
 int getSortDirection(String sortExpression)
           
 Map getSortParamsMap()
           
 String getSortParamsString()
           
 String getSortParamsString(String sortExpression)
           
 ISort[] getSorts()
           
 boolean isPrimarySort(String sortExpression)
           
 boolean isSorted(String sortExpression)
           
 boolean removeSort(String sortExpression)
           
 boolean replaceSort(String sortExpression, int direction)
           
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static final SortService getInstance(JspContext jspContext,
                                            String namespace)

getSorts

public ISort[] getSorts()

isPrimarySort

public boolean isPrimarySort(String sortExpression)

isSorted

public boolean isSorted(String sortExpression)

getSortDirection

public int getSortDirection(String sortExpression)

getSortParamsString

public String getSortParamsString()

getSortParamsMap

public Map getSortParamsMap()

getSortParamsString

public String getSortParamsString(String sortExpression)

removeSort

public boolean removeSort(String sortExpression)

addSort

public boolean addSort(String sortExpression,
                       int direction)

replaceSort

public boolean replaceSort(String sortExpression,
                           int direction)

toString

public String toString()
Overrides:
toString in class Object