Class ResultsetConfiguration


  • public class ResultsetConfiguration
    extends java.lang.Object
    Utility class that holds configuration parameters for ResultSetViewImpl.
    • 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
      • applyHeaderPresets

        public void applyHeaderPresets​(java.lang.String propName,
                                       org.zkoss.zul.Listheader header)
        Applies settings to a header based on presets.
        Parameters:
        propName - field name
        header - 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