Package com.saperion.ngc.resultset
Class ResultsetConfiguration
- java.lang.Object
-
- com.saperion.ngc.resultset.ResultsetConfiguration
-
public class ResultsetConfiguration extends java.lang.ObjectUtility class that holds configuration parameters for ResultSetViewImpl.
-
-
Constructor Summary
Constructors Constructor Description ResultsetConfiguration(ResultSetPresenter presenter)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyHeaderPresets(java.lang.String propName, org.zkoss.zul.Listheader header)Applies settings to a header based on presets.voiddeleteColumnConfiguration(java.lang.String formName)Deletes the configuration of the columns in the database.java.util.Map<java.lang.String,ResultSetColumn>getColumns()java.util.List<MenuItemKey>getRemoveMenuItemList(boolean multi)Reads the list of remove menu items.booleanisSortingDisabled(java.lang.String key)Checks if sorting is disabled for the specified column.voidreadResultType(java.lang.String formName)voidsetOtherHeadersToNatural(org.zkoss.zul.Listheader header)Set all header to natural sorting except the one defined.voidsetRemoveMenuItemList(java.util.List<MenuItemKey> removeList, boolean multi)Set menu items for removing.voidsetResultType(com.saperion.ngc.iform.xml.ResultType resultType)voidsetSortingDisabled(java.lang.String key)Adds a column to the set of columns that have the sorting function disabled.voidstoreColumnConfiguration(java.lang.String formName)Stores the configuration of the columns in the database.
-
-
-
Constructor Detail
-
ResultsetConfiguration
public ResultsetConfiguration(ResultSetPresenter presenter)
Constructor.- Parameters:
presenter- ResultSetPresenter used by view
-
-
Method Detail
-
setResultType
public void setResultType(com.saperion.ngc.iform.xml.ResultType resultType)
- Parameters:
resultType- Result type
-
storeColumnConfiguration
public void storeColumnConfiguration(java.lang.String formName) throws NgcUiException, AuthenticationExceptionStores 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(java.lang.String formName) throws NgcUiException, AuthenticationExceptionDeletes the configuration of the columns in the database.- Parameters:
formName- Form name- Throws:
AuthenticationException- re-logon requiredNgcUiException- exception to be handled by view
-
readResultType
public void readResultType(java.lang.String formName) throws NgcUiException, AuthenticationException- Parameters:
formName- Form name- Throws:
AuthenticationException- re-logon requiredNgcUiException- exception to be handled by view
-
applyHeaderPresets
public void applyHeaderPresets(java.lang.String propName, org.zkoss.zul.Listheader header)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
public void setSortingDisabled(java.lang.String key)
Adds a column to the set of columns that have the sorting function disabled.- Parameters:
key- name of the column
-
isSortingDisabled
public boolean isSortingDisabled(java.lang.String key)
Checks if sorting is disabled for the specified column.- Parameters:
key- column name- Returns:
- true if sorting is disabled, otherwise false
-
getColumns
public java.util.Map<java.lang.String,ResultSetColumn> getColumns()
- Returns:
- the columns
-
setRemoveMenuItemList
public void setRemoveMenuItemList(java.util.List<MenuItemKey> removeList, boolean multi)
Set menu items for removing.- Parameters:
removeList- List of items.multi- True for multiselect
-
getRemoveMenuItemList
public java.util.List<MenuItemKey> getRemoveMenuItemList(boolean multi)
Reads the list of remove menu items.- Parameters:
multi- True for multiselect- Returns:
- list of remove menu items
-
-