public void setSelectedFlags(boolean[] flags) {

        for (int i = 0; i < size(); i++) {
            getLabel(i).select(flags[i]);
            if (group != null && flags[i])
                return;
        }
    }