Package no.ugland.utransprod.gui.model

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


     * @param usedArticles
     * @return ordrelinje
     */
    private OrderLine getOrderLine(ArticleTypeTreeNode leaf,
            List<OrderLine> orderLines1, List<ArticleType> usedArticles) {
        ArticleTypeTreeNode parent = leaf.getParent();
        Object object = parent.getObject();
        ArticleType articleType=null;
        if (object instanceof ArticleTypeArticleType) {
            articleType = ((ArticleTypeArticleType) object).getArticleTypeRef();
        } else if(object instanceof ArticleType){
            articleType = (ArticleType) object;
        }
        if (usedArticles == null) {
            usedArticles = new ArrayList<ArticleType>();
        }
        if(articleType!=null){
        usedArticles.add(articleType);
        }

        //if (parent.getParent() == null) {
        if (parent.getParent() != null&&parent.getParent().getObject() instanceof ArrayListModel) {
            return setOrderLineRefs(articleType, null, orderLines1,
                    usedArticles);
        }
        return getOrderLine(parent, orderLines1, usedArticles);
    }
View Full Code Here


                    LazyLoadArticleTypeEnum.ATTRIBUTE });
        articles.add(new ArticleTypeArticleType(null,
            currentArticleType, article));
      }

      ArticleTypeTreeNode rootNode = (ArticleTypeTreeNode) articleTypeTreeTableModel
          .getRoot();
      ArticleType articleType = (ArticleType) rootNode.getObject();

      if (articleType.getArticleTypeArticleTypes() != null) {
        articleType.getArticleTypeArticleTypes().addAll(articles);
      } else {
        HashSet<ArticleTypeArticleType> set = new HashSet<ArticleTypeArticleType>();
View Full Code Here

    void doSelect() {
        TreePath path = treeTableArticles.getPathForRow(treeTableArticles
                .getSelectedRow());

        if (path != null) {
            ArticleTypeTreeNode selectedNode = (ArticleTypeTreeNode) path
                    .getLastPathComponent();
            if (selectedNode.isLeaf()) {
                ArticleTypeAttribute attribute = (ArticleTypeAttribute) selectedNode
                        .getObject();
                OrderLineAttributeCriteria orderLineAttribute = new OrderLineAttributeCriteria();
                List<OrderLine> orderLines1 = new ArrayList<OrderLine>();

                Object object = treeTableModelChosen.getRoot();
View Full Code Here

TOP

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

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.