Package com.jgoodies.binding.adapter

Examples of com.jgoodies.binding.adapter.ComboBoxAdapter


    /**
     * Lager komboboks for uke fra
     * @return komboboks
     */
    public JComboBox getComboBoxFromWeek() {
        return new JComboBox(new ComboBoxAdapter(Util.getWeeks(),
                presentationModel.getModel(ReportSetting.PROPERTY_FROM_WEEK)));
    }
View Full Code Here


    /**
     * Lager komboboks for uke til
     * @return komboboks
     */
    public JComboBox getComboBoxToWeek() {
        return new JComboBox(new ComboBoxAdapter(Util.getWeeks(),
                presentationModel.getModel(ReportSetting.PROPERTY_TO_WEEK)));
    }
View Full Code Here

   * @param presentationModel
   * @return komboboks
   */
  public JComboBox getComboBoxSketch(PresentationModel presentationModel) {
    return new JComboBox(
        new ComboBoxAdapter(
            SketchEnum.getSketchList(),
            presentationModel
                .getBufferedModel(ConstructionTypeModel.PROPERTY_SKETCH_NAME)));
  }
View Full Code Here

                .getBufferedModel(ConstructionTypeModel.PROPERTY_SKETCH_NAME)));
  }

  public JComboBox getComboBoxProductArea(PresentationModel presentationModel) {
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            productAreaList,
            presentationModel
                .getBufferedModel(ConstructionTypeModel.PROPERTY_PRODUCT_AREA)));
    comboBox.setName("ComboBoxProductArea");
    return comboBox;
View Full Code Here

   * @param presentationModel
   * @return komboboks
   */
  public JComboBox getComboBoxManager(PresentationModel presentationModel,
      String property) {
    JComboBox comboBox = new JComboBox(new ComboBoxAdapter(userNameList,
        presentationModel.getBufferedModel(property)));
    comboBox.setName("ComboBoxManager");
    return comboBox;
  }
View Full Code Here

    boolean isManager = initDeviationStatusList((JobFunction) presentationModel
        .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_FUNCTION));
    DeviationStatus status = (DeviationStatus) presentationModel
        .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_STATUS);
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            deviationStatusList,
            presentationModel
                .getBufferedModel(DeviationModel.PROPERTY_DEVIATION_STATUS)));
    if (status != null
        && Util.convertNumberToBoolean(status.getForManager())
View Full Code Here

   */
  public JComboBox getComboBoxFunctionCategory(
      PresentationModel presentationModel) {
    setCategoryList(presentationModel);
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            (ListModel) functionCategoryList,
            presentationModel
                .getBufferedModel(DeviationModel.PROPERTY_FUNCTION_CATEGORY)));
    comboBox.addItemListener(new DeviationCategoryItemListener(
        presentationModel));
View Full Code Here

   */
  public JComboBox getComboBoxPreventiveAction(
      PresentationModel presentationModel) {
    setPreventiveActionList(presentationModel, null);
    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(
            (ListModel) preventiveActionList,
            presentationModel
                .getBufferedModel(DeviationModel.PROPERTY_PREVENTIVE_ACTION)));
    comboBox.setEnabled(hasWriteAccess());
    comboBox.setName("ComboBoxPreventiveAction");
View Full Code Here

   *
   * @param presentationModel
   * @return komboboks
   */
  public JComboBox getComboBoxResponsible(PresentationModel presentationModel) {
    JComboBox comboBox = new JComboBox(new ComboBoxAdapter(responsibleList,
        presentationModel
            .getBufferedModel(DeviationModel.PROPERTY_RESPONSIBLE)));
    comboBox.setEnabled(hasWriteAccess());
    comboBox.setName("ComboBoxResponsible");
    return comboBox;
View Full Code Here

      }
    }

    JComboBox comboBox = new JComboBox(
        new ComboBoxAdapter(productAreaList, presentationModel
            .getBufferedModel(DeviationModel.PROPERTY_PRODUCT_AREA)));
    comboBox.setName("ComboBoxProductArea");

    if (login.getApplicationUser().getProductArea() == null) {
      comboBox.setSelectedIndex(0);
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.