Package org.eclipse.nebula.widgets.nattable.test.fixture.layer

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.layer.BaseDataLayerFixture


     *          --------------------
     *  Position   0   1  2  3 ... 20
     */
    public void returnsCorrectPositionRectangleForMultiColumnReorderLeftCase() {
        RowReorderLayer reorderLayer = new RowReorderLayer(
                new BaseDataLayerFixture(20, 20));

        // Build expected cell positions to redraw
        final Set<Rectangle> expectedPositions = new HashSet<Rectangle>();
        expectedPositions.add(new Rectangle(0, 0, 20, 20));

View Full Code Here


     *          --------------------
     *  Position   0   1  2  3 ... 20
     */
    public void returnsCorrectPositionRectangleForMultiColumnReorderRightCase() {
        RowReorderLayer reorderLayer = new RowReorderLayer(
                new BaseDataLayerFixture(20, 20));

        // Build expected cell positions to redraw
        final Set<Rectangle> expectedPositions = new HashSet<Rectangle>();
        expectedPositions.add(new Rectangle(0, 0, 20, 20));

View Full Code Here

    private IUniqueIndexLayer underlyingLayer;
    private ColumnReorderLayer columnReorderLayer;

    @Before
    public void setUp() {
        underlyingLayer = new BaseDataLayerFixture(4, 4);
        columnReorderLayer = new ColumnReorderLayer(underlyingLayer);
    }
View Full Code Here

     *  Position   0   1  2  3 ... 20
     */
    public void reorderMultipleColumnsLargeArrayToEdges() throws Exception {

        ColumnReorderLayer reorderLayer = new ColumnReorderLayer(
                new BaseDataLayerFixture(20, 20));

        List<Integer> fromColumnPositions = Arrays.asList(new Integer[] { 10,
                11, 12, 13 });

        reorderLayer.reorderMultipleColumnPositions(fromColumnPositions, 0);
View Full Code Here

    private IUniqueIndexLayer underlyingLayer;
    private RowReorderLayer rowReorderLayer;

    @Before
    public void setUp() {
        underlyingLayer = new BaseDataLayerFixture(4, 4);
        rowReorderLayer = new RowReorderLayer(underlyingLayer);
    }
View Full Code Here

     *  Position   0   1  2  3 ... 20
     */
    public void reorderMultipleRowsLargeArrayToEdges() throws Exception {

        RowReorderLayer reorderLayer = new RowReorderLayer(
                new BaseDataLayerFixture(20, 20));

        List<Integer> fromRowPositions = Arrays.asList(new Integer[] { 10, 11,
                12, 13 });

        reorderLayer.reorderMultipleRowPositions(fromRowPositions, 0);
View Full Code Here

     *          --------------------
     *  Position   0   1  2  3 ... 20
     */
    public void returnsCorrectPositionRectangleForMultiColumnReorderLeftCase() {
        ColumnReorderLayer reorderLayer = new ColumnReorderLayer(
                new BaseDataLayerFixture(20, 20));

        // Build expected cell positions to redraw
        final Set<Rectangle> expectedPositions = new HashSet<Rectangle>();
        expectedPositions.add(new Rectangle(0, 0, 20, 20));

View Full Code Here

     *          --------------------
     *  Position   0   1  2  3 ... 20
     */
    public void returnsCorrectPositionRectangleForMultiColumnReorderRightCase() {
        ColumnReorderLayer reorderLayer = new ColumnReorderLayer(
                new BaseDataLayerFixture(20, 20));

        // Build expected cell positions to redraw
        final Set<Rectangle> expectedPositions = new HashSet<Rectangle>();
        expectedPositions.add(new Rectangle(0, 0, 20, 20));

View Full Code Here

    private ColumnHideShowLayer hideShowLayer;
    private ColumnReorderLayer reorderLayer;

    @Before
    public void setup() {
        reorderLayer = new ColumnReorderLayer(new BaseDataLayerFixture(10, 10));
        hideShowLayer = new ColumnHideShowLayer(reorderLayer);
        freezeLayer = new FreezeLayer(hideShowLayer);
        freezeLayer.setTopLeftPosition(1, 0);
        freezeLayer.setBottomRightPosition(3, 3);
    }
View Full Code Here

    public ColumnReorderLayer reorderLayer;

    @Before
    public void setUp() {
        modelFixture = new ColumnGroupModelFixture();
        reorderLayer = new ColumnReorderLayer(new BaseDataLayerFixture(24, 20));
        layer = new ColumnGroupReorderLayer(reorderLayer, modelFixture);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.test.fixture.layer.BaseDataLayerFixture

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.