invalidateComponent();
}
private void removeSections(int index, Sequence<Form.Section> removed) {
Form form = (Form)getComponent();
int count = removed.getLength();
// Remove fields
for (int i = 0; i < count; i++) {
removeFields(index + i, 0, removed.get(i));
}
// Remove labels
labels.remove(index, count);
// Remove separators
Sequence<Separator> removedSeparators = separators.remove(index, count);
for (int i = 0; i < count; i++) {
form.remove(removedSeparators.get(i));
}
invalidateComponent();
}