Package com.google.gdt.eclipse.designer.model.widgets.panels.grid

Examples of com.google.gdt.eclipse.designer.model.widgets.panels.grid.HTMLTableInfo


            "    panel.setWidget(0, 2, new Button('B'));",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    assertThat(panel.getColumns()).hasSize(3);
    assertFalse(panel.getColumns().get(0).isEmpty());
    assertTrue(panel.getColumns().get(1).isEmpty());
    assertFalse(panel.getColumns().get(2).isEmpty());
  }
View Full Code Here


            "    panel.getCellFormatter().setHorizontalAlignment(1, 0, HasHorizontalAlignment.ALIGN_RIGHT);",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    assertThat(panel.getColumns()).hasSize(1);
    assertEquals(ColumnInfo.Alignment.UNKNOWN, panel.getColumns().get(0).getAlignment());
  }
View Full Code Here

            "    panel.getCellFormatter().setHorizontalAlignment(0, 1, HasHorizontalAlignment.ALIGN_RIGHT);",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    assertThat(panel.getColumns()).hasSize(2);
    assertEquals(ColumnInfo.Alignment.LEFT, panel.getColumns().get(0).getAlignment());
    assertEquals(ColumnInfo.Alignment.RIGHT, panel.getColumns().get(1).getAlignment());
  }
View Full Code Here

            "    panel.getCellFormatter().setAlignment(0, 0, HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_TOP);",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    assertThat(panel.getColumns()).hasSize(1);
    assertEquals(ColumnInfo.Alignment.LEFT, panel.getColumns().get(0).getAlignment());
  }
View Full Code Here

            setAlignmentLine,
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    assertThat(panel.getColumns()).hasSize(1);
    assertEquals(expectedAlignment, panel.getColumns().get(0).getAlignment());
  }
View Full Code Here

            "    panel.getCellFormatter().setHorizontalAlignment(0, 1, HasHorizontalAlignment.ALIGN_RIGHT);",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    final HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    assertThat(panel.getColumns()).hasSize(2);
    ExecutionUtils.run(frame, new RunnableEx() {
      public void run() throws Exception {
        panel.getColumns().get(0).setAlignment(alignment);
      }
    });
    //
    String expectedSource =
        getTestSource(
View Full Code Here

            "    panel.getCellFormatter().setAlignment(0, 0, HasHorizontalAlignment.ALIGN_LEFT, HasVerticalAlignment.ALIGN_TOP);",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    final HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    assertThat(panel.getColumns()).hasSize(1);
    assertThat(panel.getRows()).hasSize(2);
    ExecutionUtils.run(frame, new RunnableEx() {
      public void run() throws Exception {
        panel.getColumns().get(0).setAlignment(Alignment.RIGHT);
      }
    });
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

            "    panel.getFlexCellFormatter().setRowSpan(0, 0, 2);",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    final HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    assertThat(panel.getColumns()).hasSize(2);
    assertThat(panel.getRows()).hasSize(3);
    ExecutionUtils.run(frame, new RunnableEx() {
      public void run() throws Exception {
        panel.getColumns().get(0).setAlignment(Alignment.RIGHT);
      }
    });
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

            "    panel.resizeRows(0);",
            "    panel.resizeColumns(0);",
            "  }",
            "}");
    frame.refresh();
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    panel.getStatus().setRowCount(2);
    assertEquals(2, panel.getStatus().getRowCount());
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    Grid panel = new Grid(2, 0);",
View Full Code Here

            "    panel.resizeRows(0);",
            "    panel.resizeColumns(0);",
            "  }",
            "}");
    frame.refresh();
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    panel.getStatus().setColumnCount(2);
    assertEquals(2, panel.getStatus().getColumnCount());
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    Grid panel = new Grid(0, 2);",
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.model.widgets.panels.grid.HTMLTableInfo

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.