Interface FormTableHandler<T extends DMSForm>

All Known Implementing Classes:
FormTableAdapter

public interface FormTableHandler<T extends DMSForm>
Interface that allows implementers to customize the form table. Methods are called in the given order.
  • Method Details

    • init

      default void init(HttpServletRequest req, FormContext ctx)
      You can init your class with the request
      Parameters:
      req - the request
      ctx - holds context information for the form
    • getList

      default List<DMSForm> getList(List<T> list)
      Non null overwrites the list, should return list of forms
      Parameters:
      list - the list of forms
      Returns:
      Default returns null.
    • modifyColumns

      default void modifyColumns(List<ColumnDescription> colDescs)
      Allows modification of the table header
      Parameters:
      colDescs - list of header fields
    • modifyTableLine

      default void modifyTableLine(T f, Map<String,Object> line)
      Your chance to modify the line, called for each table line. Making the list empty removes the item from the worklist.
      Parameters:
      f - the form
      line - the line
    • lineStyle

      default String lineStyle(T f, String style)
      Change the style of the line.
      Parameters:
      f - the form
      style - a style class
      Returns:
      Default returns the passed style.