Package no.ugland.utransprod.gui.model

Examples of no.ugland.utransprod.gui.model.OrderWrapper


      throw new ProTransRuntimeException(
          "PresentationModel er ikke initiert");
    }
    ICostableModel<T, E> costableModel = (ICostableModel) presentationModel
        .getBean();
    orderLineTreeTableModel = new OrderLineTreeTableModel(new OrderWrapper(
        costableModel));
    treeTable = new JXTreeTable(orderLineTreeTableModel);
    treeTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    treeTable.setColumnControlVisible(true);
    treeTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
View Full Code Here


      if (numberOfValue != null && numberOfValue.length() != 0) {
        line.setNumberOfItems(Integer.valueOf(numberOfValue.replace(
            ',', '.')));

        OrderWrapper orderWrapper = (OrderWrapper) ((OrderLineTreeNode) orderLineTreeTableModel
            .getRoot()).getObject();
        bufferedOrderLines.setValue(new ArrayListModel(orderWrapper
            .getOrderLines()));
      }
    }
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  void doEditAllOrderLines(WindowInterface window) {
    Collection<OrderLine> bufferedOrderLines = (Collection<OrderLine>) presentationModel
        .getBufferedValue(ICostableModel.PROPERTY_ORDER_LINE_ARRAY_LIST_MODEL);

    OrderWrapper rootOrder = (OrderWrapper) ((OrderLineTreeNode) orderLineTreeTableModel
        .getRoot()).getObject();

    if (bufferedOrderLines != null && bufferedOrderLines.size() != 0) {
      List<OrderLine> lines = new ArrayList<OrderLine>();
      for (OrderLine line : bufferedOrderLines) {
        if (line.getOrderLineRef() == null) {
          lines.add(line);
        }
      }
      openOrderLineView(lines, window);

      BufferedValueModel bufferedOrderLinesModel = presentationModel
          .getBufferedModel(ICostableModel.PROPERTY_ORDER_LINE_ARRAY_LIST_MODEL);

      bufferedOrderLinesModel.setValue(new ArrayListModel(
          bufferedOrderLines));

      calculateAttributes(bufferedOrderLines);
      rootOrder
          .setOrderLines(new ArrayList<OrderLine>(bufferedOrderLines));

      orderLineTreeTableModel.fireChanged();
    }
  }
View Full Code Here

                if (object == null
                        || ((OrderLineTreeNode) object).getObject() == null) {
                    Order order = new Order();
                    order.setOrderLines(new HashSet<OrderLine>(orderLines1));
                    // OrderWrapper orderWrapper = new OrderWrapper(order);
                    OrderWrapper orderWrapper = new OrderWrapper(
                            new OrderModel(order, false, false, false,null,null));
                    treeTableModelChosen = new OrderLineTreeTableModel(
                            orderWrapper);
                    treeTableChosen.setTreeTableModel(treeTableModelChosen);
                }
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.gui.model.OrderWrapper

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.