Package org.eclipse.nebula.widgets.nattable

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


        Button addColumnButton = new Button(buttonPanel, SWT.PUSH);
        addColumnButton.setText("Print");
        addColumnButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                natTable.doCommand(new PrintCommand(natTable
                        .getConfigRegistry(), natTable.getShell()));
            }
        });

        return panel;
View Full Code Here


                // repaint the table, as setting the default height is not
                // triggering a refresh automatically
                // this is because setting the default usually should be done
                // prior rendering
                natTable.doCommand(new VisualRefreshCommand());
            }
        });

        return natTable;
    }
View Full Code Here

        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

        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

                    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

                // 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

        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

        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

        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

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

        natTableFixture.doCommand(new ColumnReorderCommand(natTableFixture, 1,
                5));

        originalColumnHeader = natTableFixture.getDataValueByPosition(2, 0)
                .toString();
        assertEquals("Column 3", originalColumnHeader);
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.