Java 类com.google.gwt.user.client.ui.NamedFrame 实例源码

项目:iambookmaster    文件:RemotePanel.java   
public RemotePanel(String serverUrl,RemotePanelListener listener) {
    this.listener = listener;
    this.serverUrl = serverUrl;
    CALLBACK = GWT.getHostPageBaseURL()+appConstants.remoteProgressPage();
    if (CALLBACK.startsWith("file:///")) {
        CALLBACK = CALLBACK.replace("file://", "file://///");
    }
    CALLBACK_BASE64 = Base64Coder.encodeString(CALLBACK);
    setSize("100%", "100%");
    framName = "RemotePanel"+String.valueOf(++COUNTER);
    frame = new NamedFrame(framName);
    frame.setUrl(CALLBACK);
    frame.setSize("100%", "100%");
    add(frame);
    setCellHeight(frame, "100%");
    setCellWidth(frame, "100%");
    form = new FormPanel(frame);
    form.setVisible(false);
    add(form);
    setCellHeight(form, "1px");
    setCellWidth(form, "100%");
    formElements = new FlowPanel();
    form.add(formElements);
}
项目:gwtbootstrap3    文件:FormPanel.java   
public FormPanel(NamedFrame frameTarget) {
    super(frameTarget);
}
项目:phenotype-portal    文件:Htp.java   
/**
   * This is the entry point method.
   */
  @Override
  public void onModuleLoad() {
      lgr.log(Level.INFO, "init OnLoadModule()...");
      // get rid of scroll bars, and clear out the window's built-in margin,
      // because we want to take advantage of the entire client area
      Window.enableScrolling(false);
      Window.setMargin("0px");

      // initialize the main layout container
      i_overallLayout = new VLayout();
      i_overallLayout.setWidth100();
      i_overallLayout.setHeight100();

      i_mainLayout = new HLayout();
      i_mainLayout.setWidth100();
      i_mainLayout.setHeight100();
      // i_mainLayout.setBorder("1px dashed green");

      // initialize the North layout container
      i_northLayout = new HLayout();
      i_northLayout.setHeight(NORTH_HEIGHT);

      // add rounded borders to the layout.
      UiHelper.createLayoutWithBorders(i_northLayout);

      // add the Header menu to the nested layout container
      i_headerMenu = new HeaderMenu();
      i_navigationHeader = new NavigationHeader();

      // Layout to add the two headers vertically
      VLayout headerLayout = new VLayout();
      headerLayout.addMember(i_headerMenu);
      headerLayout.addMember(i_navigationHeader);

      // Add the top Navigation Pane
      i_northLayout.addMember(headerLayout);

      i_contextAreaPanel = new ContextAreaPanel();
      i_mainLayout.addMember(i_contextAreaPanel);

      /* Hidden frame for callback */
      NamedFrame callbackFrame = new NamedFrame("uploadCallbackFrame");
      callbackFrame.setHeight("1px");
      callbackFrame.setWidth("1px");
      callbackFrame.setVisible(false);
      i_contextAreaPanel.addMember(callbackFrame);

      // Add the welcome page to the context area panel, initially
      i_contextAreaPanel.setCurrentContextArea(getWelcomePanel());

      // Add the layout to overall layout
      i_overallLayout.addMember(i_northLayout);
      i_overallLayout.addMember(i_mainLayout);

      // Draw the Layout - main layout
      RootLayoutPanel.get().add(i_overallLayout);

      setLoggingProperties();
      createContextAreaChangedEventHandler();
      createLogInRequestEvent();
      createLoggedInEventHandler();
      createLogOutRequestEvent();
      createUploadStartedEvent();
      createUploadCompletedEvent();
      createUploadCanceledEvent();
      createPhenotypeExecuteStartedEventHandler();
      createPhenotypeExecuteCompletedEventHandler();
      createLoginRegistrationCancelEventHandler();

      checkServerForValidSession();
      initWindowClosingConfirmationDialog();

checkServerForImport();
  }