Class SortSet

java.lang.Object
ru.bgcrm.model.process.queue.SortSet

public class SortSet extends Object
Queue sort options. Sorting is defined in list of comboboxes.
  • Constructor Details

    • SortSet

      public SortSet()
  • Method Details

    • getComboCount

      public int getComboCount()
      Quantity of sequential comboboxes, available for sorting
      Returns:
      the combo count
    • setComboCount

      public void setComboCount(int comboCount)
    • getModeList

      public List<SortMode> getModeList()
      List of modes, available for choose in each of combos
      Returns:
      the mode list
    • addMode

      public void addMode(SortMode mode)
    • getSortValues

      public SortedMap<Integer,Integer> getSortValues()
      Strictly defined sort modes for each of combo. Key - 0 based combo id, value - ID of a sort mode.
      Returns:
      the sort values
    • setSortValue

      public void setSortValue(int comboNum, int value)
    • getDefaultSortValues

      public Map<Integer,Integer> getDefaultSortValues()
      Default sort modes for each of combo, if none of getSortValues() and HTTP request options set
      Returns:
      the default sort values
    • setDefaultSortValue

      public void setDefaultSortValue(int comboNum, int value)
    • getOrders

      public String getOrders(DynActionForm form)
      Comma separated SQL column numbers, using for sorting
      Parameters:
      form - request's parameters
      Returns:
      the comma separated column numbers