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

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


        "      grid.setWidget(0, 0, button);",
        "    }",
        "  }",
        "}");
    refresh();
    HTMLTableInfo grid = getJavaInfoByName("grid");
    CanvasInfo button = getJavaInfoByName("button");
    //
    IGridInfo gridInfo = grid.getGridInfo();
    assertEquals(new Rectangle(0, 0, 0, 0), gridInfo.getComponentCells(button));
  }
View Full Code Here


            "    panel.setWidget(1, 2, new Button());",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    // prepare new Button, associate it with "panel"
    WidgetInfo newButton = createButton();
    panel.addChild(newButton);
    // check CellConstraintsSupport
    CellConstraintsSupport constraints = HTMLTableInfo.getConstraints(newButton);
    assertEquals(-1, constraints.getX());
    assertEquals(-1, constraints.getY());
    assertEquals(1, constraints.getWidth());
View Full Code Here

            "    rootPanel.add(panel);",
            "    panel.setWidget(0, 0, new Button());",
            "  }",
            "}");
    frame.refresh();
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    //
    Property cellProperty = button.getPropertyByTitle("Cell");
    assertNotNull(cellProperty);
    Property[] subProperties = getSubProperties(cellProperty);
    assertThat(subProperties).hasSize(10);
View Full Code Here

            "    panel.setWidget(0, 0, new Button());",
            "    panel.getCellFormatter().setVisible(0, 0, false);",
            "  }",
            "}");
    frame.refresh();
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    //
    Property property = PropertyUtils.getByPath(button, "Cell/visible");
    assertTrue(property.isModified());
    assertEquals(Boolean.FALSE, property.getValue());
  }
View Full Code Here

            "    panel.setWidget(0, 0, new Button());",
            "    panel.getFlexCellFormatter().setColSpan(0, 0, 2);",
            "  }",
            "}");
    frame.refresh();
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    Property property = PropertyUtils.getByPath(button, "Cell/colSpan");
    // initial value
    assertTrue(property.isModified());
    assertEquals(2, property.getValue());
    // set "3"
View Full Code Here

            "    panel.setWidget(0, 1, new Button());",
            "    panel.getFlexCellFormatter().setRowSpan(0, 1, 2);",
            "  }",
            "}");
    frame.refresh();
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button = panel.getChildrenWidgets().get(3);
    Property property = PropertyUtils.getByPath(button, "Cell/rowSpan");
    // initial value
    assertTrue(property.isModified());
    assertEquals(2, property.getValue());
    // set "3"
View Full Code Here

            "    panel.setWidget(0, 0, new Button());",
            "    panel.getCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_RIGHT);",
            "  }",
            "}");
    frame.refresh();
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    Property property = PropertyUtils.getByPath(button, "Cell/horizontalAlignment");
    // initial value
    assertTrue(property.isModified());
    assertEquals(ColumnInfo.Alignment.RIGHT, property.getValue());
    // set "center"
View Full Code Here

            "    panel.setWidget(0, 0, new Button());",
            "    panel.getCellFormatter().setVerticalAlignment(0, 0, HasVerticalAlignment.ALIGN_BOTTOM);",
            "  }",
            "}");
    frame.refresh();
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    //
    Property property = PropertyUtils.getByPath(button, "Cell/verticalAlignment");
    // current value
    assertTrue(property.isModified());
    assertEquals(RowInfo.Alignment.BOTTOM, property.getValue());
View Full Code Here

            "    panel.setWidget(1, 2, new Button());",
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    // check CellConstraintsSupport
    CellConstraintsSupport constraints = HTMLTableInfo.getConstraints(button);
    assertEquals(2, constraints.getX());
    assertEquals(1, constraints.getY());
    assertEquals(1, constraints.getWidth());
View Full Code Here

            setAlignmentLine,
            "  }",
            "}");
    frame.refresh();
    assertNoErrors(frame);
    HTMLTableInfo panel = (HTMLTableInfo) frame.getChildrenWidgets().get(0);
    //
    WidgetInfo button = panel.getChildrenWidgets().get(0);
    CellConstraintsSupport constraints = HTMLTableInfo.getConstraints(button);
    assertSame(expectedAlignment, constraints.getHorizontalAlignment());
  }
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.