Examples of JDateChooser


Examples of com.toedter.calendar.JDateChooser

    dialogFixture.robot.finder().findByName("DateChooserRegistrationDate");

    dialogFixture.comboBox("ComboBoxJobFunction").selectItem(0);

    JDateChooser dateChooser = BasicComponentFinder
        .finderWithCurrentAwtHierarchy().find(
            new JDateChooserFinder("DateChooserAccidentDate"));
    dateChooser.setDate(Util.getCurrentDate());

    dialogFixture.textBox("TextAreaDescription").enterText(
        "testbeskrivelse");
    dialogFixture.textBox("TextAreaCause").enterText("test�rsak");
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

  @Test
  public void testCancelAddParticipant() {
    dialogFixture.textBox("TextFieldRegisteredBy").enterText("test");
    dialogFixture.comboBox("ComboBoxJobFunction").selectItem(0);

    JDateChooser dateChooser = dialogFixture.robot.finder().find(
        new JDateChooserFinder("DateChooserAccidentDate"));
    dateChooser.setDate(Util.getCurrentDate());
    dialogFixture.radioButton("RadioButtonPersonalInjury").click();
    dialogFixture.textBox("TextAreaDescription").enterText(
        "testbeskrivelse");
    dialogFixture.textBox("TextAreaCause").enterText("test�rsak");
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    ComponentFinder finder = dialogFixture.robot.finder();
    dialogFixture.robot.finder().findByName("DateChooserRegistrationDate");

    dialogFixture.comboBox("ComboBoxJobFunction").selectItem(0);

    JDateChooser dateChooser = finder.find(new JDateChooserFinder(
        "DateChooserAccidentDate"));
    dateChooser.setDate(Util.getCurrentDate());

    dialogFixture.textBox("TextAreaDescription").enterText(
        "testbeskrivelse");
    dialogFixture.textBox("TextAreaCause").enterText("test�rsak");
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    panelAssembly = buildAssemblyPanel();

    panelAssembly.setName("AssemblyPanel");
    panelAssembly.setVisible(false);

    orderDate = new JDateChooser();

    orderDate.setName("OrderDate");
    orderViewHandler.addEditComponent(orderDate);

    collapsiblePaneCost = new JXCollapsiblePane(new BorderLayout());
    Action toggleCostAction = collapsiblePaneCost.getActionMap().get(
        JXCollapsiblePane.TOGGLE_ACTION);

    checkBoxCosts = new JCheckBox(toggleCostAction);
    checkBoxCosts.setText("Kostnader");
    checkBoxCosts.setSelected(true);

    PropertyConnector connOrderDate = new PropertyConnector(orderDate,
        "date",
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_ORDER_DATE),
        "value");

    connOrderDate.updateProperty1();

    PropertyConnector connAssembly = new PropertyConnector(panelAssembly,
        "visible",
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_DO_ASSEMBLY),
        "value");
    connAssembly.updateProperty1();

    dateChooserInvoiced = new JDateChooser();
    orderViewHandler.addEditComponent(dateChooserInvoiced);

    PropertyConnector connInvoiceDate = new PropertyConnector(
        dateChooserInvoiced, "date",
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_INVOICE_DATE),
        "value");

    connInvoiceDate.updateProperty1();

    dateChooserPacklist = new JDateChooser();
    orderViewHandler.addEditComponent(dateChooserPacklist);

    PropertyConnector connPacklistDate = new PropertyConnector(
        dateChooserPacklist, "date",
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_PACKLIST_READY),
        "value");

    connPacklistDate.updateProperty1();

    agreementDate = new JDateChooser();
    agreementDate.setName("AgreementDate");
    if (!search) {
      agreementDate.setEnabled(false);
    }
    PropertyConnector connAgreementDate = new PropertyConnector(
        agreementDate, "date",
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_AGREEMENT_DATE),
        "value");

    connAgreementDate.updateProperty1();

    textFieldTelephoneNr = BasicComponentFactory.createTextField(
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_TELEPHONE_NR),
        !search);
    textFieldTelephoneNr.setName("TelephoneNr");
    orderViewHandler.addEditComponent(textFieldTelephoneNr);

    comboBoxDeliveryWeek = new JComboBox(new ComboBoxAdapter(
        Util.getWeeks(),
        presentationModel
            .getBufferedModel(OrderModel.PROPERTY_DELIVERY_WEEK)));
    comboBoxDeliveryWeek.setName("DeliveryWeek");
    orderViewHandler.addEditComponent(comboBoxDeliveryWeek);

    bufferedValueModel
        .addValueChangeListener(new CustomerSelectionHandler());

    comboBoxProductArea = orderViewHandler
        .getComboBoxProductArea(presentationModel);

    textFieldSalesman = BasicComponentFactory
        .createTextField(presentationModel
            .getBufferedModel(OrderModel.PROPERTY_SALESMAN));
    orderViewHandler.addEditComponent(textFieldSalesman);

    dateChooserPaid = new JDateChooser();
    dateChooserPaid.setName("DateChooserPaid");
    orderViewHandler.addEditComponent(dateChooserPaid);

    PropertyConnector connPaidDate = new PropertyConnector(dateChooserPaid,
        "date",
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

  }

  @Test
  public void testManagerCanSetEndDate() {

    JDateChooser dateChooser = (JDateChooser) dialogFixture.robot.finder()
        .findByName("DateChooserProcedureCheck");
    assertEquals(false, dateChooser.isEnabled());

    dialogFixture.comboBox("ComboBoxDeviationFunction").selectItem(
        "Transport");

    assertEquals(true, dateChooser.isEnabled());

  }
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

        (JDialog) dialogFixture.robot.finder().findByName(
            "UpdateOrderLineView"));

    garasjeDialog.button("ButtonOk").click();

    JDateChooser orderDate = (JDateChooser) dialogFixture.robot.finder()
        .findByName("OrderDate");

    orderDate.setDate(Calendar.getInstance().getTime());

    JDateChooser productionDate = (JDateChooser) dialogFixture.robot
        .finder().findByName("DateChooserProduction");

    productionDate.setDate(Calendar.getInstance().getTime());

    JButtonFixture addCostButton = editDialog.button("ButtonAddCost");
    addCostButton.click();
    DialogFixture kostnadDialog = new DialogFixture(dialogFixture.robot,
        (JDialog) dialogFixture.robot.finder().findByName(
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

        (JDialog) dialogFixture.robot.finder().findByName(
            "UpdateOrderLineView"));

    garasjeDialog.button("ButtonOk").click();

    JDateChooser orderDate = (JDateChooser) dialogFixture.robot.finder()
        .findByName("OrderDate");

    orderDate.setDate(Calendar.getInstance().getTime());

    JDateChooser productionDate = (JDateChooser) dialogFixture.robot
        .finder().findByName("DateChooserProduction");

    productionDate.setDate(Calendar.getInstance().getTime());

    JButtonFixture addCostButton = editDialog.button("ButtonAddCost");
    addCostButton.click();
    DialogFixture kostnadDialog = new DialogFixture(dialogFixture.robot,
        (JDialog) dialogFixture.robot.finder().findByName(
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    /**
     * Lager datovelger for fra dato
     * @return datovelger
     */
    public JDateChooser getDateChooserFrom() {
        dateChooserFrom = new JDateChooser();

        PropertyConnector connDate = new PropertyConnector(dateChooserFrom,
                "date", queryPresentationModel
                        .getModel(QuerySettings.PROPERTY_DATE_FROM), "value");

View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    /**
     * Lager datovelger for til dato
     * @return datovelger
     */
    public JDateChooser getDateChooserTo() {
        dateChooserTo = new JDateChooser();
        PropertyConnector connDate = new PropertyConnector(dateChooserTo,
                "date", queryPresentationModel
                        .getModel(QuerySettings.PROPERTY_DATE_TO), "value");

        if (queryPresentationModel.getValue(QuerySettings.PROPERTY_DATE_TO) != null) {
View Full Code Here

Examples of com.toedter.calendar.JDateChooser

    return listParticipants;
  }

  public JDateChooser getDateChooserRegistrationDate(
      PresentationModel presentationModel, boolean searching) {
    JDateChooser dateChooser = new JDateChooser();
    if (!searching
        && presentationModel
            .getBufferedValue(AccidentModel.PROPERTY_REGISTRATION_DATE) == null) {
      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
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.