Examples of TableCreator


Examples of org.broadleafcommerce.common.util.TableCreator

    public void printOrder(Order order, Log log) {
        if (!log.isDebugEnabled()) {
            return;
        }
       
        TableCreator tc = new TableCreator(new TableCreator.Col[] {
            new TableCreator.Col("Order Item", 30),
            new TableCreator.Col("Qty"),
            new TableCreator.Col("Unit Price"),
            new TableCreator.Col("Avg Adj"),
            new TableCreator.Col("Total Adj"),
            new TableCreator.Col("Total Price")
        });

        for (OrderItem oi : order.getOrderItems()) {
            tc.addRow(new String[] {
                oi.getName(),
                String.valueOf(oi.getQuantity()),
                String.valueOf(oi.getPriceBeforeAdjustments(true)),
                String.valueOf(oi.getAverageAdjustmentValue()),
                String.valueOf(oi.getTotalAdjustmentValue()),
                String.valueOf(oi.getTotalPrice())
            });
        }
       
        tc.addSeparator()
            .withGlobalRowHeaderWidth(15)
            .addRow("Subtotal", order.getSubTotal())
            .addRow("Order Adj.", order.getOrderAdjustmentsValue())
            .addRow("Tax", order.getTotalTax())
            .addRow("Shipping", order.getTotalShipping())
            .addRow("Total", order.getTotal())
            .addSeparator();
       
        log.debug(tc.toString());
    }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.structure.editor.db.TableCreator

        layout.south(InvisiblePanel.newPanel(new JButton(new ValidateAction())));
        QuickFrame.show(layout, getClass().getSimpleName());
    }

    private DatabaseObject[] createSelectedObjects() {
        TableCreator tableFactory = new TableCreator(new BeginEndQuote("\""), false);
        DatabaseObject[] tables = new DatabaseObject[] {
            tableFactory.createOrdersTable(),
            tableFactory.createOrderDetailsTable(),
            tableFactory.createOrderLogTable(),
            tableFactory.createProductsTable(),
        };
        return tables;
    }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.structure.editor.db.TableCreator

    private DatabaseTable productsTab;
   
    @Before
    public void setup() {
        rels = new Relations();
        TableCreator factory = new TableCreator(new BeginEndQuote("\""), false);
        ordersTab = factory.createOrdersTable();
        orderDetailsTab = factory.createOrderDetailsTable();
        orderLogTab = factory.createOrderLogTable();
        productsTab = factory.createProductsTable();
    }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.structure.editor.db.TableCreator

    private DatabaseTable productsTab;

    @Before
    public void setup() {
        rels = new Relations();
        TableCreator factory = new TableCreator(new BeginEndQuote("\""), false);
        ordersTab = factory.createOrdersTable();
        orderDetailsTab = factory.createOrderDetailsTable();
        orderLogTab = factory.createOrderLogTable();
        productsTab = factory.createProductsTable();
    }
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.