Package org.eclipse.nebula.widgets.nattable.util

Examples of org.eclipse.nebula.widgets.nattable.util.IClientAreaProvider


     * @param configRegistry
     */
    protected void exportLayer(final ILayerExporter exporter,
            final OutputStream outputStream, final String layerName,
            final ILayer layer, final IConfigRegistry configRegistry) {
        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());
View Full Code Here


    private void setClientAreaToMaximum(ILayer layer) {
        final Rectangle maxClientArea = new Rectangle(0, 0, layer.getWidth(),
                layer.getHeight());

        layer.setClientAreaProvider(new IClientAreaProvider() {
            @Override
            public Rectangle getClientArea() {
                return maxClientArea;
            }
        });
View Full Code Here

    @Before
    public void setup() {
        layerStack = new DefaultBodyLayerStack(new DataLayerFixture(10, 5, 100,
                20));
        layerStack.setClientAreaProvider(new IClientAreaProvider() {
            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 2000, 250);
            }
        });
        layerStack.doCommand(new ClientAreaResizeCommand(new Shell(Display
View Full Code Here

                gridLayer.getColumnHeaderLayer(), gridLayer.getBodyLayer()
                        .getSelectionLayer(), model);
        columnGroupLayer.addColumnsIndexesToGroup(TEST_GROUP_NAME_1, 0, 1);
        columnGroupLayer.addColumnsIndexesToGroup(TEST_GROUP_NAME_2, 5, 6);
        columnGroupLayer.addColumnsIndexesToGroup(TEST_GROUP_NAME_3, 8, 9);
        gridLayer.setClientAreaProvider(new IClientAreaProvider() {

            @Override
            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 1050, 250);
            }
View Full Code Here

    private CompositeLayerFixture layerFixture;

    @Before
    public void setup() {
        layerFixture = new CompositeLayerFixture();
        layerFixture.bodyLayer.setClientAreaProvider(new IClientAreaProvider() {
            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 160, 100);
            }
        });
    }
View Full Code Here

        model = new ColumnGroupModel();
        handler = new ColumnGroupsCommandHandler(model, selectionLayer,
                new ColumnGroupHeaderLayer(gridLayer.getColumnHeaderLayer(),
                        gridLayer.getBodyLayer().getSelectionLayer(),
                        new ColumnGroupModel()));
        gridLayer.setClientAreaProvider(new IClientAreaProvider() {

            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 1050, 250);
            }
View Full Code Here

        gridLayer = new DefaultGridLayer(bodyDataProvider,
                GridLayerFixture.colHeaderDataProvider,
                GridLayerFixture.rowHeaderDataProvider,
                GridLayerFixture.cornerDataProvider);
        gridLayer.setClientAreaProvider(new IClientAreaProvider() {

            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 1050, 250);
            }
View Full Code Here

    PositionCoordinate expected;

    @Before
    public void setUp() {
        gridLayer = new GridLayerFixture();
        gridLayer.setClientAreaProvider(new IClientAreaProvider() {

            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 1050, 250);
            }
View Full Code Here

    public void tearDown() {
        img.dispose();
    }

    private void setClientAreaProvider(ILayer layer) {
        layer.setClientAreaProvider(new IClientAreaProvider() {
            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 1050, 250);
            }
        });
        layer.doCommand(new ClientAreaResizeCommand(new Shell(Display
View Full Code Here

                + "A2 | B2 | C2 | D2 \n" + "A3 | B3 | C3 | D3 \n";

        dataLayer = new TestLayer(4, 4, columnInfo, rowInfo, cellInfo);

        viewportLayer = new ViewportLayer(dataLayer);
        viewportLayer.setClientAreaProvider(new IClientAreaProvider() {

            public Rectangle getClientArea() {
                return new Rectangle(0, 0, 200, 400);
            }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.util.IClientAreaProvider

Copyright © 2018 www.massapicom. 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.