Package com.jgoodies.binding.value

Examples of com.jgoodies.binding.value.BufferedValueModel


     * @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


     *
     * @return combo-box.
     */
    private JComboBox createColorComboBox(String property, ValueModel trigger)
    {
        JComboBox box = new JComboBox(new ColorAdapter(new BufferedValueModel(
                        new PropertyAdapter(config, property), trigger)));
        box.setRenderer(colorListCellRenderer);
        return box;
    }
View Full Code Here

        {
            super(Dialog.this, Strings.message("whatshot.dialog.title") + " - " + Strings.message("whatshot.setup"));

            taIgnorePatterns = new JTextArea();
            taIgnorePatterns.setLineWrap(false);
            taIgnorePatterns.setDocument(new DocumentAdapter(new BufferedValueModel(new PropertyAdapter(
                prefs, UserPreferences.PROP_WH_IGNORE), getTriggerChannel())));

            chDontCountSelfLinks = ComponentsFactory.createCheckBox(
                Strings.message("whatshot.setup.no.self.links"),
                prefs, UserPreferences.PROP_WH_NOSELFLINKS, getTriggerChannel());
View Full Code Here

        Component tfWording = ComponentsFactory.createWrappedMultilineLabel(
            Strings.message("userprefs.tab.twitter.wording"));

        JCheckBox chEnabled = ComponentsFactory.createCheckBox(
            Strings.message("userprefs.tab.twitter.enable"),
            new ToggleButtonAdapter(new BufferedValueModel(
                new PropertyAdapter(prefs, TwitterPreferences.PROP_ENABLED),
                trigger)));

        JCheckBox chProfilePics = ComponentsFactory.createCheckBox(
            Strings.message("userprefs.tab.twitter.profile.pics"),
            new ToggleButtonAdapter(new BufferedValueModel(
                new PropertyAdapter(prefs, TwitterPreferences.PROP_PROFILE_PICS),
                trigger)));

        JCheckBox chPasteLink = ComponentsFactory.createCheckBox(
            Strings.message("userprefs.tab.twitter.paste.link"),
            new ToggleButtonAdapter(new BufferedValueModel(
                new PropertyAdapter(prefs, TwitterPreferences.PROP_PASTE_LINK),
                trigger)));

        JLabel lbScreenName = new JLabel(Strings.message("userprefs.tab.twitter.screenname"));
        JLabel lbPassword   = new JLabel(Strings.message("userprefs.tab.twitter.password"));
View Full Code Here

        res.setMinimum(0);
        res.setPaintTicks(true);
        res.setMajorTickSpacing(1);
        res.setSnapToTicks(true);

        res.setModel(new BoundedRangeAdapter(new BufferedValueModel(new PropertyAdapter(
            preferences, propertyName), triggerChannel), 0, 0, 4));

        return res;
    }
View Full Code Here

TOP

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

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.