Package com.google.gwt.dom.client

Examples of com.google.gwt.dom.client.IFrameElement


      return e.getSrc();
   }

   @PatchMethod
   static void setUrl(Frame frame, String url) {
      IFrameElement e = frame.getElement().cast();
      e.setSrc(url);
   }
View Full Code Here


   }

   @Test
   public void createIFrame() {
      // Act
      IFrameElement elem = IFrameElement.as(DOM.createIFrame());

      // Assert
      assertEquals("iframe", elem.getTagName());
   }
View Full Code Here

            this.show();
        }
    }

    private Element getExternalFrameElement(String id) {
        IFrameElement iframe = IFrameElement.as(this.externalFrame.getElement());
        return iframe.getContentDocument().getElementById(id);
    }
View Full Code Here

            this.show();
        }
    }

    private Element getExternalFrameElement( String id ) {
        IFrameElement iframe = IFrameElement.as( this.externalFrame.getElement() );
        return iframe.getContentDocument().getElementById( id );
    }
View Full Code Here

  public static CajolerFacade instance() {
    return instance;
  }

  private static CajolerFacade create() {
    IFrameElement cajaFrame = createCajaFrame();
    CajoleService service = new HttpCajoleService();
    return new CajolerFacade(service, cajaFrame);
  }
View Full Code Here

    CajoleService service = new HttpCajoleService();
    return new CajolerFacade(service, cajaFrame);
  }

  private static IFrameElement createCajaFrame() {
    IFrameElement cajaFrame = Document.get().createIFrameElement();
    cajaFrame.setFrameBorder(0);
    cajaFrame.setAttribute("width", "0");
    cajaFrame.setAttribute("height", "0");
    Document.get().getBody().appendChild(cajaFrame);
    Document cajaFrameDoc = cajaFrame.getContentDocument();
    cajaFrameDoc.getBody().appendChild(
        cajaFrameDoc.createScriptElement(RESOURCES.supportingJs().getText()));
    cajaFrameDoc.getBody().appendChild(
        cajaFrameDoc.createScriptElement(RESOURCES.taming().getText()));
    return cajaFrame;
View Full Code Here

        gadgetIframe.addStyleName(CSS.loadingGadgetLargeThrobber());
        height = Resources.RESOURCES.loadingGadgetLarge().getHeight();
        break;
    }
   
    IFrameElement iframe = getIframeElement();
    iframe.setAttribute("vspace", "0");
    iframe.setAttribute("hspace", "0");
    iframe.setAttribute("frameBorder", "no");
    iframe.setAttribute("moduleId", gadgetName);
    iframe.setAttribute("display", "block");
    iframe.setAttribute("height", height + "px");
    // TODO(user): scrolling policy/settings for the wave gadgets.
    iframe.setScrolling("no");
    iframeDiv.add(gadgetIframe);
  }
View Full Code Here

  protected String getFormAction() {
    return DEFAULT_FORM_ACTION;
  }

  private IFrameElement getOrMakeIFrame() {
    IFrameElement iFrame = null;
    try {
      iFrame = (IFrameElement) Document.get().getElementById(ERRAI_FORM_FRAME_ID);
    }
    catch (Exception e) {
    }
View Full Code Here

     *
     * @return the iFrame element
     */
    public com.google.gwt.dom.client.Element createIFrameElement(Document doc, String name) {

        IFrameElement element = doc.createIFrameElement();
        element.setName(name);
        return element;
    }
View Full Code Here

            this.show();
        }
    }

    private Element getExternalFrameElement( String id ) {
        IFrameElement iframe = IFrameElement.as( this.externalFrame.getElement() );
        return iframe.getContentDocument().getElementById( id );
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.dom.client.IFrameElement

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.