Package nextapp.echo2.app.layout

Examples of nextapp.echo2.app.layout.GridLayoutData


    public void testOutOfBoundsRowSpan() {
        Grid grid = new Grid();
        grid.add(new Label());

        Label label = new Label();
        GridLayoutData layoutData = new GridLayoutData();
        layoutData.setRowSpan(4);
        label.setLayoutData(layoutData);
        grid.add(label);
       
        GridProcessor gridProcessor =  new GridProcessor(grid);
View Full Code Here


        // Configure Grid Content
        grid.setSize(7);
        for (int i = 0; i < 12; ++i) {
            Label label = new Label(Integer.toString(i));
            if (i == 1 || i == 2 || i == 3 || i == 5 || i == 8 || i == 10 || i == 11) {
                GridLayoutData layoutData = new GridLayoutData();
                layoutData.setColumnSpan(2);
                if (i == 8) {
                    layoutData.setRowSpan(2);
                }
                label.setLayoutData(layoutData);
            }
            grid.add(label);
        }
View Full Code Here

        Grid grid = new Grid();
        grid.setSize(4);
        for (int i = 0; i < 6; ++i) {
            Label label = new Label(Integer.toString(i));
            if (i == 1 || i == 4) {
                GridLayoutData layoutData = new GridLayoutData();
                layoutData.setColumnSpan(2);
                label.setLayoutData(layoutData);
            }
            grid.add(label);
        }
        GridProcessor gridProcessor = new GridProcessor(grid);
View Full Code Here

        // Configure Grid Content
        grid.setSize(3);
        for (int i = 0; i < 12; ++i) {
            Label label = new Label(Integer.toString(i));
            if (i == 3 || i == 4 || i == 5 || i == 6 || i == 8 || i == 10 || i == 11) {
                GridLayoutData layoutData = new GridLayoutData();
                layoutData.setRowSpan(2);
                if (i == 11) {
                    layoutData.setColumnSpan(2);
                }
                label.setLayoutData(layoutData);
            }
            grid.add(label);
        }
View Full Code Here

        Grid grid = new Grid();
        grid.setSize(2);
        for (int i = 0; i < 6; ++i) {
            Label label = new Label(Integer.toString(i));
            if (i == 2 || i == 3) {
                GridLayoutData layoutData = new GridLayoutData();
                layoutData.setRowSpan(2);
                label.setLayoutData(layoutData);
            }
            grid.add(label);
        }
        GridProcessor gridProcessor = new GridProcessor(grid);
View Full Code Here

        Grid grid = new Grid();
        grid.setSize(3);
        for (int i = 0; i < 4; ++i) {
            Label label = new Label(Integer.toString(i));
            if (i > 0) {
                GridLayoutData layoutData = new GridLayoutData();
                if (i == 1 || i == 3) {
                    layoutData.setColumnSpan(2);
                }
                if (i == 2 || i == 3) {
                    layoutData.setRowSpan(2);
                }
                label.setLayoutData(layoutData);
            }
            grid.add(label);
        }
View Full Code Here

        grid.setSize(4);
       
        for (int i = 0; i < 6; ++i) {
            Label label = new Label(Integer.toString(i));
            if (i % 2 == 0) {
                GridLayoutData layoutData = new GridLayoutData();
                layoutData.setColumnSpan(3);
                label.setLayoutData(layoutData);
            }
            grid.add(label);
        }
View Full Code Here

        grid.setSize(3);
       
        for (int i = 0; i < 6; ++i) {
            Label label = new Label(Integer.toString(i));
            if (i < 3) {
                GridLayoutData layoutData = new GridLayoutData();
                layoutData.setRowSpan(3);
                label.setLayoutData(layoutData);
            }
            grid.add(label);
        }
       
View Full Code Here

     */
    public void testReduceColumnAndRowOneBigCell() {
        Grid grid = new Grid();
        grid.setSize(3);
        Label label = new Label("0");
        GridLayoutData layoutData = new GridLayoutData();
        layoutData.setColumnSpan(3);
        layoutData.setRowSpan(5);
        label.setLayoutData(layoutData);
        grid.add(label);

        GridProcessor gridProcessor = new GridProcessor(grid);
       
View Full Code Here

    public void testRowSpanSimple() {
        Grid grid = new Grid();
        for (int i = 0; i < 7; ++i) {
            Label label = new Label(Integer.toString(i));
            if (i == 2) {
                GridLayoutData layoutData = new GridLayoutData();
                layoutData.setRowSpan(2);
                label.setLayoutData(layoutData);
            }
            grid.add(label);
        }
       
View Full Code Here

TOP

Related Classes of nextapp.echo2.app.layout.GridLayoutData

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.