Package com.jgoodies.binding.adapter

Examples of com.jgoodies.binding.adapter.ComboBoxAdapter


   *
   * @param presentationModel1
   * @return komboboks
   */
  public JComboBox getComboBoxMetric(PresentationModel presentationModel1) {
    JComboBox comboBox = new JComboBox(new ComboBoxAdapter(metricList,
        presentationModel1
            .getBufferedModel(ArticleTypeModel.PROPERTY_METRIC)));
    comboBox.setName("ComboBoxMetric");
    return comboBox;
  }
View Full Code Here


        SelectionInList.PROPERTYNAME_SELECTION_INDEX,
        new ProductionUnitSelectionListener());
  }

  public final JComboBox getComboBoxProductionUnit() {
    JComboBox comboBox = new JComboBox(new ComboBoxAdapter(
        productionUnitSelectionList));
    comboBox.setName("ComboBoxProductionUnit");
    return comboBox;
  }
View Full Code Here

   * Lagern komboboks for leverand�r.
   *
   * @return komboboks
   */
  public final JComboBox getComboBoxSupplier(final int numberOf) {
    JComboBox tmp = new JComboBox(new ComboBoxAdapter(
        (ListModel) transportSupplierList, transportPresentationModel
            .getBufferedModel(TransportModel.PROPERTY_SUPPLIER)));

    tmp.addItemListener(new SupplierSelectionListener());
    tmp.setEnabled(hasWriteAccess());
View Full Code Here

   *
   * @return komboboks
   */
  public final JComboBox getComboBoxEmployee() {
    initEmployeeCombo();
    JComboBox comboBox = new JComboBox(new ComboBoxAdapter(
        (ListModel) transportEmployeeList, transportPresentationModel
            .getBufferedModel(TransportModel.PROPERTY_EMPLOYEE)));
    comboBox.setEnabled(hasWriteAccess());
    return comboBox;
  }
View Full Code Here

   */
  public JComboBox getComboBoxConstructionType(
      PresentationModel presentationModel) {
    initConstructionTypeList(presentationModel);
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            (ListModel) constructionTypeList,
            presentationModel
                .getBufferedModel(OrderModel.PROPERTY_CONSTRUCTION_TYPE)));
    comboBox.setName("ComboBoxConstructionType");
    addEditComponent(comboBox);
View Full Code Here

   *
   * @param presentationModel
   * @return comboboks
   */
  public JComboBox getComboBoxCostType(PresentationModel presentationModel) {
    JComboBox combo = new JComboBox(new ComboBoxAdapter(
        (ListModel) costTypeList, presentationModel
            .getModel(OrderCostModel.PROPERTY_COST_TYPE)));
    combo.setName("ComboBoxCostType");
    return combo;
  }
View Full Code Here

   *
   * @param presentationModel
   * @return comboboks
   */
  public JComboBox getComboBoxCostUnit(PresentationModel presentationModel) {
    JComboBox combo = new JComboBox(new ComboBoxAdapter(
        (ListModel) costUnitList, presentationModel
            .getModel(OrderCostModel.PROPERTY_COST_UNIT)));
    combo.setName("ComboBoxCostUnit");
    return combo;
  }
View Full Code Here

   *
   * @param presentationModel
   * @return comboboks
   */
  public JComboBox getComboBoxVat(PresentationModel presentationModel) {
    return new JComboBox(new ComboBoxAdapter(new Object[] {
        new YesNoInteger(0), new YesNoInteger(1) }, presentationModel
        .getModel(OrderCostModel.PROPERTY_IS_INCL_VAT)));
  }
View Full Code Here

   *
   * @param presentationModel
   * @return comboboks
   */
  public JComboBox getComboBoxSupplier(PresentationModel presentationModel) {
    return new JComboBox(new ComboBoxAdapter((ListModel) supplierList,
        presentationModel.getModel(OrderCostModel.PROPERTY_SUPPLIER)));
  }
View Full Code Here

          //beanAdapter.setValue("attributeValueBool", Boolean.FALSE);
          beanAdapter.setValue(IArticleAttributeModel.PROPERTY_ATTRIBUTE_VALUE_BOOL, Boolean.FALSE);
        } else if (attribute.getChoices() != null
            && attribute.getChoices().size() != 0) {
          comboBoxes.put(attribute.getAttributeName(),
              new JComboBox(new ComboBoxAdapter(attribute
                  .getChoices(), beanAdapter
                  //.getValueModel("attributeValue"))));
                  .getValueModel(IArticleAttributeModel.PROPERTY_ATTRIBUTE_VALUE))));
        } else {
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.