private AbstractValueModel getOAuth2FlowValueModel(SimpleBindingForm accessTokenForm) {
return accessTokenForm.getPresentationModel().getModel(OAuth2Profile.OAUTH2_FLOW_PROPERTY, "getOAuth2Flow", "setOAuth2Flow");
}
private JComboBox appendOAuth2ComboBox(SimpleBindingForm accessTokenForm) {
AbstractValueModel valueModel = getOAuth2FlowValueModel(accessTokenForm);
ComboBoxModel oauth2FlowsModel = new DefaultComboBoxModel(OAuth2Profile.OAuth2Flow.values());
JComboBox oauth2FlowComboBox = accessTokenForm.appendComboBox("OAuth 2 Flow", oauth2FlowsModel, "OAuth 2 Authorization Flow", valueModel);
oauth2FlowComboBox.setName(OAUTH_2_FLOW_COMBO_BOX_NAME);
return oauth2FlowComboBox;
}