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

Examples of com.google.gdt.eclipse.designer.uibinder.model.widgets.WidgetInfo


  ////////////////////////////////////////////////////////////////////////////
  private void removeSize(ObjectInfo child) throws Exception {
    if (!child.isDeleting()
        && child instanceof WidgetInfo
        && child.getParent() instanceof WidgetInfo) {
      WidgetInfo widget = (WidgetInfo) child;
      WidgetInfo parent = (WidgetInfo) child.getParent();
      String removePolicy = XmlObjectUtils.getParameter(parent, "onChildOut.removeSize");
      if ("always".equals(removePolicy)) {
        String noSize = IUIObjectSizeSupport.NO_SIZE;
        widget.getSizeSupport().setSize(noSize, noSize);
      }
View Full Code Here


  /**
   * Updates size of {@link WidgetInfo}.
   */
  private void setSize(ObjectInfo child) throws Exception {
    if (child instanceof WidgetInfo && child.getParent() instanceof WidgetInfo) {
      WidgetInfo widget = (WidgetInfo) child;
      WidgetInfo parent = (WidgetInfo) child.getParent();
      String width = getSizeString(parent, "onChildAdd.setWidth");
      String height = getSizeString(parent, "onChildAdd.setHeight");
      widget.getSizeSupport().setSize(width, height);
    }
  }
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Button wbp:name='button'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo button = getObjectByName("button");
    //
    assertNotNull(PropertyUtils.getByPath(button, "Events/onBlur"));
    assertNotNull(PropertyUtils.getByPath(button, "Events/onClick"));
    assertNotNull(PropertyUtils.getByPath(button, "Events/onFocus"));
    assertNotNull(PropertyUtils.getByPath(button, "Events/onKeyDown"));
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Button wbp:name='button'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo button = getObjectByName("button");
    //
    Property property = PropertyUtils.getByPath(button, "Events/onClick");
    assertFalse(property.isModified());
  }
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Button wbp:name='button' ui:field='button'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo button = getObjectByName("button");
    //
    Property property = PropertyUtils.getByPath(button, "Events/onClick");
    assertNotNull(property);
    assertFalse(property.isModified());
  }
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Button wbp:name='button' ui:field='button'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo button = getObjectByName("button");
    //
    Property property = PropertyUtils.getByPath(button, "Events/onClick");
    assertFalse(property.isModified());
  }
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Button wbp:name='button' ui:field='button'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo button = getObjectByName("button");
    //
    Property property = PropertyUtils.getByPath(button, "Events/onClick");
    assertFalse(property.isModified());
    assertEquals(null, getPropertyText(property));
  }
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Button wbp:name='button' ui:field='button'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo button = getObjectByName("button");
    //
    Property property = PropertyUtils.getByPath(button, "Events/onClick");
    assertFalse(property.isModified());
  }
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Button wbp:name='button' ui:field='button'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo button = getObjectByName("button");
    //
    Property property = PropertyUtils.getByPath(button, "Events/onClick");
    assertTrue(property.isModified());
    assertEquals("someMethod", getPropertyText(property));
  }
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Button wbp:name='button' ui:field='button'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo button = getObjectByName("button");
    //
    Property property = PropertyUtils.getByPath(button, "Events/onClick");
    assertTrue(property.isModified());
    assertEquals("someMethod", getPropertyText(property));
    // do open
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.uibinder.model.widgets.WidgetInfo

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.