Package com.jgoodies.binding.adapter

Examples of com.jgoodies.binding.adapter.DocumentAdapter


    private void initComponents(boolean bbsAllowed, ValueModel triggerChannel)
    {
        initRadioButtons(bbsAllowed, triggerChannel);

        tfDeliciousUser = new JTextField();
        tfDeliciousUser.setDocument(new DocumentAdapter(new BufferedValueModel(
            new PropertyAdapter(this.userPrefs, UserPreferences.PROP_TAGS_DELICIOUS_USER),
            triggerChannel)));

        tfDeliciousPassword = new JPasswordField();
        tfDeliciousPassword.setDocument(new DocumentAdapter(new BufferedValueModel(
            new PropertyAdapter(this.userPrefs, UserPreferences.PROP_TAGS_DELICIOUS_PASSWORD),
            triggerChannel)));

        ValueModel autoFetchModel = new BufferedValueModel(
            new PropertyAdapter(userPrefs, UserPreferences.PROP_TAGS_AUTOFETCH),
            triggerChannel);

        chAutoFetch = ComponentsFactory.createCheckBox(
            Strings.message("userprefs.tab.tags.autofetch"),
            new ToggleButtonAdapter(autoFetchModel));

        lbBBSWording = ComponentsFactory.createWrappedMultilineLabel(
            Strings.message("userprefs.tab.tags.wording.bbservice"));

        lbDIUWording = ComponentsFactory.createWrappedMultilineLabel(
            Strings.message("userprefs.tab.tags.wording.delicious"));

        chPinTagging = ComponentsFactory.createCheckBox(
            "Tag pins with",
            new ToggleButtonAdapter(new BufferedValueModel(
                new PropertyAdapter(userPrefs, UserPreferences.PROP_PIN_TAGGING),
                triggerChannel)));

        tfPinTags = new JTextField();
        tfPinTags.setDocument(new DocumentAdapter(new BufferedValueModel(
            new PropertyAdapter(userPrefs, UserPreferences.PROP_PIN_TAGS),
            triggerChannel)));
    }
View Full Code Here


            new ToggleButtonAdapter(
                new BufferedValueModel(new PropertyAdapter(settings,
                    UserPreferences.PROP_MARK_READ_AFTER_DELAY), triggerChannel)));

        tfReadOnDelaySeconds = new JTextField();
        tfReadOnDelaySeconds.setDocument(new DocumentAdapter(new BufferedValueModel(
            new PropertyAdapter(settings, "markReadAfterSecondsString"), triggerChannel)));

        configurePurgeControls(settings, triggerChannel);

        rssPollInterval = new JTextField();
        rssPollInterval.setDocument(new DocumentAdapter(new BufferedValueModel(
            new PropertyAdapter(settings, "rssPollIntervalString"), triggerChannel)));

        cbTheme = new JComboBox();
        ValueModel valueModel = new BufferedValueModel(
            new PropertyAdapter(frs, RenderingSettingsNames.THEME), triggerChannel);
View Full Code Here

        chDoNotRemoveUnread = ComponentsFactory.createCheckBox(
            Strings.message("userprefs.tab.general.do.not.purge.unread.articles"),
            new ToggleButtonAdapter(modelCheck));

        purgeCount = new JTextField();
        purgeCount.setDocument(new DocumentAdapter(modelCount));
    }
View Full Code Here

            new ToggleButtonAdapter(new BufferedValueModel(new PropertyAdapter(servicePrefs,
                ServicePreferences.PROP_SYNC_PREFERENCES), triggerChannel)));

        new MandatoryCheckBoxController(chFeedList, chPreferences);
       
        tfEmail.setDocument(new DocumentAdapter(new BufferedValueModel(
                new PropertyAdapter(servicePrefs, "email"), triggerChannel)));

        tfPassword.setDocument(new DocumentAdapter(new BufferedValueModel(
                new PropertyAdapter(servicePrefs, "password"), triggerChannel)));

        tfSyncPeriod.setDocument(new DocumentAdapter(new BufferedValueModel(
                new PropertyAdapter(new ServicePreferencesWrapper(servicePrefs), "syncPeriod"),
                triggerChannel)));

        updateFullSyncButton();
        updateSyncDatesView();
View Full Code Here

    {
        vmURL = new BufferedValueModel(new PropertyAdapter(proxy, TargetBlog.PROP_API_URL, true), trigger);
        vmUser = new BufferedValueModel(new PropertyAdapter(proxy, TargetBlog.PROP_USER, true), trigger);
        vmPass = new BufferedValueModel(new PropertyAdapter(proxy, TargetBlog.PROP_PASSWORD, true), trigger);

        tfTitle.setDocument(new DocumentAdapter(new PropertyAdapter(proxy, TargetBlog.PROP_TITLE, true)));
        tfURL.setDocument(new DocumentAdapter(vmURL));
        tfURLSummary.setDocument(new DocumentAdapter(new URLSummaryConverter(
            new PropertyAdapter(proxy, TargetBlog.PROP_API_URL, true))));
        tfURLSummary.setEditable(false);
        tfUser.setDocument(new DocumentAdapter(vmUser));
        tfPassword.setDocument(new DocumentAdapter(vmPass));

        taDescription = ComponentsFactory.createInstructionsArea("");

        loadCategoriesLookup();
View Full Code Here

     * @return area.
     */
    private JTextArea createExpressionsArea(String property)
    {
        JTextArea area = new JTextArea();
        area.setDocument(new DocumentAdapter(new BufferedValueModel(new PropertyAdapter(config, property), trigger)));
        return area;
    }
View Full Code Here

     *
     * @param aModel editor.
     */
    public StringVE(ValueModel aModel)
    {
        setDocument(new DocumentAdapter(aModel));
    }
View Full Code Here

TOP

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

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.