Package com.groiss.storegui
Interface ObjectTableHandler<T extends Persistent>
- All Known Implementing Classes:
ObjectTableAdapter
public interface ObjectTableHandler<T extends Persistent>
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) 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 request
-
getList
Non null overwrites the list, should return list of forms- Parameters:
list
- the list of forms- Returns:
- the modified list
-
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
-