Package com.jgoodies.binding.adapter

Examples of com.jgoodies.binding.adapter.ComboBoxAdapter


  public JComboBox getComboBoxSupplierType(PresentationModel presentationModel) {
    SupplierTypeManager supplierTypeManager = (SupplierTypeManager) ModelUtil
        .getBean("supplierTypeManager");
    supplierTypeList = new ArrayListModel(supplierTypeManager.findAll());
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            (ListModel) supplierTypeList,
            presentationModel
                .getBufferedModel(SupplierModel.PROPERTY_SUPPLIER_TYPE)));
    comboBox.setEnabled(hasWriteAccess());
    comboBox.setName("ComboBoxSupplierType");
View Full Code Here


   *
   * @param presentationModel
   * @return comboboks
   */
  public JComboBox getComboBoxPlanned(PresentationModel presentationModel) {
    return new JComboBox(new ComboBoxAdapter(getPlannedList(),
        presentationModel
            .getBufferedModel(AssemblyModel.PROPERTY_PLANNED)));
  }
View Full Code Here

                            component = BasicComponentFactory.createCheckBox(beanAdapterAtt
                                    .getValueModel(IArticleAttributeModel.PROPERTY_ATTRIBUTE_VALUE_BOOL), "");
                            component.setName("CheckBox" + att.getAttributeName());
                            comps.put(att.getAttributeName(), component);
                        } else if (att.getChoices() != null && att.getChoices().size() != 0) {
                            component = new JComboBox(new ComboBoxAdapter(att.getChoices(), beanAdapterAtt
                                    .getValueModel(IArticleAttributeModel.PROPERTY_ATTRIBUTE_VALUE)));
                            component.setName("ComboBox" + att.getAttributeName());
                            comps.put(att.getAttributeName(), component);
                        } else {
                            component = createTextField(att, beanAdapterAtt);
View Full Code Here

   * @param presentationModel
   * @return komboboks
   */
  public JComboBox getComboBoxSupplier(PresentationModel presentationModel) {
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(supplierList, presentationModel
            .getBufferedModel(ExternalOrderModel.PROPERTY_SUPPLIER)));
    comboBox.addItemListener(new SupplierSelectionListener(
        presentationModel));
    comboBox.setEnabled(hasWriteAccess());
    return comboBox;
View Full Code Here

    }
    return true;
  }

  public JComboBox getComboBoxUsers() {
    JComboBox comboBox = new JComboBox(new ComboBoxAdapter(userNameList,
        presentationModel.getModel(TrossReady.PROPERTY_DRAWER)));
    comboBox.setName("ComboBoxUsers");
    if (presentationModel.getValue(TrossReady.PROPERTY_DRAWER) == null) {
      presentationModel.setValue(TrossReady.PROPERTY_DRAWER, login
          .getApplicationUser().getFullName());
View Full Code Here

        super.initComponents(window,addEmpty);
        comboBoxProductAreaGroup = getComboBoxProductAreaGroup();
    }

    private JComboBox getComboBoxProductAreaGroup() {
        return new JComboBox(new ComboBoxAdapter(areas, presentationModel
                .getModel(ExcelReportSettingOwnProduction.PROPERTY_PRODUCT_AREA_GROUP)));
    }
View Full Code Here

  @Override
  protected void initEditComponents(WindowInterface window1) {
    yearChooser = new JYearChooser();

    comboBoxWeek = new JComboBox(
        new ComboBoxAdapter(
            Util.getWeeks(),
            presentationModel
                .getBufferedModel(TransportModel.PROPERTY_TRANSPORT_WEEK)));

    dateChooser = new JDateChooser();
View Full Code Here

   * Henter comboboks for uke fra
   *
   * @return comboboks med uker
   */
  public JComboBox getComboBoxWeekFrom() {
    JComboBox comboBox = new JComboBox(new ComboBoxAdapter(Util.getWeeks(),
        presentationModel
            .getModel(ExcelReportSetting.PROPERTY_WEEK_FROM)));
    comboBox.setName("ComboBoxWeekFrom");
    comboBox.setSelectedItem(Util.getCurrentWeek());
    return comboBox;
View Full Code Here

  }

  public JComboBox getComboBoxWeekTo() {
    JComboBox comboBox;
    comboBox = new JComboBox(
        new ComboBoxAdapter(Util.getWeeks(), presentationModel
            .getModel(ExcelReportSetting.PROPERTY_WEEK_TO)));
    if (!excelReportEnum.useTo()) {// dersom til ikke skal brukes kobles
      // til og fra
      PropertyConnector conn = new PropertyConnector(presentationModel
          .getModel(ExcelReportSetting.PROPERTY_WEEK_FROM), "value",
View Full Code Here

   * @return comboboks med rapporttyper
   */
  public JComboBox getComboBoxReportType() {
    if (presentationModel
        .getValue(ExcelReportSetting.PROPERTY_EXCEL_REPORT_TYPE) == ExcelReportEnum.PRODUCTIVITY_PACK) {
      return new JComboBox(new ComboBoxAdapter(ExcelReportEnum
          .getProductivityReports(), presentationModel
          .getModel(ExcelReportSetting.PROPERTY_EXCEL_REPORT_TYPE)));
    }
    return null;
  }
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.