Add method GroupedPropertyList.pullPropertyGroup() to pull out an entire property group for customized display.

This commit is contained in:
ryounes 2011-08-25 02:10:26 +00:00
parent f368666398
commit 315aac425c

View file

@ -470,4 +470,16 @@ public class GroupedPropertyList extends BaseTemplateModel {
}
return null;
}
public PropertyGroupTemplateModel pullPropertyGroup(String groupName) {
Iterator<PropertyGroupTemplateModel> groupIt = groups.iterator();
while (groupIt.hasNext()) {
PropertyGroupTemplateModel group = groupIt.next();
if (groupName.equals(group.getName())) {
groups.remove(group);
return group;
}
}
return null;
}
}