Examples of ArrayListModel


Examples of com.jgoodies.binding.list.ArrayListModel

    /**
     * @param articleTypeArticleTypes
     */
    public void setArticleTypeArticleTypes(
            ArrayListModel articleTypeArticleTypes) {
        ArrayListModel oldArticleTypeArticles = getArticleTypeArticleTypes();
        this.articleTypeArticleTypes = articleTypeArticleTypes;
        firePropertyChange(PROPERTY_ARTICLE_TYPE_ARTICLE_TYPES,
                oldArticleTypeArticles, articleTypeArticleTypes);
    }
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

    /**
     * @param attributes
     */
    public void setAttributes(List<Attribute> attributes) {
        if (attributes != null) {
            ArrayListModel oldAttributes = getArticleTypeAttributes();
            if (oldAttributes == null) {
                oldAttributes = new ArrayListModel();
            }
            ArticleTypeAttribute articleTypeAttribute;
            for (Attribute attribute : attributes) {
                articleTypeAttribute = new ArticleTypeAttribute(null, object,
                        attribute, null, null);
                oldAttributes.add(articleTypeAttribute);
            }
            setArticleTypeAttributes(oldAttributes);
        }
    }
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

    /**
     * @param attribute
     */
    public void removeAttribute(ArticleTypeAttribute attribute) {
        ArrayListModel oldAttributes = new ArrayListModel(
                getArticleTypeAttributes());
        oldAttributes.remove(attribute);
        setArticleTypeAttributes(oldAttributes);
    }
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

     * @return attributter
     */
    @SuppressWarnings("unchecked")
    public List<ArticleTypeAttribute> getArticleAttributes(
            List<Attribute> attributes) {
        ArrayListModel tmpArticleTypeAttributes = new ArrayListModel();
        if (attributes != null) {

            for (Attribute attribute : attributes) {
                tmpArticleTypeAttributes.add(new ArticleTypeAttribute(null,
                        object, attribute, null, null));
            }
        }
        return tmpArticleTypeAttributes;
    }
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

    protected final ArrayListModel orderLineList;

    public AbstractOrderModel(T object) {
        super(object);
        commentList = new ArrayList<OrderComment>();
        orderLineList = new ArrayListModel();
        if (object.getOrderComments() != null) {
            commentList.addAll(object.getOrderComments());
        }
        if (object.getOrderLines() != null) {
            orderLineList.addAll(object.getOrderLines());
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

    }
    /**
     * @param orderLine
     */
    public void removeOrderLine(OrderLine orderLine) {
        ArrayListModel oldOrderLines = new ArrayListModel(getOrderLineList());
        this.orderLineList.remove(orderLine);
        firePropertyChange(PROPERTY_ORDER_LINE_ARRAY_LIST_MODEL, oldOrderLines,
                orderLineList);
    }
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

              .findParamByName("ugland_fax");
          Map<String, Object> parameters = new HashMap<String, Object>();
          parameters.put("ugland_adresse", uglandAddress);
          parameters.put("ugland_fax", uglandFax);

          ArrayListModel list = new ArrayListModel();
          list.addAll(externalOrder.getExternalOrderLines());
          reportViewer.generateProtransReport(
              new FaxTableModel(list), "Fax", ReportEnum.FAX,
              parameters);
          window.pack();
          window.setSize(new Dimension(850, 700));
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

        this.isPostShipment = isPostShipment;
        commentList = new ArrayList<OrderComment>();
        if (deviation.getOrderComments() != null) {
            commentList.addAll(deviation.getOrderComments());
        }
        orderLineList = new ArrayListModel();
        if (deviation.getPostShipment() != null
                && deviation.getPostShipment().getOrderLines() != null) {
            orderLineList.addAll(deviation.getPostShipment().getOrderLines());
        } else if (deviation.getOrderLines() != null) {
            orderLineList.addAll(deviation.getOrderLines());
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

    /**
     * @return kostnader
     */
    public ArrayListModel getCostList() {
        if (costList == null) {
            costList = new ArrayListModel();

            if (object.getOrderCosts() != null) {
                costList.addAll(object.getOrderCosts());
            }
        }

        return new ArrayListModel(costList);
    }
View Full Code Here

Examples of com.jgoodies.binding.list.ArrayListModel

    /**
     * @param costs
     */
    public void setCostList(ArrayListModel costs) {
        ArrayListModel oldCosts = getCostList();
        if (costList == null) {
            costList = new ArrayListModel();
        }
        this.costList.clear();
        this.costList.addAll(costs);
        firePropertyChange(PROPERTY_COSTS, oldCosts, costs);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.