/** * Returns all properties with <code>category</code> as category. A property * can belong to only one category. Default categories names are defined in * {@link PreviewProperty}. * @param category the category properties belong to * @return all properties in <code>category</code> */ public PreviewProperty[] getProperties(String category) { List<PreviewProperty> props = new ArrayList<>(); for (PreviewProperty p : properties.values()) { if (p.getCategory().equals(category)) { props.add(p); } } return props.toArray(new PreviewProperty[0]); }
String category = property.getCategory(); Sheet.Set sheetSet = sheetSets.get(category); if (sheetSet == null) {