Examples of doCommand()


Examples of org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture.doCommand()

        assertEquals(7, natTableFixture.getColumnCount());

        List<Integer> columnToMove = Arrays.asList(3, 4, 6, 7);
        int destinationPosition = 0;
        natTableFixture.doCommand(new MultiColumnReorderCommand(underlyingLayer
                .getColumnReorderLayer(), columnToMove, destinationPosition));

        // verify the event
        ColumnReorderEvent event = (ColumnReorderEvent) listenerFixture
                .getReceivedEvent(ColumnReorderEvent.class);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture.doCommand()

        Assert.assertEquals(1, natTableFixture.getRowIndexByPosition(1));

        // Move to outside the visible range
        List<Integer> rowsToMove = Arrays.asList(1, 2, 3);
        int destinationPosition = 10;
        natTableFixture.doCommand(new MultiRowReorderCommand(natTableFixture,
                rowsToMove, destinationPosition));

        // Ensure that the event propagates to the top
        Assert.assertEquals(1, listenerFixture.getEventsCount());
        Assert.assertNotNull(listenerFixture
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.NatTableFixture.doCommand()

        MultiColumnHideCommand hideAllCommand = new MultiColumnHideCommand(
                natTableFixture, new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
                        11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
                        25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36 });

        natTableFixture.doCommand(hideAllCommand);
        Assert.assertEquals(1, listenerFixture.getEventsCount());

        ILayerEvent receivedEvent = listenerFixture
                .getReceivedEvent(HideColumnPositionsEvent.class);
        Assert.assertNotNull(receivedEvent);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.layer.ColumnReorderLayerFixture.doCommand()

        ColumnReorderLayer reorderLayerFixture = new ColumnReorderLayerFixture(
                dataLayer);

        MultiColumnResizeCommand resizeCommand = new MultiColumnResizeCommand(
                reorderLayerFixture, new int[] { 1, 2 }, new int[] { 100, 150 });
        reorderLayerFixture.doCommand(resizeCommand);

        // As the Commands goes down the stack - positions might get converted
        // to entirely different values.
        Assert.assertEquals(-1, resizeCommand.getCommonColumnWidth());
        Assert.assertEquals(-1, resizeCommand.getColumnWidth(5));
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.layer.GridLayerFixture.doCommand()

                return new Rectangle(0, 0, 160, 80);
            }
        });

        // Client area gets init when this command is fired
        gridLayer.doCommand(new InitializeClientAreaCommandFixture());

        Assert.assertEquals(160, viewport.getClientAreaWidth());
        Assert.assertEquals(80, viewport.getClientAreaHeight());

        Assert.assertEquals(160, viewport.getWidth());
View Full Code Here

Examples of org.groovymud.object.MudObject.doCommand()

      MudObject containerMO = (MudObject) container;
      if (containerMO != null) {
        // the object means to do the action with the container, it
        // holds a list of
        // local commands that need to be run.
        commandRun = containerMO.doCommand(player, argHolder.command, argHolder.args);
      }

      if (!commandRun) {
        // run through a privileged action so we don't access stuff we
        // shouldn't
View Full Code Here

Examples of org.openqa.selenium.server.FrameGroupCommandQueueSet.doCommand()

        LOGGER.debug("Executing '" + id + "' selenium core command on session " + sessionId);
        try {
            LOGGER.debug("Session " + sessionId + " going to doCommand(" + id + ','+ values.get(0) + ','+ values.get(1) + ")");
            queue = FrameGroupCommandQueueSet.getQueueSet(sessionId);
            response =  queue.doCommand(id, values.get(0), values.get(1));
            LOGGER.debug("Got result: " + response + " on session " + sessionId);
           
            return response;
        } catch (Exception e) {
            LOGGER.error("Exception running '" + id + " 'command on session " + sessionId, e);
View Full Code Here

Examples of org.openqa.selenium.server.FrameGroupCommandQueueSet.doCommand()

        LOGGER.debug("Executing '" + id + "' selenium core command on session " + sessionId);
        try {
            LOGGER.debug("Session " + sessionId + " going to doCommand(" + id + ','+ values.get(0) + ','+ values.get(1) + ")");
            queue = FrameGroupCommandQueueSet.getQueueSet(sessionId);
            response =  queue.doCommand(id, values.get(0), values.get(1));
            LOGGER.debug("Got result: " + response + " on session " + sessionId);
           
            return response;
        } catch (Exception e) {
            LOGGER.error("Exception running '" + id + " 'command on session " + sessionId, e);
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.