Package com.jgoodies.binding.adapter

Examples of com.jgoodies.binding.adapter.ComboBoxAdapter


    textField.setName("TextFieldProductionUnitName");
    return textField;
  }

  public JComboBox getComboBoxArticleType(PresentationModel presentationModel) {
    JComboBox comboBox = new JComboBox(new ComboBoxAdapter(Util
        .getArticleTypeList(), presentationModel
        .getBufferedModel(ProductionUnitModel.PROPERTY_ARTICLE_TYPE)));
    comboBox.setName("ComboBoxArticleType");
    return comboBox;
  }
View Full Code Here


   * Lager komboboks for uke
   *
   * @return komboboks
   */
  public JComboBox getComboBoxWeek() {
    JComboBox comboBox = new JComboBox(new ComboBoxAdapter(Util.getWeeks(),
        presentationModel.getModel(KeyReportSetting.PROPERTY_WEEK)));
    comboBox.setName("ComboBoxWeek");
    return comboBox;
  }
View Full Code Here

   * Lager komboboks for rapporttyper
   *
   * @return komboboks
   */
  public JComboBox getComboBoxReportType() {
    JComboBox comboBox = new JComboBox(new ComboBoxAdapter(ReportEnum
        .getKeyReports(), presentationModel
        .getModel(KeyReportSetting.PROPERTY_REPORT_TYPE)));
    comboBox.setName("ComboBoxReportType");
    return comboBox;
  }
View Full Code Here

   * Lager komboboks for produktomr�de
   *
   * @return komboboks
   */
  public JComboBox getComboBoxProductArea() {
    JComboBox comboBox = new JComboBox(new ComboBoxAdapter(productAreaList,
        presentationModel
            .getModel(KeyReportSetting.PROPERTY_PRODUCT_AREA)));
    comboBox.setName("ComboBoxProductArea");
    return comboBox;
  }
View Full Code Here

                .getBean("windowAccessManager");
        windowList = windowAccessManager.findAllWithTableNames();
    }

    public JComboBox getComboBoxWindows() {
        JComboBox comboBox = new JComboBox(new ComboBoxAdapter(windowList,
                presentationModel.getModel(SystemSetup.PROPERTY_WINDOW_ACCESS)));
        comboBox.setName("ComboBoxWindows");
        return comboBox;
    }
View Full Code Here

            .getBufferedModel(ApplicationUserModel.PROPERTY_FIRST_NAME));
    textFieldLastName = BasicComponentFactory
        .createTextField(presentationModel
            .getBufferedModel(ApplicationUserModel.PROPERTY_LAST_NAME));
    comboBoxGroupUser = new JComboBox(
        new ComboBoxAdapter(
            Util.getYesNoList(),
            presentationModel
                .getBufferedModel(ApplicationUserModel.PROPERTY_GROUP_USER)));

    listUserRoles = BasicComponentFactory
        .createList(((ApplicationUserViewHandler) viewHandler)
            .getUserRoleSelectionList(presentationModel));
    listProductArea = BasicComponentFactory
        .createList(((ApplicationUserViewHandler) viewHandler)
            .getUserProductAreaGroupSelectionList(presentationModel));
    passwordField = BasicComponentFactory
        .createPasswordField(presentationModel
            .getBufferedModel(ApplicationUserModel.PROPERTY_PASSWORD));

    buttonAddUserType = ((ApplicationUserViewHandler) viewHandler)
        .getButtonAddUserType(window1, presentationModel);
    buttonRemoveUserType = ((ApplicationUserViewHandler) viewHandler)
        .getButtonRemoveUserType(window1, presentationModel);

    buttonAddProductAreaGroup = ((ApplicationUserViewHandler) viewHandler)
        .getButtonAddProductAreaGroup(window1, presentationModel);
    buttonRemoveProductAreaGroup = ((ApplicationUserViewHandler) viewHandler)
        .getButtonRemoveProductAreaGroup(window1, presentationModel);

    comboBoxJobFunction = new JComboBox(
        new ComboBoxAdapter(
            ((ApplicationUserViewHandler) viewHandler)
                .getJobFunctionList(),
            presentationModel
                .getBufferedModel(ApplicationUserModel.PROPERTY_JOB_FUNCTION)));

    comboBoxProductArea = new JComboBox(
        new ComboBoxAdapter(
            ((ApplicationUserViewHandler) viewHandler)
                .getProductAreaList(),
            presentationModel
                .getBufferedModel(ApplicationUserModel.PROPERTY_PRODUCT_AREA)));
View Full Code Here

    /**
     * Initierer komponenter
     */
    private void initComponents() {
        comboBoxAssemblyTeam = new JComboBox(new ComboBoxAdapter(viewHandler
                .getSupplierList(null), presentationModel
                .getModel(AssemblyModel.PROPERTY_SUPPLIER)));
        comboBoxAssemblyTeam.setName("AssemblyTeam");

        ValueModel yearModel = presentationModel
                .getModel(AssemblyModel.PROPERTY_ASSEMBLY_YEAR);

        yearChooser = new JYearChooser();
        yearChooser.setName("AssemblyYear");

        PropertyConnector conn = new PropertyConnector(yearChooser, "year",
                yearModel, "value");
        conn.updateProperty2();

        comboBoxAssemblyWeek = new JComboBox(new ComboBoxAdapter(Util
                .getWeeks(), presentationModel
                .getModel(AssemblyModel.PROPERTY_ASSEMBLY_WEEK)));
        comboBoxAssemblyWeek.setName("AssemblyWeek");
        comboBoxAssemblyWeek.setSelectedItem(Util.getCurrentWeek());

View Full Code Here

  @Override
  protected final void initEditComponents(final WindowInterface window1) {
    orderViewHandler.checkAddresses(presentationModel, window1);
    comboBoxAssemblyTeam = new JComboBox(
        new ComboBoxAdapter(
            orderViewHandler
                .getSupplierList((ProductAreaGroup) presentationModel
                    .getBufferedValue(OrderModel.PROPERTY_PRODUCT_AREA_GROUP)),
            presentationModel
                .getBufferedModel(OrderModel.PROPERTY_SUPPLIER)));
    comboBoxAssemblyTeam.setName("ComboBoxAssemblyTeam");
    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);
View Full Code Here

    PropertyConnector conn = new PropertyConnector(yearChooser, "year",
        yearModel, "value");
    conn.updateProperty2();

    comboBoxAssemblyWeek = new JComboBox(new ComboBoxAdapter(
        Util.getWeeks(),
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_ASSEMBLY_WEEK)));
    comboBoxAssemblyWeek.setName("AssemblyWeek");
    orderViewHandler.addEditComponent(comboBoxAssemblyWeek);
View Full Code Here

   * @param presentationModel
   * @return komboboks
   */
  public JComboBox getComboBoxEmployeeType(PresentationModel presentationModel) {
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            (ListModel) employeeTypeList,
            presentationModel
                .getBufferedModel(EmployeeModel.PROPERTY_EMPLOYEE_TYPE)));
    comboBox.setEnabled(hasWriteAccess());
    return comboBox;
View Full Code Here

TOP

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

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.