Package org.eclipse.nebula.widgets.nattable

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


                        new ColumnInsertEvent(glazedListsGridLayer
                                .getBodyDataLayer(), columns.size() - 1));
            }
        });

        natTable.doCommand(new ColumnHideCommand(glazedListsGridLayer
                .getBodyLayer(), 1));

        return panel;
    }
View Full Code Here


        Button addColumnButton = new Button(buttonPanel, SWT.PUSH);
        addColumnButton.setText("Copy");
        addColumnButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                natTable.doCommand(new CopyDataToClipboardCommand(
                        "\t", System.getProperty("line.separator"), //$NON-NLS-1$ //$NON-NLS-2$
                        natTable.getConfigRegistry()));
            }
        });
View Full Code Here

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

        return panel;
View Full Code Here

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

        return panel;
View Full Code Here

                                menuItem.addSelectionListener(new SelectionAdapter() {
                                    @Override
                                    public void widgetSelected(
                                            SelectionEvent event) {
                                        natTable.doCommand(new TreeCollapseAllCommand());
                                    }
                                });
                            }
                        }).withMenuItemProvider(new IMenuItemProvider() {
View Full Code Here

                                menuItem.addSelectionListener(new SelectionAdapter() {
                                    @Override
                                    public void widgetSelected(
                                            SelectionEvent event) {
                                        natTable.doCommand(new TreeExpandAllCommand());
                                    }
                                });
                            }
                        });
            }
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

                                    SummaryRowConfigAttributes.SUMMARY_PROVIDER,
                                    _809_GroupBySummarySummaryRowExample.this.avgMoneySummaryProvider,
                                    DisplayMode.NORMAL,
                                    SummaryRowLayer.DEFAULT_SUMMARY_COLUMN_CONFIG_LABEL_PREFIX + 3);
                }
                natTable.doCommand(new VisualRefreshCommand());
            }
        });

        Button toggleThemeButton = new Button(buttonPanel, SWT.PUSH);
        toggleThemeButton.setText("Toggle Theme");
View Full Code Here

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

        return panel;
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.