Examples of TurnViewportOffCommand


Examples of org.eclipse.nebula.widgets.nattable.print.command.TurnViewportOffCommand

     *            The shell which should be the parent of the PrintDialog.
     */
    public void print(final Shell shell) {
        // turn viewport off to ensure calculation of the print pages for the
        // whole table
        layer.doCommand(new TurnViewportOffCommand());

        Printer printer = null;
        try {
            printer = setupPrinter(shell);
            if (printer == null) {
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.print.command.TurnViewportOffCommand

    }

    @Override
    public boolean doCommand(ILayer targetLayer, AutoResizeRowsCommand command) {
        // Need to resize selected rows even if they are outside the viewport
        targetLayer.doCommand(new TurnViewportOffCommand());

        int[] rowPositions = ObjectUtils.asIntArray(command.getRowPositions());
        int[] gridRowPositions = convertFromPositionToCommandLayer(rowPositions);

        int[] gridRowHeights = MaxCellBoundsHelper.getPreferredRowHeights(
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.print.command.TurnViewportOffCommand

                // 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
                // made by the user
                setLayerSize(printer.getPrinterData());
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.print.command.TurnViewportOffCommand

            AutoResizeColumnsCommand command) {
        // Need to resize selected columns even if they are outside the viewport
        // As this command is triggered by the InitialAutoResizeCommand we know
        // that the targetLayer is the
        // NatTable itself
        targetLayer.doCommand(new TurnViewportOffCommand());

        int[] columnPositions = ObjectUtils.asIntArray(command
                .getColumnPositions());
        int[] gridColumnPositions = convertFromPositionToCommandLayer(columnPositions);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.print.command.TurnViewportOffCommand

        IClientAreaProvider originalClientAreaProvider = layer
                .getClientAreaProvider();

        // This needs to be done so that the layer can return all the cells
        // not just the ones visible in the viewport
        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());
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.