private void setLeaveGroupDisplay(Group group) {
    Object leaveGroupButton = find(COMPONENT_LEAVE_GROUP_SELECT_LABEL);
    ui.setAttachedObject(leaveGroupButton, group);

    ui.setVisible(find("btLeaveGroupSelect"), group == null);
    ui.setVisible(find("btLeaveGroupRemove"), group != null);

    if (group != null) {
      ui.setText(leaveGroupButton, group.getPath());
    } else {
      ui.setText(
          leaveGroupButton,
          InternationalisationUtils.getI18nString(
              I18N_KEYWORD_ACTION_NO_GROUP,
              InternationalisationUtils.getI18nString(I18N_COMMON_NONE)));
    }
  }