Package com.google.gdt.eclipse.designer.model.widgets.cell

Examples of com.google.gdt.eclipse.designer.model.widgets.cell.ColumnInfo$ComparatorProperty


    assertNoErrors(m_lastParseInfo);
    CellTableInfo cellTable = getJavaInfoByName("cellTable");
    // 1 column initially
    assertThat(cellTable.getColumns()).hasSize(1);
    // add new Column
    ColumnInfo newColumn = createJavaInfo("com.google.gwt.user.cellview.client.Column");
    flowContainer_CREATE(cellTable, newColumn, null);
    assertThat(cellTable.getColumns()).hasSize(2);
    assertNoErrors(m_lastParseInfo);
    assertEditor(
        "public class Test extends FlowPanel {",
View Full Code Here


        "  }",
        "}");
    assertThat(cellTable.getColumns()).isEmpty();
    // add new Column
    {
      ColumnInfo column = createJavaInfo("com.google.gwt.user.cellview.client.Column");
      flowContainer_CREATE(cellTable, column, null);
      assertThat(cellTable.getColumns()).containsExactly(column);
    }
    assertEditor(
        "// filler filler filler filler filler",
View Full Code Here

    refresh();
    //
    CellTableInfo cellTable = getJavaInfoByName("cellTable");
    assertNoErrors(cellTable);
    // create column
    ColumnInfo newColumn = createJavaInfo("com.google.gwt.user.cellview.client.Column", creationId);
    flowContainer_CREATE(cellTable, newColumn, null);
    // check
    assertNoErrors(m_lastParseInfo);
    assertThat(cellTable.getColumns()).hasSize(1);
    assertEditor(source);
    // presentation icon
    assertSame(
        newColumn.getPresentation().getIcon(),
        newColumn.getDescription().getCreation(creationId).getIcon());
  }
View Full Code Here

    assertNoErrors(m_lastParseInfo);
    //
    CellTableInfo cellTable = getJavaInfoByName("cellTable");
    List<ColumnInfo> columns = cellTable.getColumns();
    assertThat(columns.size()).isEqualTo(2);
    ColumnInfo exposedColumn = columns.get(0);
    ColumnInfo column = columns.get(1);
    assertThat(column).isNotSameAs(exposedColumn);
    // check
    assert_column_header(exposedColumn, false, false, null, "Will be ignored");
    assert_column_header(column, true, true, "Header", "New header");
    assertEditor(
View Full Code Here

    configureNewProject(GTestUtils.getLocation_21());
    dontUseSharedGWTState();
    // parse
    parseJavaInfo(get_widthProperty_lines(null));
    refresh();
    ColumnInfo column = getJavaInfoByName("column");
    // no "width" property
    Property property = column.getPropertyByTitle("width");
    assertNull(property);
  }
View Full Code Here

   * Test for "width" property.
   */
  public void test_widthProperty_asString() throws Exception {
    parseJavaInfo(get_widthProperty_lines("'150px'"));
    refresh();
    ColumnInfo column = getJavaInfoByName("column");
    // prepare property
    Property property = column.getPropertyByTitle("width");
    assertNotNull(property);
    // has value
    assertTrue(property.isModified());
    assertEquals("150px", property.getValue());
    // set value
View Full Code Here

   * Test for "width" property.
   */
  public void test_widthProperty_asValueUnit() throws Exception {
    parseJavaInfo(get_widthProperty_lines("30, Unit.MM"));
    refresh();
    ColumnInfo column = getJavaInfoByName("column");
    // prepare property
    Property property = column.getPropertyByTitle("width");
    assertNotNull(property);
    // has value
    assertTrue(property.isModified());
    assertEquals("30.0mm", property.getValue());
    // set value
View Full Code Here

        "      });",
        "    }",
        "  }",
        "}");
    refresh();
    ColumnInfo column = getJavaInfoByName("column");
    // prepare property
    Property property = column.getPropertyByTitle("comparator");
    assertNotNull(property);
    // has value
    assertTrue(property.isModified());
    assertEquals("<comparator>", property.getValue());
    assertEquals("<comparator>", getPropertyText(property));
View Full Code Here

        "      addColumn(column);",
        "    }",
        "  }",
        "}");
    refresh();
    ColumnInfo column = getJavaInfoByName("column");
    // prepare property
    Property property = column.getPropertyByTitle("comparator");
    assertNotNull(property);
    // no value
    assertFalse(property.isModified());
    assertEquals("<empty>", property.getValue());
    assertEquals("<empty>", getPropertyText(property));
View Full Code Here

        "      addColumn(column);",
        "    }",
        "  }",
        "}");
    refresh();
    ColumnInfo column = getJavaInfoByName("column");
    // prepare property
    Property property = column.getPropertyByTitle("comparator");
    assertNotNull(property);
    // ask open
    {
      DesignPageSite.Helper.setSite(column, DesignPageSite.EMPTY);
      property.getEditor().doubleClick(property, null);
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.model.widgets.cell.ColumnInfo$ComparatorProperty

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.