Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.Frame


         } else {
             name = "/designer/editor";
         } **/

        name = "/designer/editor/?uuid=" + modelUUID + "&profile=jbpm";
        frame = new Frame( name );
        frame.getElement().setAttribute( "domain",
                                         Document.get().getDomain() );
        frame.setWidth( "100%" );
        frame.setHeight( "100%" );
        initWidget( frame );
View Full Code Here


                           CustomFormConfiguration configuration) {
        super( image,
               title );
        this.configuration = configuration;

        this.externalFrame = new Frame();
        this.externalFrame.setWidth( configuration.getCustomFormWidth() + "px" );
        this.externalFrame.setHeight( configuration.getCustomFormHeight() + "px" );

        VerticalPanel vp = new VerticalPanel();
        vp.setWidth( "100%" );
View Full Code Here

                tabbedPanel.addTab( constants.UserPermissionMappings(),
                        new PermissionViewer() );
                break;
            case 6:
                // TODO: Not a manager -Rikkola-
                Frame aboutInfoFrame = new Frame( "../AboutInfo.html" ); // NON-NLS

                FormStylePopup aboutPop = new FormStylePopup();
                aboutPop.setWidth( 600 + "px" );
                aboutPop.setTitle( constants.About() );
                String hhurl = GWT.getModuleBaseURL()
View Full Code Here

        super(client);
    }

    protected Object createComponentInstance(Object parent, DomNode element)
    {
        Frame f = new Frame();
        return f;
    }
View Full Code Here

        return f;
    }

    protected Object updateUI(Object com, DomNode element)
    {
        Frame f = (Frame) com;
        String uri = element.getAttribute("uri");
        if (uri.startsWith("?"))
        {
            f.setUrl(getClient().getUrl() + uri);
        } else
        {
            f.setUrl(getClient().getUrl());
        }
        return super.updateUI(com, element);
    }
View Full Code Here

   * @param url the content url
   */
  public void setUrl(String url) {
    if (this.output == null || !(this.output instanceof Frame)) {
    this.clear();
      Frame frame = new Frame();
      frame.setSize("100%", "99%");
      IFrameElement.as(frame.getElement()).setFrameBorder(0);
      IFrameElement.as(frame.getElement()).setMarginHeight(0);
      IFrameElement.as(frame.getElement()).setMarginWidth(0);
      this.output = frame;
      this.content.add(this.output);
      this.content.getElement().getParentElement().getStyle().setProperty("overflow", "hidden");
    }
    Frame frame = (Frame) this.output;
    frame.setUrl(url);
  }
View Full Code Here

                            String title,
                            CustomFormConfiguration configuration ) {
        super( image, title );
        this.configuration = configuration;

        this.externalFrame = new Frame();
        this.externalFrame.setWidth( configuration.getCustomFormWidth() + "px" );
        this.externalFrame.setHeight( configuration.getCustomFormHeight() + "px" );

        VerticalPanel vp = new VerticalPanel();
        vp.setWidth( "100%" );
View Full Code Here

            // TODO multiple opens with the same target will in practice just
            // open the last one - should we fix that somehow?
            final String parsedUri = client.translateVaadinUri(childUidl
                    .getStringAttribute("src"));
            if (!childUidl.hasAttribute("name")) {
                final Frame frame = new Frame();
                DOM.setStyleAttribute(frame.getElement(), "width", "100%");
                DOM.setStyleAttribute(frame.getElement(), "height", "100%");
                DOM.setStyleAttribute(frame.getElement(), "border", "0px");
                frame.setUrl(parsedUri);
                contentPanel.setWidget(frame);
                showingUrl = true;
            } else {
                final String target = childUidl.getStringAttribute("name");
                Window.open(parsedUri, target, "");
View Full Code Here

            // TODO multiple opens with the same target will in practice just
            // open the last one - should we fix that somehow?
            final String parsedUri = client.translateVaadinUri(childUidl
                    .getStringAttribute("src"));
            if (!childUidl.hasAttribute("name")) {
                final Frame frame = new Frame();
                DOM.setStyleAttribute(frame.getElement(), "width", "100%");
                DOM.setStyleAttribute(frame.getElement(), "height", "100%");
                DOM.setStyleAttribute(frame.getElement(), "border", "0px");
                frame.setUrl(parsedUri);
                contentPanel.setWidget(frame);
                showingUrl = true;
            } else {
                final String target = childUidl.getStringAttribute("name");
                Window.open(parsedUri, target, "");
View Full Code Here

   *
   * @param url the url
   * @return the frame widget
   */
  public Frame setUrl(String url) {
    Frame f = new Frame(url);
    f.getElement().setPropertyInt("frameBorder", 0);
    f.setSize("100%", "100%");
    setLayout(new FlowLayout());
    removeAll();
    add(f);
    layout();
    return f;
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.Frame

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.