Package no.ugland.utransprod.gui

Examples of no.ugland.utransprod.gui.WindowInterface


    final AttributeView view = new AttributeView(viewHandler, false);

    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();
        return dialog;
      }
    });
View Full Code Here


    final SplitOrderView splitOrderView = new SplitOrderView(viewHandler);

    JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
      protected JDialog executeInEDT() {
        JDialog dialog = new JDialog();
        WindowInterface window = new JDialogAdapter(dialog);
        dialog.add(splitOrderView.buildPanel(window));
        dialog.pack();
        return dialog;
      }
    });
View Full Code Here

        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;
      }
View Full Code Here

        ColliViewHandler colliViewHandler = new ColliViewHandler("Kolli",
            colli, packable, login, managerRepository, null);
        final EditColliView editColliView = new EditColliView(false,
            colliModel, colliViewHandler);
        JDialog dialog = new JDialog();
        WindowInterface window = new JDialogAdapter(dialog);
        dialog.add(editColliView.buildPanel(window));
        dialog.pack();
        return dialog;
      }
    });
View Full Code Here

    EditDeviationView editDeviationView = new EditDeviationView(false,
        deviationModel, deviationViewHandler, true, true);

    JDialog dialog = new JDialog(ProTransMain.PRO_TRANS_MAIN, "Avvik", true);
    dialog.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    WindowInterface window = new JDialogAdapter(dialog);

    window.add(editDeviationView.buildPanel(window), BorderLayout.CENTER);

    window.pack();
    Util.locateOnScreenCenter(window);
    window.setVisible(true);

    postShipment = deviation.getPostShipment();

    // postShipment.setDeviation(deviation);
    postShipment.setOrder(transportlistable.getOrder());
View Full Code Here

        SentTransportViewHandler sentTransportViewHandler = new SentTransportViewHandler(login,managerRepository,deviationViewHandlerFactory,
            new ArrayListModel(transportable.getCollies()), true,
            sentTransport, sentDate);
        SentTransportView sentTransportView = new SentTransportView(
            sentTransportViewHandler);
        WindowInterface dialog = new JDialogAdapter(new JDialog(
            ProTransMain.PRO_TRANS_MAIN, "Kollier", true));
        dialog.setName("sentTransportView");
        dialog.add(sentTransportView.buildPanel(dialog));
        dialog.pack();
        Util.locateOnScreenCenter(dialog);
        dialog.setVisible(true);

      }
    }
View Full Code Here

      AttributeViewHandler attributeViewHandler = new AttributeViewHandler(login,managerRepository);// ,
                                    // attributes);
      AttributeView attributeView = new AttributeView(
          attributeViewHandler, true);
      WindowInterface dialog = new JDialogAdapter(new JDialog(
          ProTransMain.PRO_TRANS_MAIN, "Attributt", true));
      dialog.setName("AttributeView");
      dialog.add(attributeView.buildPanel(dialog));
      dialog.pack();
      Util.locateOnScreenCenter(dialog);
      dialog.setVisible(true);

      List<Attribute> newAttributes = attributeView.getSelectedObjects();
      if (newAttributes != null && newAttributes.size() == 1) {

        Attribute att = newAttributes.get(0);
View Full Code Here

   * @param transport
   */
  void openEditView(Transport transport) {
    EditTransportView transportView = new EditTransportView(
        transportViewHandler, transport, false);
    WindowInterface dialog = new JDialogAdapter(new JDialog(
        ProTransMain.PRO_TRANS_MAIN, "Transport", true));
    dialog.setName("EditTransportView");
    dialog.add(transportView.buildPanel(dialog));
    dialog.pack();
    Util.locateOnScreenCenter(dialog);
    dialog.setVisible(true);

    if (transport.getTransportYear() != null
        && transport.getTransportYear().equals(routeDate.getYear())
        && transport.getTransportWeek() != null
        && transport.getTransportWeek().equals(routeDate.getWeek())) {
View Full Code Here

          new PreventiveActionCommentModel(comment),
          preventiveActionCommentViewHandler);

      JDialog dialog = Util.getDialog(window, "Legg til kommentar", true);
      dialog.setName("EditDeviationCommentView");
      WindowInterface dialogWindow = new JDialogAdapter(dialog);
      dialogWindow.add(editDeviationCommentView.buildPanel(dialogWindow));
      dialog.pack();
      Util.locateOnScreenCenter(dialog);
      dialogWindow.setVisible(true);

      if (preventiveActionCommentViewHandler.isOk()) {
        addComment(comment, presentationModel);
      }
View Full Code Here

      final Collection<?> beans, final String heading,
      final ReportEnum reportEnum, final Map<String, Object> extraParams,
      final String reportFileName, final WindowInterface window,
      final boolean isModal) throws ProTransException {
    JDialog dialog = Util.getDialog(window, heading, isModal);
    WindowInterface dialogWindow = new JDialogAdapter(dialog);
    dialogWindow.setName(heading);

    dialogWindow.add(buildPanel(dialogWindow));

    generateProtransReportFromBean(beans, heading, reportEnum, extraParams,
        reportFileName);
    dialogWindow.pack();
    dialogWindow.setSize(new Dimension(850, 700));
    Util.locateOnScreenCenter(dialogWindow);
    dialogWindow.setVisible(true);
  }
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.gui.WindowInterface

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.