Package ru.bgcrm.model.process.queue
Class SortSet
java.lang.Object
ru.bgcrm.model.process.queue.SortSet
Queue sort options. Sorting is defined in list of comboboxes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
Quantity of sequential comboboxes, available for sorting.Default sort modes for each of combo, if nope ofgetSortValues()
and HTTP request options set.List of modes, available for choose in each of combos.getOrders
(DynActionForm form) Comma separated SQL column numbers, using for sorting.Strictly defined sort modes for each of combo.void
setComboCount
(int comboCount) void
setDefaultSortValue
(int comboNum, int value) void
setSortValue
(int comboNum, int value)
-
Constructor Details
-
SortSet
public SortSet()
-
-
Method Details
-
getComboCount
public int getComboCount()Quantity of sequential comboboxes, available for sorting.- Returns:
-
setComboCount
public void setComboCount(int comboCount) -
getModeList
List of modes, available for choose in each of combos.- Returns:
-
addMode
-
getSortValues
Strictly defined sort modes for each of combo. Key - 0 based combo id, value - ID of a sort mode.- Returns:
-
setSortValue
public void setSortValue(int comboNum, int value) -
getDefaultSortValues
Default sort modes for each of combo, if nope ofgetSortValues()
and HTTP request options set.- Returns:
-
setDefaultSortValue
public void setDefaultSortValue(int comboNum, int value) -
getOrders
Comma separated SQL column numbers, using for sorting.- Parameters:
form
- request's parameters.- Returns:
-