Package com.google.gdt.eclipse.designer.gwtext.model.layout

Examples of com.google.gdt.eclipse.designer.gwtext.model.layout.ImplicitLayoutCreationSupport


    if (hasLayout()) {
      AstEditor editor = getEditor();
      Object layout = ReflectionUtils.invokeMethod(getObject(), "getLayout()");
      // create implicit layout model
      LayoutInfo implicitLayout;
      CreationSupport creationSupport = new ImplicitLayoutCreationSupport(this);
      if (layout == null) {
        implicitLayout = createDefaultImplicitLayout(creationSupport);
      } else {
        implicitLayout =
            (LayoutInfo) JavaInfoUtils.createJavaInfo(editor, layout.getClass(), creationSupport);
View Full Code Here


    LayoutInfo layout = panel.getLayout();
    // check association
    assertInstanceOf(ImplicitObjectAssociation.class, layout.getAssociation());
    // check creation support
    {
      ImplicitLayoutCreationSupport creationSupport =
          (ImplicitLayoutCreationSupport) layout.getCreationSupport();
      assertEquals(panel.getCreationSupport().getNode(), creationSupport.getNode());
      assertEquals(
          "implicit-layout: com.gwtext.client.widgets.layout.RowLayout",
          creationSupport.toString());
      // validation
      assertFalse(creationSupport.canReorder());
      assertFalse(creationSupport.canReparent());
      // no clipboard
      assertNull(creationSupport.getImplicitClipboard());
    }
    // check variable
    {
      ImplicitLayoutVariableSupport variableSupport =
          (ImplicitLayoutVariableSupport) layout.getVariableSupport();
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.gwtext.model.layout.ImplicitLayoutCreationSupport

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.