Package com.jgoodies.binding.adapter

Examples of com.jgoodies.binding.adapter.ComboBoxAdapter


    if (groupList.size() == 0) {
      throw new ProTransRuntimeException(
          "Bruker har ikke definert noe produktomr�de");
    }
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            groupList,
            productAreaGroupModel
                .getModel(ProductAreaGroupModel.PROPERTY_PRODUCT_AREA_GROUP)));
    comboBox.setName("ComboBoxProductAreaGroup");
    comboBox.setSelectedItem(userProductAreaGroup);
View Full Code Here


    tmpJobFunctionList.addAll(jobFunctionList);
    if (addEmpty) {
      tmpJobFunctionList.add(0, null);
    }
    return new JComboBox(
        new ComboBoxAdapter(tmpJobFunctionList, valueModel));
  }
View Full Code Here

    List<EmployeeType> tmpEmployeeTypeList = new ArrayList<EmployeeType>();
    tmpEmployeeTypeList.addAll(employeeTypeList);
    if (addEmpty) {
      tmpEmployeeTypeList.add(0, null);
    }
    return new JComboBox(new ComboBoxAdapter(tmpEmployeeTypeList,
        valueModel));
  }
View Full Code Here

    }
  }

  public static JComboBox getComboBoxUsers(ValueModel valueModel, boolean sort) {

    return new JComboBox(new ComboBoxAdapter(
        ApplicationUserUtil.getUserList(sort), valueModel));
  }
View Full Code Here

        if (inputLabelText != null) {
            textFieldInput = new JTextField();
            textFieldInput.setName("TextFieldInput");
        } else {
            if (comboBox) {
                comboBoxOptions = new JComboBox(new ComboBoxAdapter(
                        objectSelectionList));
                comboBoxOptions.setName("ComboBoxOptions");
            } else {
                listOptions = new JXList(objectList);
                listOptions.setName("ListOptions");
View Full Code Here

  private JComboBox getComboBoxDeviationFunction() {
    presentationModel.getBufferedModel(
        ExcelReportSettingDeviation.PROPERTY_DEVIATION_FUNCTION)
        .addPropertyChangeListener(new FunctionChangeListener());
    return new JComboBox(
        new ComboBoxAdapter(
            deviationFunctionList,
            presentationModel
                .getModel(ExcelReportSettingDeviation.PROPERTY_DEVIATION_FUNCTION)));
  }
View Full Code Here

   * @return komboboks
   */
  private JComboBox getComboBoxFunctionCategory() {
    initFunctionCategoryList();
    return new JComboBox(
        new ComboBoxAdapter(
            (ListModel) functionCategoryList,
            presentationModel
                .getModel(ExcelReportSettingDeviation.PROPERTY_FUNCTION_CATEGORY)));
  }
View Full Code Here

   *
   * @return komboboks
   */
  private JComboBox getComboBoxDeviationStatus() {
    return new JComboBox(
        new ComboBoxAdapter(
            deviationStatusList,
            presentationModel
                .getModel(ExcelReportSettingDeviation.PROPERTY_DEVIATION_STATUS)));
  }
View Full Code Here

   * Lager komboboks med alle m�neder
   *
   * @return komboboks
   */
  private JComboBox getComboBoxMonths() {
    JComboBox comboBox = new JComboBox(new ComboBoxAdapter(MonthEnum
        .getMonthList(), presentationModel
        .getModel(ExcelReportSettingDeviation.PROPERTY_MONTH_ENUM)));
    comboBox.setName("ComboBoxMonth");
    return comboBox;
  }
View Full Code Here

    return comboBox;
  }

  private JComboBox getComboBoxProductAreaGroup() {
    return new JComboBox(
        new ComboBoxAdapter(
            areas,
            presentationModel
                .getModel(ExcelReportSettingDeviation.PROPERTY_PRODUCT_AREA_GROUP)));
  }
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.