Package com.google.gdt.eclipse.designer.smart.model.data

Examples of com.google.gdt.eclipse.designer.smart.model.data.DataSourceInfo


  //
  ////////////////////////////////////////////////////////////////////////////
  public StatementTarget getObjectPropertyStatementTarget(GenericProperty property,
      JavaInfo componentValue) throws Exception {
    if ("dataSource".equals(property.getTitle()) && componentValue instanceof DataSourceInfo) {
      DataSourceInfo dataSource = (DataSourceInfo) componentValue;
      return dataSource.calculateStatementTarget(this);
    }
    return null;
  }
View Full Code Here


  //
  ////////////////////////////////////////////////////////////////////////////
  public StatementTarget getObjectPropertyStatementTarget(GenericProperty property,
      JavaInfo componentValue) throws Exception {
    if ("dataSource".equals(property.getTitle()) && componentValue instanceof DataSourceInfo) {
      DataSourceInfo dataSource = (DataSourceInfo) componentValue;
      return dataSource.calculateStatementTarget(this);
    }
    return null;
  }
View Full Code Here

  //
  ////////////////////////////////////////////////////////////////////////////
  public StatementTarget getObjectPropertyStatementTarget(GenericProperty property,
      JavaInfo componentValue) throws Exception {
    if ("dataSource".equals(property.getTitle()) && componentValue instanceof DataSourceInfo) {
      DataSourceInfo dataSource = (DataSourceInfo) componentValue;
      return dataSource.calculateStatementTarget(this);
    }
    return null;
  }
View Full Code Here

  //
  ////////////////////////////////////////////////////////////////////////////
  public StatementTarget getObjectPropertyStatementTarget(GenericProperty property,
      JavaInfo componentValue) throws Exception {
    if ("dataSource".equals(property.getTitle()) && componentValue instanceof DataSourceInfo) {
      DataSourceInfo dataSource = (DataSourceInfo) componentValue;
      return dataSource.calculateStatementTarget(this);
    }
    return null;
  }
View Full Code Here

  //
  ////////////////////////////////////////////////////////////////////////////
  public StatementTarget getObjectPropertyStatementTarget(GenericProperty property,
      JavaInfo componentValue) throws Exception {
    if ("dataSource".equals(property.getTitle()) && componentValue instanceof DataSourceInfo) {
      DataSourceInfo dataSource = (DataSourceInfo) componentValue;
      return dataSource.calculateStatementTarget(this);
    }
    return null;
  }
View Full Code Here

  //
  ////////////////////////////////////////////////////////////////////////////
  public StatementTarget getObjectPropertyStatementTarget(GenericProperty property,
      JavaInfo componentValue) throws Exception {
    if ("dataSource".equals(property.getTitle()) && componentValue instanceof DataSourceInfo) {
      DataSourceInfo dataSource = (DataSourceInfo) componentValue;
      return dataSource.calculateStatementTarget(this);
    }
    return null;
  }
View Full Code Here

  //
  ////////////////////////////////////////////////////////////////////////////
  public StatementTarget getObjectPropertyStatementTarget(GenericProperty property,
      JavaInfo componentValue) throws Exception {
    if ("dataSource".equals(property.getTitle()) && componentValue instanceof DataSourceInfo) {
      DataSourceInfo dataSource = (DataSourceInfo) componentValue;
      return dataSource.calculateStatementTarget(this);
    }
    return null;
  }
View Full Code Here

            "    calendar.draw();",
            "  }",
            "}"});
    calendar.refresh();
    //
    DataSourceInfo dataSource =
        NonVisualBeanContainerInfo.get(calendar).getChildren(DataSourceInfo.class).get(0);
    assertThat(NonVisualBeanInfo.getNonVisualInfo(dataSource).getLocation()).isNull();
    // check fields
    List<DataSourceFieldInfo> dsDirectFields = dataSource.getChildren(DataSourceFieldInfo.class);
    assertThat(dsDirectFields.size()).isEqualTo(2);
    assertThat(
        ReflectionUtils.isSuccessorOf(
            dsDirectFields.get(0).getObject(),
            "com.smartgwt.client.data.fields.DataSourceBooleanField")).isTrue();
    assertThat(
        ReflectionUtils.isSuccessorOf(
            dsDirectFields.get(1).getObject(),
            "com.smartgwt.client.data.fields.DataSourceDateField")).isTrue();
    //
    AbstractArrayObjectInfo objectFieldsInfo =
        dataSource.getChildren(AbstractArrayObjectInfo.class).get(0);
    assertThat(objectFieldsInfo.getItems().size()).isEqualTo(1);
    assertThat(objectFieldsInfo.getChildren(DataSourceFieldInfo.class).size()).isEqualTo(0);
  }
View Full Code Here

            "    calendar.draw();",
            "  }",
            "}"});
    calendar.refresh();
    //
    DataSourceInfo dataSource =
        NonVisualBeanContainerInfo.get(calendar).getChildren(DataSourceInfo.class).get(0);
    // create new DataSourceField
    DataSourceFieldInfo dataSourceField =
        createJavaInfo("com.smartgwt.client.data.fields.DataSourceBooleanField");
    {
View Full Code Here

            "    canvas.draw();",
            "  }",
            "}"});
    canvas.refresh();
    //
    DataSourceInfo dataSource =
        NonVisualBeanContainerInfo.get(canvas).getChildren(DataSourceInfo.class).get(0);
    assertThat(canvas.getChildren(FilterBuilderInfo.class).size()).isEqualTo(1);
    assertThat(canvas.getChildren(CalendarInfo.class).size()).isEqualTo(1);
    // create new DataSourceField
    DataSourceFieldInfo dataSourceField =
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.smart.model.data.DataSourceInfo

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.