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

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


    /**
     * Initializes or refreshes the forever frame.
     */
    private void initStreamingConnectorFrame() {
      if(myStreamingConnectorFrame == null) {
      myStreamingConnectorFrame = new Frame(myServiceURL);
      myStreamingConnectorFrame.setVisible(false);
        RootPanel.get().add(myStreamingConnectorFrame);
      } else {
        //refresh / restart the connection
        myStreamingConnectorFrame.setUrl(myServiceURL);
View Full Code Here


    static {
        DUMMY_FRAME_ELEMENT = createFrameElement();
    }

    private static Element createFrameElement() {
        Frame theDummyFrame = new Frame();
      theDummyFrame.setVisible(false);
        final Element theDummyFrameElement = theDummyFrame.getElement();
        theDummyFrameElement.setId("gwteventservice_dummy_frame");
        return theDummyFrameElement;
    }
View Full Code Here

    public Widget createWidget() {
        tabs = new TabLayoutPanel(40, Style.Unit.PX);
        tabs.setStyleName("default-tabpanel");

        String cspUrl = bootstrapContext.getProperty(ApplicationProperties.CSP_API);
        searchFrame = new Frame(cspUrl + "/search.html");
        searchFrame.getElement().setAttribute("style", "margin-top:10px");
        searchFrame.setWidth("100%");
        searchFrame.setHeight("100%");

        /*searchFrame.addLoadHandler(new LoadHandler() {
            @Override
            public void onLoad(LoadEvent loadEvent) {
                forceResize();
            }
        });*/

        supportFrame = new Frame(cspUrl + "/support.html");
        supportFrame.getElement().setAttribute("style", "margin-top:10px");
        supportFrame.setWidth("100%");
        supportFrame.setHeight("100%");


View Full Code Here

    Widget w =
        MantleApplication.getInstance().getContentDeck().getWidget(
            MantleApplication.getInstance().getContentDeck().getVisibleWidget() );
    if ( w instanceof Frame && !perspective.getId().equals( w.getElement().getId() ) ) {
      // invoke deactivation method
      Frame frame = (Frame) w;
      perspectiveDeactivated( frame.getElement() );
    }

    // remove current perspective overlays
    if ( activePerspective != null ) {
      for ( XulOverlay o : activePerspective.getOverlays() ) {
View Full Code Here

    setCheckMMenuItem( browserChecked, schedulesChecked );
  }

  private void hijackContentArea( IPluginPerspective perspective ) {
    // hijack content area (or simply find and select existing content)
    Frame frame = null;
    for ( int i = 0; i < MantleApplication.getInstance().getContentDeck().getWidgetCount(); i++ ) {
      Widget w = MantleApplication.getInstance().getContentDeck().getWidget( i );
      if ( w instanceof Frame && perspective.getId().equals( w.getElement().getId() ) ) {
        frame = (Frame) w;
      }
    }
    if ( frame == null ) {
      frame = new Frame( perspective.getContentUrl() );
      Element frameElement = frame.getElement();
      frameElement.setAttribute( ALLOW_TRANSPARENCY_ATTRIBUTE, "true" );
      // BISERVER-7661 Mantle sections have a border on IE9 (not on chrome, firefox)
      frameElement.setAttribute( REMOVE_IFRAME_BORDERS, "0" );
      frame.getElement().setId( perspective.getId() );
      MantleApplication.getInstance().getContentDeck().add( frame );
    }

    MantleApplication.getInstance().getContentDeck().showWidget(
        MantleApplication.getInstance().getContentDeck().getWidgetIndex( frame ) );

    final Element frameElement = frame.getElement();
    perspectiveActivated( frameElement );
  }
View Full Code Here

  protected void performOperation( boolean feedback ) {
    if ( showInDialog ) {
      String height = dialogHeight + "px"; //$NON-NLS-1$
      String width = dialogWidth + "px"; //$NON-NLS-1$

      final Frame frame = new Frame( url );

      final PromptDialogBox dialogBox = new PromptDialogBox( title, Messages.getString( "ok" ), null, false, false );
      dialogBox.setStylePrimaryName( "pentaho-dialog" );
      dialogBox.setText( title );
      dialogBox.setContent( frame );

      frame.setSize( width, height );
      dialogBox.center();
      frame.setSize( width, height );
    } else {
      SolutionBrowserPanel navigatorPerspective = SolutionBrowserPanel.getInstance();
      navigatorPerspective.getContentTabPanel().showNewURLTab( title, "", url, false ); //$NON-NLS-1$
    }
  }
View Full Code Here

      }
    }
  }

  private void hidePDFFrames( MenuItem item ) {
    Frame frame = getActiveBrowserPerspectiveFrame();
    if ( frame == null ) {
      return;
    }
    if ( item.getSubMenu() != null && item.getSubMenu().isVisible() ) {
      if ( ElementUtils.elementsOverlap( item.getSubMenu().getElement(), getActiveBrowserPerspectiveFrame()
View Full Code Here

  @Override
  public void onPopupClosed( PopupPanel sender, boolean autoClosed ) {
    super.addCloseHandler( new CloseHandler<PopupPanel>() {

      public void onClose( CloseEvent<PopupPanel> event ) {
        Frame frame = getActiveBrowserPerspectiveFrame();
        if ( frame == null ) {
          return;
        }
        FrameUtils.setEmbedVisibility( getActiveBrowserPerspectiveFrame(), true );
      }
View Full Code Here

  }

  @Bindable
  public void loadAdminContent( final String securityPanelId, final String url ) {
    // hijack content area (or simply find and select existing content)
    Frame frame = null;
    for ( int i = 0; i < MantleXul.getInstance().getAdminContentDeck().getWidgetCount(); i++ ) {
      Widget w = MantleXul.getInstance().getAdminContentDeck().getWidget( i );
      if ( w instanceof Frame && securityPanelId.equals( w.getElement().getId() ) ) {
        frame = (Frame) w;
      }
    }
    if ( frame == null ) {
      frame = new Frame( url );
      frame.getElement().setId( securityPanelId );
      frame.getElement().setAttribute( "frameBorder", "0" );
      frame.getElement().setAttribute( "allowTransparency", "true" );
      MantleXul.getInstance().getAdminContentDeck().add( frame );
    }
    MantleXul.getInstance().getAdminContentDeck().showWidget(
        MantleXul.getInstance().getAdminContentDeck().getWidgetIndex( frame ) );
  }
View Full Code Here

public class FrameExample implements EntryPoint {

  public void onModuleLoad() {
    // Make a new frame, and point it at Google.
    Frame frame = new Frame("http://www.google.com/");

    // Add it to the root panel.
    RootPanel.get().add(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.