public void setSelectedValue(T value) {
        for (Entry<AbstractButton, T> e : buttonValueMap.entrySet()) {
            if (Objects.equals(e.getValue(), value)) {
                e.getKey().setSelected(true);
                break;
            }
        }
    }