Package com.groiss.dms
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 Summary
Modifier and TypeMethodDescriptionNon null overwrites the list, should return list of formsdefault void
init
(HttpServletRequest req, FormContext ctx) You can init your class with the requestdefault String
Change the style of the line.default void
modifyColumns
(List<ColumnDescription> colDescs) Allows modification of the table headerdefault void
modifyTableLine
(T f, Map<String, Object> line) Your chance to modify the line, called for each table line.
-
Method Details
-
init
You can init your class with the request- Parameters:
req
- the requestctx
- holds context information for the form
-
getList
Non null overwrites the list, should return list of forms- Parameters:
list
- the list of forms- Returns:
- Default returns null.
-
modifyColumns
Allows modification of the table header- Parameters:
colDescs
- list of header fields
-
modifyTableLine
Your chance to modify the line, called for each table line. Making the list empty removes the item from the worklist.- Parameters:
f
- the formline
- the line
-
lineStyle
Change the style of the line.- Parameters:
f
- the formstyle
- a style class- Returns:
- Default returns the passed style.
-