checkboxes.clear();
uncheckMasterCheckBox();
for (int i = 0; i < tagDetailsList.size(); i++) {
final int count = i;
final TagDetails tagDetails = tagDetailsList.get(i);
/*
* Prevent reserved-word tags from displaying
*/
if( ReservedWordTags.isReservedTag(tagDetails))
{
continue;
}
GWT.log(tagDetails.getName());
CheckBox cb = new CheckBox();
cb.setFormValue(tagDetails.getId()); //store the id in the checkbox value
checkboxes.add(cb); // keep track for selecting all|none to delete
cb.setStyleName(style.checkbox());
// if a checkbox is checked, deselect the master checkbox
cb.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
uncheckMasterCheckBox();
}
});
Label name = new Label(tagDetails.getName());
name.setStyleName(style.tagList());
name.addStyleName(style.clickable());
name.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {