Package com.jgoodies.binding.adapter

Examples of com.jgoodies.binding.adapter.RadioButtonAdapter


            new PropertyAdapter(userPrefs, UserPreferences.PROP_TAGS_STORAGE), triggerChannel);
        storageModel.addValueChangeListener(new StorageTypeListener());

        rbStorageNone = ComponentsFactory.createRadioButton(
            Strings.message("userprefs.tab.tags.dont.share"));
        rbStorageNone.setModel(new RadioButtonAdapter(storageModel,
            UserPreferences.TAGS_STORAGE_NONE));

        rbStorageBBS = ComponentsFactory.createRadioButton(
            Strings.message("userprefs.tab.tags.bbservice"));
        rbStorageBBS.setModel(new RadioButtonAdapter(storageModel,
            UserPreferences.TAGS_STORAGE_BB_SERVICE));

        rbStorageDelicious = ComponentsFactory.createRadioButton(
            Strings.message("userprefs.tab.tags.delicious"));
        rbStorageDelicious.setModel(new RadioButtonAdapter(storageModel,
            UserPreferences.TAGS_STORAGE_DELICIOUS));

        rbStorageBBS.setEnabled(bbsAllowed);
    }
View Full Code Here


            triggerChannel);

        // Applying changes
        rbChangeSilently = ComponentsFactory.createRadioButton(
            Strings.message("userprefs.tab.readinglists.action.accept.silently"),
            new RadioButtonAdapter(updatesModel,
            new Integer(UserPreferences.RL_UPDATE_NONE)));
        rbChangeWithNotification = ComponentsFactory.createRadioButton(
            Strings.message("userprefs.tab.readinglists.action.notify"),
            new RadioButtonAdapter(updatesModel,
            new Integer(UserPreferences.RL_UPDATE_NOTIFY)));
        rbChangeWithConfirmation = ComponentsFactory.createRadioButton(
            Strings.message("userprefs.tab.readinglists.action.confirm"),
            new RadioButtonAdapter(updatesModel,
            new Integer(UserPreferences.RL_UPDATE_CONFIRM)));

        // Get Latest command actions
        chUpdateFeeds = ComponentsFactory.createCheckBox(
            Strings.message("userprefs.tab.readinglists.command.latest.articles"),
View Full Code Here

        ValueModel mdlBlog = new PropertyAdapter(proxy, TargetBlog.PROP_BLOG, true);
        adapter = new ComboBoxAdapter((ListModel)lmdlBlogs, mdlBlog);
        cbBlog = new JComboBox(adapter);

        ValueModel mdlDraft = new PropertyAdapter(proxy, TargetBlog.PROP_DRAFT, true);
        rbPublic.setModel(new RadioButtonAdapter(mdlDraft, Boolean.FALSE));
        rbDraft.setModel(new RadioButtonAdapter(mdlDraft, Boolean.TRUE));

        Collection apis = WeblogAPIs.getWeblogAPIs();
        ValueModel mdlAPIs = new PropertyAdapter(proxy, TargetBlog.PROP_API_TYPE, true);
        vmAPI = new BufferedValueModel(mdlAPIs, trigger);
        adapter = new ComboBoxAdapter(apis.toArray(), vmAPI);
View Full Code Here

TOP

Related Classes of com.jgoodies.binding.adapter.RadioButtonAdapter

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.