invalidateComponent();
}
private void removeFields(int sectionIndex, int index, Sequence<Component> removed) {
Form form = (Form)getComponent();
int count = removed.getLength();
// Remove the labels
Sequence<Label> removedLabels = labels.get(sectionIndex).remove(index, count);
for (int i = 0; i < count; i++) {
form.remove(removedLabels.get(i));
}
// Remove the flag image views
Sequence<ImageView> removedFlagImageViews = flagImageViews.get(sectionIndex).remove(index, count);
for (int i = 0; i < count; i++) {
form.remove(removedFlagImageViews.get(i));
}
invalidateComponent();
}