public T getSelectedValue() {
        for (Entry<AbstractButton, T> e : buttonValueMap.entrySet()) {
            if (e.getKey().isSelected()) {
                return e.getValue();
            }
        }
        return null;
    }