Package no.ugland.utransprod.gui.handlers

Examples of no.ugland.utransprod.gui.handlers.AccidentViewHandler$AddParticipantAction


    /**
     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(final ActionEvent arg0) {
        AccidentViewHandler accidentViewHandler = new AccidentViewHandler(login,managerRepository);

        AccidentModel accidentModel = new AccidentModel(new Accident());
        EditAccidentView editAccidentView = new EditAccidentView(false, accidentModel, accidentViewHandler);

        menuBarBuilder.openFrame(editAccidentView);
View Full Code Here


        LazyLoadEnum.USER_ROLES, LazyLoadEnum.NONE } });
    UserType userType = user.getUserRoles().iterator().next().getUserType();

    Login login = new LoginImpl(user, userType);

    AccidentViewHandler accidentViewHandler = new AccidentViewHandler(
        login, managerRepository);

    AccidentModel accidentModel = new AccidentModel(new Accident());
    final EditAccidentView editAccidentView = new EditAccidentView(false,
        accidentModel, accidentViewHandler);
View Full Code Here

   * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
   */
  public void actionPerformed(final ActionEvent arg0) {

    menuBarBuilder.openFrame(new OverviewView<Accident, AccidentModel>(
        new AccidentViewHandler(login,managerRepository)));

  }
View Full Code Here

    accidentList.add(accident);
    when(accidentManager.findAll()).thenReturn(accidentList);
    when(accidentManager.findByObject((Accident) anyObject())).thenReturn(
        accidentList);

    final AccidentViewHandler accidentViewHandler = new AccidentViewHandler(
        login, managerRepository);
    final OverviewView<Accident, AccidentModel> view = new OverviewView<Accident, AccidentModel>(
        accidentViewHandler);

    JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
      protected JDialog executeInEDT() {
        JDialog dialog = new JDialog();
        WindowInterface window = new JDialogAdapter(dialog);
        dialog.add(view.buildPanel(window));
        dialog.pack();
        dialog.setSize(accidentViewHandler.getWindowSize());
        return dialog;
      }
    });
    dialogFixture = new DialogFixture(dialog);
    dialogFixture.show();
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.gui.handlers.AccidentViewHandler$AddParticipantAction

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.