Package org.eclipse.nebula.widgets.nattable.summaryrow.command

Examples of org.eclipse.nebula.widgets.nattable.summaryrow.command.CalculateSummaryRowValuesCommand


        @Override
        public void run() {
            if (printer.startJob("NatTable")) { //$NON-NLS-1$
                // if a SummaryRowLayer is in the layer stack, we need to ensure
                // that the values are calculated
                layer.doCommand(new CalculateSummaryRowValuesCommand());

                // ensure that the viewport is turned off
                layer.doCommand(new TurnViewportOffCommand());

                // set the size of the layer according to the print setttings
View Full Code Here


        layer.doCommand(new TurnViewportOffCommand());
        setClientAreaToMaximum(layer);

        // if a SummaryRowLayer is in the layer stack, we need to ensure that
        // the values are calculated
        layer.doCommand(new CalculateSummaryRowValuesCommand());

        ProgressBar progressBar = null;

        if (shell != null) {
            Shell childShell = new Shell(shell.getDisplay(), SWT.DIALOG_TRIM
View Full Code Here

    @Test
    public void shouldSummarizeAskPriceColumnImmediatelyOnPreCalculation()
            throws Exception {
        // Trigger summary calculation via command
        natTable.doCommand(new CalculateSummaryRowValuesCommand());

        Object askPriceSummary = natTable.getDataValueByPosition(
                askPriceColumnIndex, 4);
        assertEquals("110.0", askPriceSummary.toString());
    }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.summaryrow.command.CalculateSummaryRowValuesCommand

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.