Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.AccidentParticipant


    }

    @Override
    public AccidentParticipantModel getBufferedObjectModel(PresentationModel presentationModel) {
        AccidentParticipantModel accidentParticipantModel = new AccidentParticipantModel(
                new AccidentParticipant());
        accidentParticipantModel.setFirstName((String) presentationModel
                .getBufferedValue(PROPERTY_FIRST_NAME));
        accidentParticipantModel.setLastName((String) presentationModel
                .getBufferedValue(PROPERTY_LAST_NAME));
        accidentParticipantModel.setEmployeeType((EmployeeType) presentationModel
View Full Code Here


    Set<AccidentParticipant> participants = accident
        .getAccidentParticipants();
    assertNotNull(participants);
    assertEquals(1, participants.size());

    AccidentParticipant participant = participants.iterator().next();
    assertEquals("Atle", participant.getFirstName());
    assertEquals("Brekka", participant.getLastName());
    assertEquals("Sj�f�r", participant.getEmployeeType()
        .getEmployeeTypeName());
    dialogFixture.close();
  }
View Full Code Here

    Set<AccidentParticipant> participants = accident
        .getAccidentParticipants();
    assertNotNull(participants);
    assertEquals(1, participants.size());

    AccidentParticipant participant = participants.iterator().next();
    assertEquals("Atle", participant.getFirstName());
    assertEquals("Brekka", participant.getLastName());
    assertEquals("Sj�f�r", participant.getEmployeeType()
        .getEmployeeTypeName());

    dialogFixture.button("ButtonDeleteParticipant").requireEnabled();
    dialogFixture.button("ButtonDeleteParticipant").click();
View Full Code Here

      presentationModel = aPresentationModel;
    }

    public void actionPerformed(ActionEvent e) {
      AccidentParticipantModel accidentParticipantModel = new AccidentParticipantModel(
          new AccidentParticipant(null,
              ((AccidentModel) presentationModel.getBean())
                  .getObject(), null, null, null));
      EditAccidentParticipantView editAccidentParticipantView = new EditAccidentParticipantView(
          false, accidentParticipantModel,
          new AccidentParticipantViewHandler(userType));
View Full Code Here

    }

    public void actionPerformed(ActionEvent e) {
      if (Util.showConfirmDialog(window1.getComponent(), "Slette?",
          "Vil du virkelig slette involvert?")) {
        AccidentParticipant participant = (AccidentParticipant) participantSelectionList
            .getSelection();
        ArrayListModel list = (ArrayListModel) presentationModel
            .getBufferedValue(AccidentModel.PROPERTY_PARTICIPANT_LIST);
        list.remove(participant);
        presentationModel.setBufferedValue(
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.model.AccidentParticipant

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.