Package com.jgoodies.binding.value

Examples of com.jgoodies.binding.value.AbstractValueModel


    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;
    }
View Full Code Here

TOP

Related Classes of com.jgoodies.binding.value.AbstractValueModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.