Package no.ugland.utransprod.gui.handlers

Examples of no.ugland.utransprod.gui.handlers.ProductionUnitViewHandler


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

    Login login = new LoginImpl(user, userType);

    ProductionUnitViewHandler productionUnitViewHandler = new ProductionUnitViewHandler(
        login, productionUnitManager);

    ProductionUnitModel productionUnitModel = new ProductionUnitModel(
        new ProductionUnit());
    final EditProductionUnitView editProductionUnitView = new EditProductionUnitView(
View Full Code Here


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

    menuBarBuilder.openFrame(new OverviewView<ProductionUnit, ProductionUnitModel>(
        new ProductionUnitViewHandler(login,productionUnitManager)));

  }
View Full Code Here

    ProductionUnit productionUnit = new ProductionUnit();
    productionUnit.setProductionUnitName("productionUnitName");
    productionUnitList.add(productionUnit);
    when(productionUnitManager.findAll()).thenReturn(productionUnitList);

    final ProductionUnitViewHandler productionUnitViewHandler = new ProductionUnitViewHandler(
        login, productionUnitManager);
    final OverviewView<ProductionUnit, ProductionUnitModel> view = new OverviewView<ProductionUnit, ProductionUnitModel>(
        productionUnitViewHandler);

    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(productionUnitViewHandler.getWindowSize());
        return dialog;
      }
    });
    dialogFixture = new DialogFixture(dialog);
    dialogFixture.show();
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.gui.handlers.ProductionUnitViewHandler

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.