Package com.saperion.ngc.resultset
Class ResultsetConfiguration
java.lang.Object
com.saperion.ngc.resultset.ResultsetConfiguration
Utility class that holds configuration parameters for ResultSetViewImpl.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyHeaderPresets
(String propName, org.zkoss.zul.Listheader header) Applies settings to a header based on presets.void
deleteColumnConfiguration
(String formName) Deletes the configuration of the columns in the database.getRemoveMenuItemList
(boolean multi) Reads the list of remove menu items.boolean
isSortingDisabled
(String key) Checks if sorting is disabled for the specified column.void
readResultType
(String formName) void
setOtherHeadersToNatural
(org.zkoss.zul.Listheader header) Set all header to natural sorting except the one defined.void
setRemoveMenuItemList
(List<MenuItemKey> removeList, boolean multi) Set menu items for removing.void
setResultType
(com.saperion.ngc.iform.xml.ResultType resultType) void
setSortingDisabled
(String key) Adds a column to the set of columns that have the sorting function disabled.void
storeColumnConfiguration
(String formName) Stores the configuration of the columns in the database.
-
Constructor Details
-
ResultsetConfiguration
Constructor.- Parameters:
presenter
- ResultSetPresenter used by view
-
-
Method Details
-
setResultType
public void setResultType(com.saperion.ngc.iform.xml.ResultType resultType) - Parameters:
resultType
- Result type
-
storeColumnConfiguration
public void storeColumnConfiguration(String formName) throws NgcUiException, AuthenticationException Stores the configuration of the columns in the database.- Parameters:
formName
- Form name- Throws:
AuthenticationException
- re-logon requiredNgcUiException
- exception to be handled by view
-
deleteColumnConfiguration
public void deleteColumnConfiguration(String formName) throws NgcUiException, AuthenticationException Deletes the configuration of the columns in the database.- Parameters:
formName
- Form name- Throws:
AuthenticationException
- re-logon requiredNgcUiException
- exception to be handled by view
-
readResultType
- Parameters:
formName
- Form name- Throws:
AuthenticationException
- re-logon requiredNgcUiException
- exception to be handled by view
-
applyHeaderPresets
Applies settings to a header based on presets.- Parameters:
propName
- field nameheader
- header
-
setOtherHeadersToNatural
public void setOtherHeadersToNatural(org.zkoss.zul.Listheader header) Set all header to natural sorting except the one defined.- Parameters:
header
- defined header
-
setSortingDisabled
Adds a column to the set of columns that have the sorting function disabled.- Parameters:
key
- name of the column
-
isSortingDisabled
Checks if sorting is disabled for the specified column.- Parameters:
key
- column name- Returns:
- true if sorting is disabled, otherwise false
-
getColumns
- Returns:
- the columns
-
setRemoveMenuItemList
Set menu items for removing.- Parameters:
removeList
- List of items.multi
- True for multiselect
-
getRemoveMenuItemList
Reads the list of remove menu items.- Parameters:
multi
- True for multiselect- Returns:
- list of remove menu items
-