Examples of ValueModel


Examples of com.jgoodies.binding.value.ValueModel

        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"),
View Full Code Here

Examples of com.jgoodies.binding.value.ValueModel

     * @param bbsAllowed        <code>TRUE</code> if BB Service selection is allowed.
     * @param triggerChannel    changes commit trigger channel.
     */
    private void initRadioButtons(boolean bbsAllowed, ValueModel triggerChannel)
    {
        ValueModel storageModel = new BufferedValueModel(
            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));
View Full Code Here

Examples of com.jgoodies.binding.value.ValueModel

        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);
        cbTheme.setModel(new ThemeListModel(valueModel));

        cbFontFamilies = new JComboBox();
        final BufferedValueModel vmMainFont = new BufferedValueModel(
            new MainFontFamilyValueModel(frs), triggerChannel);
        cbFontFamilies.setModel(new FontFamiliesListModel(vmMainFont));

        valueModel.addValueChangeListener(new PropertyChangeListener()
        {
            public void propertyChange(PropertyChangeEvent evt)
            {
                Theme theme = (Theme)evt.getNewValue();
                Font newFont = theme.getMainFontDirect();
View Full Code Here

Examples of com.jgoodies.binding.value.ValueModel

    protected JComponent buildMainPanel()
    {
        if (starzPanel == null)
        {
            final StarzPreferences settings = model.getStarzPreferences();
            final ValueModel triggerChannel = getTriggerChannel();

            starzPanel = new StarzPanel(settings, triggerChannel);
        }

        return starzPanel;
View Full Code Here

Examples of com.jgoodies.binding.value.ValueModel

        rbUpdateManually.addChangeListener(monitor);
        rbUpdatePeriodically.addChangeListener(monitor);
        cbUpdatePeriod.addItemListener(monitor);

        ValueModel updatesModel = new BufferedValueModel(
            new PropertyAdapter(prefs, UserPreferences.PROP_ON_READING_LIST_UPDATE_ACTIONS),
            triggerChannel);

        // Applying changes
        rbChangeSilently = ComponentsFactory.createRadioButton(
View Full Code Here

Examples of com.jgoodies.binding.value.ValueModel

        chMinimizeToSystray = createCheckBox(userPrefs,
            Strings.message("userprefs.tab.advanced.minimize.to.systray"),
            UserPreferences.PROP_MINIMIZE_TO_SYSTRAY);

        // Dock icon
        ValueModel modeModel = new BufferedValueModel(
            new BIDModeToStringConverter(new PropertyAdapter(userPrefs, UserPreferences.PROP_DIB_MODE)),
            triggerChannel);

        cbBIDMode = new JComboBox(new ComboBoxAdapter(BIDModeToStringConverter.MODES, modeModel));
    }
View Full Code Here

Examples of com.jgoodies.binding.value.ValueModel

    }

    private void initGuideComponents(ValueModel triggerChannel)
    {
        // Guide selection mode group
        ValueModel gsmModel = new BufferedValueModel(
            new PropertyAdapter(userPrefs, UserPreferences.PROP_GUIDE_SELECTION_MODE),
            triggerChannel);

        rbGSMFirst = createRadioButton(gsmModel,
            UserPreferences.GSM_FIRST_FEED,
View Full Code Here

Examples of com.jgoodies.binding.value.ValueModel

    {
        final UserPreferences prefs = model.getUserPreferences();
        final StarzPreferences starzPreferences = model.getStarzPreferences();
        final FeedRenderingSettings feedRS = model.getGlobalRenderingSettings();

        final ValueModel trigger = getTriggerChannel();

        GeneralPreferencesPanel generalPanel = new GeneralPreferencesPanel(prefs, feedRS, trigger);
        pnlAdvanced = new AdvancedPreferencesPanel(prefs, starzPreferences, feedRS, trigger);
        TagsPreferencesPanel tagsPanel = new TagsPreferencesPanel(prefs, model.getServicePreferences(), trigger);
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.binding.value.ValueModel

      }
      else if (list.getSelectionHolder() == null) {
        requiresDefault = true;
      }
      else {
        ValueModel model = list.getSelectionHolder();
        if (model instanceof TypeAwareValueModel) {
          if (DataValue.class.isAssignableFrom(((TypeAwareValueModel)model).getValueType())) {
            requiresDefault = false;
          }
          else {
            requiresDefault = true;
          }
        }
        else {
          requiresDefault = (model.getValue() == null);
        }
      }
      if (requiresDefault) {
        // TF:05/11/2008:Fixed this up so it actually sets the underlying model
        getSelectionModel().setSelectionInterval(0, 0);
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.binding.value.ValueModel

        public Model(SelectionInList pModel, MenuList pList) {
            super();
            this.list = pModel;
            this.ml = pList;
            ValueModel holder = this.list.getSelectionHolder();
            if (holder instanceof TypeAwareValueModel) {
              valueClass = ((TypeAwareValueModel)holder).getValueType();
              isNullable = IntegerNullable.class.isAssignableFrom(this.valueClass) || TextNullable.class.isAssignableFrom(valueClass);
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.