Class ResultsetConfiguration

java.lang.Object
com.saperion.ngc.resultset.ResultsetConfiguration

public class ResultsetConfiguration extends Object
Utility class that holds configuration parameters for ResultSetViewImpl.
  • Constructor Details

    • ResultsetConfiguration

      public ResultsetConfiguration(ResultSetPresenter presenter)
      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 required
      NgcUiException - 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 required
      NgcUiException - exception to be handled by view
    • readResultType

      public void readResultType(String formName) throws NgcUiException, AuthenticationException
      Parameters:
      formName - Form name
      Throws:
      AuthenticationException - re-logon required
      NgcUiException - exception to be handled by view
    • applyHeaderPresets

      public void applyHeaderPresets(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(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(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 Map<String,ResultSetColumn> getColumns()
      Returns:
      the columns
    • setRemoveMenuItemList

      public void setRemoveMenuItemList(List<MenuItemKey> removeList, boolean multi)
      Set menu items for removing.
      Parameters:
      removeList - List of items.
      multi - True for multiselect
    • getRemoveMenuItemList

      public List<MenuItemKey> getRemoveMenuItemList(boolean multi)
      Reads the list of remove menu items.
      Parameters:
      multi - True for multiselect
      Returns:
      list of remove menu items