Examples of doCommand()


Examples of org.eclipse.nebula.widgets.nattable.NatTable.doCommand()

        Button collapseAllButton = new Button(buttonPanel, SWT.PUSH);
        collapseAllButton.setText("Collapse All");
        collapseAllButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                natTable.doCommand(new TreeCollapseAllCommand());
            }
        });

        Button expandAllButton = new Button(buttonPanel, SWT.PUSH);
        expandAllButton.setText("Expand All");
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.NatTable.doCommand()

        Button expandAllButton = new Button(buttonPanel, SWT.PUSH);
        expandAllButton.setText("Expand All");
        expandAllButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                natTable.doCommand(new TreeExpandAllCommand());
            }
        });

        Button toggleMoneySummaryButton = new Button(buttonPanel, SWT.PUSH);
        toggleMoneySummaryButton
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.NatTable.doCommand()

                    configRegistry.registerConfigAttribute(
                            GroupByConfigAttributes.GROUP_BY_SUMMARY_PROVIDER,
                            avgMoneySummaryProvider, DisplayMode.NORMAL,
                            GroupByDataLayer.GROUP_BY_COLUMN_PREFIX + 3);
                }
                natTable.doCommand(new VisualRefreshCommand());
            }
        });

        return container;
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.NatTable.doCommand()

                // refresh both tables to update the active rendering in the
                // column header
                // this is not necessary for updating the selection provider
                firstNatTable.doCommand(new VisualRefreshCommand());
                secondNatTable.doCommand(new VisualRefreshCommand());
            }
        });

        // add a log area to the example to show the log entries
        Text output = setupTextArea(panel);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.NatTable.doCommand()

        Button collapseAllButton = new Button(buttonPanel, SWT.PUSH);
        collapseAllButton.setText("Collapse All");
        collapseAllButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                natTable.doCommand(new TreeCollapseAllCommand());
            }
        });

        Button expandAllButton = new Button(buttonPanel, SWT.PUSH);
        expandAllButton.setText("Expand All");
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.NatTable.doCommand()

        Button expandAllButton = new Button(buttonPanel, SWT.PUSH);
        expandAllButton.setText("Expand All");
        expandAllButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                natTable.doCommand(new TreeExpandAllCommand());
            }
        });

        return container;
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.NatTable.doCommand()

        String originalColumnHeader = natTableFixture.getDataValueByPosition(2,
                0).toString();
        assertEquals("Column 2", originalColumnHeader);

        natTableFixture.doCommand(new RenameColumnHeaderCommand(
                natTableFixture, 2, TEST_COLUMN_NAME));
        String renamedColumnHeader = natTableFixture.getDataValueByPosition(2,
                0).toString();
        assertEquals(TEST_COLUMN_NAME, renamedColumnHeader);
    }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.command.ILayerCommandHandler.doCommand()

        for (Class<? extends ILayerCommand> commandClass : commandHandlers
                .keySet()) {
            if (commandClass.isInstance(command)) {
                ILayerCommandHandler commandHandler = commandHandlers
                        .get(commandClass);
                if (commandHandler.doCommand(this, command)) {
                    return true;
                }
            }
        }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.grid.layer.DefaultGridLayer.doCommand()

                RowDataListFixture.getPropertyNames(),
                RowDataListFixture.getPropertyToLabelMap());
        setClientAreaProvider(gridLayer);

        // Resize grid column 1, 2
        gridLayer.doCommand(new ColumnResizeCommand(gridLayer, 1, 10));
        gridLayer.doCommand(new ColumnResizeCommand(gridLayer, 2, 10));
        assertEquals(10, gridLayer.getColumnWidthByPosition(1));
        assertEquals(10, gridLayer.getColumnWidthByPosition(2));

        // Fully select columns 1, 2
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.grid.layer.GridLayer.doCommand()

    public void autoResizeOneColumn() throws Exception {
        GridLayer gridLayer = new DummyGridLayerStack();
        setClientAreaProvider(gridLayer);

        // Resize column
        gridLayer.doCommand(new ColumnResizeCommand(gridLayer, 2, 10));
        assertEquals(10, gridLayer.getColumnWidthByPosition(2));

        // Auto resize the one column
        InitializeAutoResizeColumnsCommand command = new InitializeAutoResizeColumnsCommand(
                gridLayer, 2, configRegistry, gcFactory);
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.