Examples of PropertyConnector


Examples of com.jgoodies.binding.beans.PropertyConnector

      presentationModel.setBufferedValue(
          AccidentModel.PROPERTY_REGISTRATION_DATE, Util
              .getCurrentDate());
      presentationModel.triggerCommit();
    }
    PropertyConnector conn = new PropertyConnector(
        dateChooser,
        "date",
        presentationModel
            .getBufferedModel(AccidentModel.PROPERTY_REGISTRATION_DATE),
        "value");
    conn.updateProperty1();

    dateChooser.setName("DateChooserRegistrationDate");
    return dateChooser;
  }
View Full Code Here

Examples of com.jgoodies.binding.beans.PropertyConnector

  }
 
  public JDateChooser getDateChooserDoneDate(
      PresentationModel presentationModel) {
    JDateChooser dateChooser = new JDateChooser();
    PropertyConnector conn = new PropertyConnector(
        dateChooser,
        "date",
        presentationModel
            .getBufferedModel(AccidentModel.PROPERTY_DONE_DATE),
        "value");
    conn.updateProperty1();

    dateChooser.setName("DateChooserDoneDate");
    return dateChooser;
  }
View Full Code Here

Examples of com.jgoodies.binding.beans.PropertyConnector

  }

  public JDateChooser getDateChooserAccidentDate(
      PresentationModel presentationModel) {
    JDateChooser dateChooser = new JDateChooser();
    PropertyConnector conn = new PropertyConnector(
        dateChooser,
        "date",
        presentationModel
            .getBufferedModel(AccidentModel.PROPERTY_ACCIDENT_DATE),
        "value");
    conn.updateProperty1();

    dateChooser.setName("DateChooserAccidentDate");
    return dateChooser;
  }
View Full Code Here

Examples of com.jgoodies.binding.beans.PropertyConnector

   * @param presentationModel
   * @return �rvelger
   */
  public JYearChooser getYearChooser(PresentationModel presentationModel) {
    JYearChooser yearChooser = new JYearChooser();
    PropertyConnector conn = new PropertyConnector(
        yearChooser,
        "year",
        presentationModel
            .getBufferedModel(ProductionBudgetModel.PROPERTY_BUDGET_YEAR),
        "value");
    if (presentationModel
        .getBufferedValue(ProductionBudgetModel.PROPERTY_BUDGET_YEAR) != null) {
      conn.updateProperty1();
    } else {
      conn.updateProperty2();
    }
    yearChooser.setName("YearChooser");
    return yearChooser;
  }
View Full Code Here

Examples of com.jgoodies.binding.beans.PropertyConnector

    return cal.get(Calendar.YEAR);
  }

  public static JYearChooser createYearChooser(Object mappingObject) {
    JYearChooser yearChooser = new JYearChooser();
    PropertyConnector conn = new PropertyConnector(yearChooser, "year",
        mappingObject, "value");
    conn.updateProperty2();

    return yearChooser;
  }
View Full Code Here

Examples of com.jgoodies.binding.beans.PropertyConnector

        aPresentationModel, searching, login, managerRepository);

    JButton buttonAddArticle = orderArticleViewHandler.getAddArticleButton(
        window, new ArticleUpdateListener(aPresentationModel, window));

    PropertyConnector conn = new PropertyConnector(
        buttonAddArticle,
        "enabled",
        aPresentationModel
            .getBufferedModel(DeviationModel.PROPERTY_CAN_ADD_ORDER_LINE),
        "value");
    conn.updateProperty1();

    return orderArticleViewHandler;
  }
View Full Code Here

Examples of com.jgoodies.binding.beans.PropertyConnector

                .getBufferedModel(DeviationModel.PROPERTY_POST_SHIPMENT_BOOL),
            "Etterlevering");
    if (isSearch) {
      checkBox.setEnabled(true);
    } else if (hasWriteAccess()) {
      PropertyConnector conn = new PropertyConnector(
          checkBox,
          "enabled",
          presentationModel
              .getBufferedModel(DeviationModel.PROPERTY_CAN_SET_POST_SHIPMENT),
          "value");
      conn.updateProperty1();
    } else {
      checkBox.setEnabled(false);
    }
    checkBox.setName("CheckBoxPostShipment");
    return checkBox;
View Full Code Here

Examples of com.jgoodies.binding.beans.PropertyConnector

   * @return datovelger
   */
  public JDateChooser getDateChooserProcedureCheck(
      PresentationModel presentationModel) {
    dateChooserProcedureCheck = new JDateChooser();
    PropertyConnector conn = new PropertyConnector(
        dateChooserProcedureCheck,
        "date",
        presentationModel
            .getBufferedModel(DeviationModel.PROPERTY_PROCEDURE_CHECK),
        "value");
    conn.updateProperty1();
    dateChooserProcedureCheck.setEnabled(false);
    if (hasWriteAccess()) {
      if (userType.isAdministrator()) {
        dateChooserProcedureCheck.setEnabled(true);
      } else {
View Full Code Here

Examples of com.jgoodies.binding.beans.PropertyConnector

   * @param presentationModel
   * @return datovelger
   */
  public JDateChooser getDateChooserFrom(PresentationModel presentationModel) {
    JDateChooser dateChooser = new JDateChooser();
    PropertyConnector conn = new PropertyConnector(dateChooser, "date",
        presentationModel
            .getBufferedModel(DeviationModel.PROPERTY_DATE_FROM),
        "value");
    conn.updateProperty1();

    dateChooser.setName("DateChooserFrom");
    return dateChooser;
  }
View Full Code Here

Examples of com.jgoodies.binding.beans.PropertyConnector

   * @param presentationModel
   * @return datovelger
   */
  public JDateChooser getDateChooserTo(PresentationModel presentationModel) {
    JDateChooser dateChooser = new JDateChooser();
    PropertyConnector conn = new PropertyConnector(dateChooser, "date",
        presentationModel
            .getBufferedModel(DeviationModel.PROPERTY_DATE_TO),
        "value");
    conn.updateProperty1();

    dateChooser.setName("DateChooserTo");
    return dateChooser;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.