Add method GroupedPropertyList.pullPropertyGroup() to pull out an entire property group for customized display.
This commit is contained in:
parent
f368666398
commit
315aac425c
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue