Examples of BufferedValueModel


Examples of com.jgoodies.binding.value.BufferedValueModel

                  .getBufferedValue(ICostableModel.PROPERTY_DEVIATION));

      if (orderLines != null) {
        openOrderLineView(orderLines, window);
      }
      BufferedValueModel bufferedOrderLines = presentationModel
          .getBufferedModel(ICostableModel.PROPERTY_ORDER_LINE_ARRAY_LIST_MODEL);

      if (orderLines != null && orderLines.size() != 0) {

        rootOrderWrapper.getOrderLines().addAll(orderLines);
        calculateAttributes(orderLines);
        bufferedOrderLines.setValue(new ArrayListModel(orderLines));
      } else {
        bufferedOrderLines.setValue(new ArrayListModel());
      }
      if (presentationModel
          .getBufferedValue(ICostableModel.PROPERTY_DEVIATION) == null) {
        presentationModel.setBufferedValue(
            OrderModel.PROPERTY_PRODUCT_AREA, newConstructionType
View Full Code Here

Examples of com.jgoodies.binding.value.BufferedValueModel

          lines.add(line);
        }
      }
      openOrderLineView(lines, window);

      BufferedValueModel bufferedOrderLinesModel = presentationModel
          .getBufferedModel(ICostableModel.PROPERTY_ORDER_LINE_ARRAY_LIST_MODEL);

      bufferedOrderLinesModel.setValue(new ArrayListModel(
          bufferedOrderLines));

      calculateAttributes(bufferedOrderLines);
      rootOrder
          .setOrderLines(new ArrayList<OrderLine>(bufferedOrderLines));
View Full Code Here

Examples of com.jgoodies.binding.value.BufferedValueModel

    orderWrapper.setOrderLines(orderLines);

    orderLineTreeTableModel.fireChanged();

    BufferedValueModel bufferedArticles = presentationModel
        .getBufferedModel(ICostableModel.PROPERTY_ORDER_LINE_ARRAY_LIST_MODEL);
    bufferedArticles.setValue(new ArrayListModel(orderWrapper
        .getOrderLines()));
  }
View Full Code Here

Examples of com.jgoodies.binding.value.BufferedValueModel

        } else {
          OrderWrapper<T, E> orderWrapper = (OrderWrapper<T, E>) ((OrderLineTreeNode) orderLineTreeTableModel
              .getRoot()).getObject();
          orderWrapper.removeOrderLine(orderLine);

          BufferedValueModel bufferedOrderLines = presentationModel
              .getBufferedModel(ICostableModel.PROPERTY_ORDER_LINE_ARRAY_LIST_MODEL);
          bufferedOrderLines.setValue(new ArrayListModel(orderWrapper
              .getOrderLines()));
          orderLineTreeTableModel.fireChanged();
        }
      } else {
        deleted = false;
View Full Code Here

Examples of com.jgoodies.binding.value.BufferedValueModel

    orderViewHandler.addEditComponent(comboBoxAssemblyTeam);

    createAssemblyFields();

    checkBoxLock = orderViewHandler.getCheckBoxLock();
    BufferedValueModel bufferedValueModel = presentationModel
        .getBufferedModel(OrderModel.PROPERTY_CUSTOMER);

    createCustomerFields();
    createOrderFields(window1);
    checkBoxAssembly = BasicComponentFactory.createCheckBox(
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_DO_ASSEMBLY),
        "Montering");
    checkBoxAssembly.setName("Assembly");
    orderViewHandler.addEditComponent(checkBoxAssembly);

    comboBoxConstructionType = orderViewHandler
        .getComboBoxConstructionType(presentationModel);

    boolean onlyNewTransport = false;
    if (presentationModel.getBufferedValue(OrderModel.PROPERTY_ORDER_ID) == null
        && !search) {
      onlyNewTransport = true;
    }
    comboBoxTransport = new JComboBox(new ComboBoxAdapter(
        orderViewHandler.getTransportList(onlyNewTransport),
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_TRANSPORT)));
    comboBoxTransport.setName("Transport");
    orderViewHandler.addEditComponent(comboBoxTransport);

    panelAssembly = buildAssemblyPanel();

    panelAssembly.setName("AssemblyPanel");
    panelAssembly.setVisible(false);

    orderDate = new JDateChooser();

    orderDate.setName("OrderDate");
    orderViewHandler.addEditComponent(orderDate);

    collapsiblePaneCost = new JXCollapsiblePane(new BorderLayout());
    Action toggleCostAction = collapsiblePaneCost.getActionMap().get(
        JXCollapsiblePane.TOGGLE_ACTION);

    checkBoxCosts = new JCheckBox(toggleCostAction);
    checkBoxCosts.setText("Kostnader");
    checkBoxCosts.setSelected(true);

    PropertyConnector connOrderDate = new PropertyConnector(orderDate,
        "date",
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_ORDER_DATE),
        "value");

    connOrderDate.updateProperty1();

    PropertyConnector connAssembly = new PropertyConnector(panelAssembly,
        "visible",
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_DO_ASSEMBLY),
        "value");
    connAssembly.updateProperty1();

    dateChooserInvoiced = new JDateChooser();
    orderViewHandler.addEditComponent(dateChooserInvoiced);

    PropertyConnector connInvoiceDate = new PropertyConnector(
        dateChooserInvoiced, "date",
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_INVOICE_DATE),
        "value");

    connInvoiceDate.updateProperty1();

    dateChooserPacklist = new JDateChooser();
    orderViewHandler.addEditComponent(dateChooserPacklist);

    PropertyConnector connPacklistDate = new PropertyConnector(
        dateChooserPacklist, "date",
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_PACKLIST_READY),
        "value");

    connPacklistDate.updateProperty1();

    agreementDate = new JDateChooser();
    agreementDate.setName("AgreementDate");
    if (!search) {
      agreementDate.setEnabled(false);
    }
    PropertyConnector connAgreementDate = new PropertyConnector(
        agreementDate, "date",
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_AGREEMENT_DATE),
        "value");

    connAgreementDate.updateProperty1();

    textFieldTelephoneNr = BasicComponentFactory.createTextField(
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_TELEPHONE_NR),
        !search);
    textFieldTelephoneNr.setName("TelephoneNr");
    orderViewHandler.addEditComponent(textFieldTelephoneNr);

    comboBoxDeliveryWeek = new JComboBox(new ComboBoxAdapter(
        Util.getWeeks(),
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_DELIVERY_WEEK)));
    comboBoxDeliveryWeek.setName("DeliveryWeek");
    orderViewHandler.addEditComponent(comboBoxDeliveryWeek);

    bufferedValueModel
        .addValueChangeListener(new CustomerSelectionHandler());

    comboBoxProductArea = orderViewHandler
        .getComboBoxProductArea(presentationModel);
