Hello,
I create many checkboxes and put this checkboxes into an arrayList. Then I want to know which checkboxes in the arrayList are checked or not.
There is some code to explain my problem.
Code:
private ArrayList<CHECKBOXComponentTag> checkboxes = new ArrayList<CHECKBOXComponentTag>();
// create checkboxes
for (int i = 0; i < 5; i++) {
...
CHECKBOXComponentTag cct = new CHECKBOXComponentTag();
checkboxes.add(cct);
...
}
// which checkboxes are checked?
for (CHECKBOXComponentTag cct : checkboxes) {
//there is no cct.getSelected or cct.isSelected
}
Cheers,
Ralph