19 package org.turro.warnings;
21 import java.util.ArrayList;
22 import java.util.List;
23 import org.zkoss.zul.GroupsModel;
24 import org.zkoss.zul.SimpleGroupsModel;
35 public GroupsModel<IWarning, Object, Object>
getModel() {
36 List<List<IWarning>> data =
new ArrayList<>();
37 List<String> headers =
new ArrayList<>();
40 List<IWarning> warnings = iew.getWarnings();
41 if(!warnings.isEmpty()) {
42 headers.add(iew.getHeader());
47 return new SimpleGroupsModel<>(data, headers);
static List< IElephantWarning > getWarnings()
GroupsModel< IWarning, Object, Object > getModel()