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

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


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



        this.externalFrame = new Frame();
        this.externalFrame.setWidth(configuration.getCustomFormWidth()+"px");
        this.externalFrame.setHeight(configuration.getCustomFormHeight()+"px");
//        this.externalFrame.setWidth("100%");
//        this.externalFrame.setHeight("100%");
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

   *
   * @param url the url
   * @return the new frame instance
   */
  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

   *
   * @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

   *
   * @param url the url
   * @return the new frame instance
   */
  public Frame setUrl(String url) {
    Frame f = new Frame(url);
    fly(f.getElement()).setStyleAttribute("frameBorder", "0");
    f.setSize("100%", "100%");
    removeAll();
    add(new WidgetComponent(f));
    return f;
  }
View Full Code Here

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

        if (RootPanel.get("downloadiframe") != null) {
            Widget widgetFrame = (Widget) RootPanel
                    .get("downloadiframe");
            widgetFrame.removeFromParent();
        }
        Frame frame = new Frame(GWT.getHostPageBaseURL()
                + "partition_download.do" + "?path=" + pm.getPath()
                + "&table=" + panel.getTable().getName());
        frame.setVisible(false);
        frame.setSize("0px", "0px");
        RootPanel.get().add(frame);
    }
View Full Code Here

  public void execute() {

    long messageId = this.attachment.getMessageId();
    int index = this.attachment.getIndex();
    String url = ServiceProvider.getRetrieveAttachmentServletUrl( messageId, index );
    Frame frame = new Frame( url );
    frame.setVisible( false );
    RootPanel.get().add( frame );
  }
View Full Code Here

  @ShowcaseSource
  @Override
  public Widget onInitialize() {
    // Create a new frame
    String url = GWT.getModuleBaseURL();
    final Frame frame = new Frame(url);
    frame.setSize("700px", "300px");
    frame.ensureDebugId("cwFrame");

    // Create a form to set the location of the frame
    final TextBox locationBox = new TextBox();
    locationBox.setText(url);
    Button setLocationButton = new Button(constants.cwFrameSetLocation());
    HorizontalPanel optionsPanel = new HorizontalPanel();
    optionsPanel.setSpacing(8);
    optionsPanel.add(locationBox);
    optionsPanel.add(setLocationButton);

    // Change the location when the user clicks the button
    setLocationButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        frame.setUrl(locationBox.getText());
      }
    });

    // Change the location when the user presses enter
    locationBox.addKeyDownHandler(new KeyDownHandler() {
      public void onKeyDown(KeyDownEvent event) {
        if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
          frame.setUrl(locationBox.getText());
        }
      }

    });
View Full Code Here

        initWidgets();
    }

    private void initWidgets() {
        String name = "/"+ApplicationPreferences.getDesignerContext()+"/editor/?uuid=" + modelUUID + "&profile="+ApplicationPreferences.getDesignerProfile();
        frame = new Frame( name );
        frame.getElement().setAttribute( "domain",
                                         Document.get().getDomain() );
        frame.setWidth( "100%" );
        frame.setHeight( "100%" );
        initWidget( frame );
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.