private List<CmsModelItem> getItems(CmsModel model, boolean isChannel,
String[] fields, String[] labels, Integer[] dataTypes,
Integer[] prioritys, Boolean[] singles, Boolean[] displays) {
List<CmsModelItem> list = new ArrayList<CmsModelItem>();
CmsModelItem item;
for (int i = 0, len = fields.length; i < len; i++) {
if (!StringUtils.isBlank(fields[i])) {
item = new CmsModelItem();
item.setCustom(false);
item.setModel(model);
item.setChannel(isChannel);
item.setField(fields[i]);
item.setLabel(labels[i]);
item.setPriority(prioritys[i]);
item.setDataType(dataTypes[i]);
item.setSingle(singles[i]);
item.setDisplay(displays[i]);
list.add(item);
}
}
return list;