Package org.eclipse.wb.internal.core.model.property

Examples of org.eclipse.wb.internal.core.model.property.GenericProperty


  /**
   * Sets <code>LayoutRegion</code>.
   */
  public void setRegion(String region) throws Exception {
    materialize();
    GenericProperty property = (GenericProperty) getPropertyByTitle("region");
    property.setExpression("com.extjs.gxt.ui.client.Style.LayoutRegion." + region, null);
  }
View Full Code Here


    StackLayoutPanelInfo panel = getJavaInfoByName("panel");
    // bounds
    assertEquals(new Rectangle(0, 0, 450, 300), panel.getBounds());
    // Unit property
    {
      GenericProperty unitProperty = (GenericProperty) panel.getPropertyByTitle("Unit");
      assertNotNull(unitProperty);
      {
        Class<?> type = unitProperty.getType();
        assertNotNull(type);
        assertEquals("com.google.gwt.dom.client.Style$Unit", type.getName());
      }
      assertTrue(unitProperty.getCategory().isSystem());
      assertEquals("PX", getPropertyText(unitProperty));
    }
  }
View Full Code Here

    assertNoErrors(panel);
    // bounds
    assertEquals(new Rectangle(0, 0, 450, 300), panel.getBounds());
    // Unit property
    {
      GenericProperty unitProperty = (GenericProperty) panel.getPropertyByTitle("Unit");
      assertNotNull(unitProperty);
      {
        Class<?> type = unitProperty.getType();
        assertNotNull(type);
        assertEquals("com.google.gwt.dom.client.Style$Unit", type.getName());
      }
      assertTrue(unitProperty.getCategory().isSystem());
      assertEquals("CM", getPropertyText(unitProperty));
    }
  }
View Full Code Here

    DockLayoutPanelInfo panel = getJavaInfoByName("panel");
    // bounds
    assertEquals(new Rectangle(0, 0, 450, 300), panel.getBounds());
    // Unit property
    {
      GenericProperty unitProperty = (GenericProperty) panel.getPropertyByTitle("Unit");
      assertNotNull(unitProperty);
      {
        Class<?> type = unitProperty.getType();
        assertNotNull(type);
        assertEquals("com.google.gwt.dom.client.Style$Unit", type.getName());
      }
      assertTrue(unitProperty.getCategory().isSystem());
      assertEquals("PX", getPropertyText(unitProperty));
    }
  }
View Full Code Here

      assertThat(bounds.width).isGreaterThan(widthGreatThat);
      assertThat(bounds.height).isEqualTo(300);
    }
    // Unit property
    {
      GenericProperty unitProperty = (GenericProperty) panel.getPropertyByTitle("Unit");
      assertNotNull(unitProperty);
      {
        Class<?> type = unitProperty.getType();
        assertNotNull(type);
        assertEquals("com.google.gwt.dom.client.Style$Unit", type.getName());
      }
      assertTrue(unitProperty.getCategory().isSystem());
      assertEquals("CM", getPropertyText(unitProperty));
    }
  }
View Full Code Here

    DockLayoutPanelInfo panel = getJavaInfoByName("panel");
    // bounds
    assertEquals(new Rectangle(0, 0, 450, 300), panel.getBounds());
    // no Unit property
    {
      GenericProperty unitProperty = (GenericProperty) panel.getPropertyByTitle("Unit");
      assertNull(unitProperty);
    }
  }
View Full Code Here

  //
  // IComplexPropertyEditor
  //
  ////////////////////////////////////////////////////////////////////////////
  public Property[] getProperties(Property _property) throws Exception {
    GenericProperty property = (GenericProperty) _property;
    JavaInfo javaInfo = property.getJavaInfo();
    Property[] properties = (Property[]) javaInfo.getArbitraryValue(this);
    if (properties == null) {
      Shell shell = Display.getCurrent().getActiveShell();
      GwtState state = getState(javaInfo);
      properties = new Property[2];
View Full Code Here

            "    RootPanel rootPanel = RootPanel.get();",
            "    rootPanel.add(new Button(CONSTANTS.button_text()));",
            "  }",
            "}");
    frame.refresh();
    GenericProperty property = (GenericProperty) frame.getPropertyByTitle("title");
    // set key
    {
      NlsSupport support = NlsSupport.get(frame);
      AbstractSource source = support.getSources()[0];
      source.useKey(property, "rootPanel.title");
View Full Code Here

            "    }",
            "    return dataSource;",
            "  }",
            "}"});
    calendar.refresh();
    GenericProperty property = (GenericProperty) calendar.getPropertyByTitle("dataSource");
    ObjectPropertyEditor editor = (ObjectPropertyEditor) property.getEditor();
    DataSourceInfo dataSource =
        NonVisualBeanContainerInfo.get(calendar).getChildren(DataSourceInfo.class).get(0);
    // check special target
    assertNull(dataSource.calculateStatementTarget(calendar));
    // assign
View Full Code Here

            "    }",
            "    return dataSource;",
            "  }",
            "}"});
    calendar.refresh();
    GenericProperty property = (GenericProperty) calendar.getPropertyByTitle("dataSource");
    ObjectPropertyEditor editor = (ObjectPropertyEditor) property.getEditor();
    DataSourceInfo dataSource =
        NonVisualBeanContainerInfo.get(calendar).getChildren(DataSourceInfo.class).get(0);
    // check special target
    assertNull(dataSource.calculateStatementTarget(calendar));
    // assign
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.model.property.GenericProperty

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.