View Full Code Here

Examples of com.jgoodies.binding.value.BufferedValueModel

    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

Examples of com.jgoodies.binding.value.BufferedValueModel

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

        }

        private Component buildBriefModePanel(UserPreferences prefs, ValueModel trigger)
        {
            SpinnerModelAdapter mdlSentences = new SpinnerModelAdapter(new BoundedRangeAdapter(
                new BufferedValueModel(new PropertyAdapter(prefs, UserPreferences.PROP_BRIEF_SENTENCES),
                    trigger), 0, 1, 10));
            JSpinner spSentences = new JSpinner(mdlSentences);

            SpinnerModelAdapter mdlMaxLength = new SpinnerModelAdapter(new BoundedRangeAdapter(
                new BufferedValueModel(new PropertyAdapter(prefs, UserPreferences.PROP_BRIEF_MAX_LENGTH),
                    trigger), 0, 100, 1000));
            mdlMaxLength.setStepSize(100);
            JSpinner spMaxLength = new JSpinner(mdlMaxLength);

            BBFormBuilder builder = new BBFormBuilder("p, 4dlu, 25dlu, 4dlu, p, 4dlu, 35dlu, 4dlu, p");
View Full Code Here

Examples of com.jgoodies.binding.value.BufferedValueModel

        }

        private Component buildPaginationPanel(UserPreferences prefs, ValueModel trigger)
        {
            SpinnerModelAdapter mdlPageSize = new SpinnerModelAdapter(new BoundedRangeAdapter(
                new BufferedValueModel(new PropertyAdapter(prefs, UserPreferences.PROP_PAGE_SIZE),
                    trigger), 0, 10, 200));
            JSpinner spPageSize = new JSpinner(mdlPageSize);
            SpinnerNumberModel model = (SpinnerNumberModel)spPageSize.getModel();
            model.setStepSize(10);
View Full Code Here

Examples of com.jgoodies.binding.value.BufferedValueModel

                String property = properties[i];
                for (int j = 0; j < modes.length; j++)
                {
                    ViewModePreferences.ViewModeBean mode = modes[j];

                    ButtonModel model = new ToggleButtonAdapter(new BufferedValueModel(
                        new PropertyAdapter(mode, property), trigger));
                    checks[i][j] = ComponentsFactory.createCheckBox(null, model);
                }
            }
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.