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 field label and flag image view lists
labels.remove(index, count);
flagImageViews.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();
}