Package org.eclipse.nebula.widgets.nattable

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


                                MouseEventMatcher.RIGHT_BUTTON),
                        new PopupMenuAction(columnGroupHeaderMenu));
            }
        });

        natTable.configure();
        return natTable;
    }

}
View Full Code Here


                IEditableRule.ALWAYS_EDITABLE, DisplayMode.EDIT, "ODD_BODY");
        natTable.getConfigRegistry().registerConfigAttribute(
                EditConfigAttributes.CELL_EDITABLE_RULE,
                IEditableRule.ALWAYS_EDITABLE, DisplayMode.EDIT, "EVEN_BODY");

        natTable.configure();
        glazedListsGridLayer.bodyDataProvider.setColumnCount(2);
        Composite composite = new Composite(parent, SWT.NONE);
        composite.setLayout(new GridLayout(2, false));
        Button button = new Button(composite, SWT.PUSH);
        button.setText("Clear list, add 6 items, Change column count");
View Full Code Here

        final NatTable natTable = new NatTable(gridPanel, gridLayer, false);
        natTable.setConfigRegistry(configRegistry);
        natTable.addConfiguration(new DefaultNatTableStyleConfiguration());
        natTable.addConfiguration(new CrossValidationEditConfiguration(
                bodyDataProvider));
        natTable.configure();
        GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);

        return panel;
    }
View Full Code Here

                        DisplayMode.NORMAL, GridRegion.FILTER_ROW);
            }
        });

        natTable.setConfigRegistry(configRegistry);
        natTable.configure();

        return natTable;
    }

    public static class FilterRowCustomConfiguration extends
View Full Code Here

                hAlign = HorizontalAlignmentEnum.LEFT;
                cellPainter = new LineBorderDecorator(painter);
            }
        });

        natTable.configure();
        GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);
    }

    private void createNatTable2(Composite parent, final ICellPainter painter) {
        IDataProvider bodyDataProvider = new ExampleTextBodyDataProvider();
View Full Code Here

                hAlign = HorizontalAlignmentEnum.LEFT;
                cellPainter = new LineBorderDecorator(painter);
            }
        });

        natTable.configure();
        GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);
    }

    private void createVerticalHeaderNatTable(Composite parent,
            final ICellPainter painter) {
View Full Code Here

                cellPainter = new LineBorderDecorator(painter);
                font = GUIHelper.getFont(new FontData("Arial", 20, SWT.NORMAL));
            }
        });

        natTable.configure();
        GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);
    }

    @SuppressWarnings("unused")
    private void createVerticalNatTable(Composite parent,
View Full Code Here

                cellPainter = new LineBorderDecorator(painter);
                font = GUIHelper.getFont(new FontData("Arial", 20, SWT.NORMAL));
            }
        });

        natTable.configure();

        GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);
    }

    class ExampleTextBodyDataProvider implements IDataProvider {
View Full Code Here

                new DefaultSelectionLayerConfiguration());

        natTable.addConfiguration(new DefaultNatTableStyleConfiguration());
        natTable.setConfigRegistry(configRegistry);

        natTable.configure();
        return natTable;
    }

    private void addColumnHighlight(IConfigRegistry configRegistry) {
        Style style = new Style();
View Full Code Here

        NatTable natTable = new NatTable(panel, NatTable.DEFAULT_STYLE_OPTIONS
                | SWT.BORDER, layer, false);
        natTable.addConfiguration(new ValidationMessageTableStyleConfiguration());

        natTable.configure();

        GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);

        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.