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

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


        brokerIp = Cookies.getCookie("broker_ip");

        DockLayoutPanel myDockLayoutPanel = new DockLayoutPanel(Unit.EM);
        // draw the environment
        FloorPlanWidget floorPlan = new FloorPlanWidget(myDockLayoutPanel, null);
        RootLayoutPanel rootPanel = RootLayoutPanel.get();

        SimplePanel greenLateralPanel = new SimplePanel();
        greenLateralPanel.setStyleName("lateral_panel");
        SimplePanel borderpanel = new SimplePanel();
        borderpanel.setStyleName("header_panel");
        myDockLayoutPanel.addWest(greenLateralPanel, 10);
        myDockLayoutPanel.addWest(borderpanel, 2);

        final OMSVGSVGElement svg = images.logo_svg().getSvg();
        SVGImage myImage = new SVGImage(svg) {
            protected void onAttach() {
                OMSVGRect viewBox = svg.getViewBox().getBaseVal();
                if (viewBox.getWidth() == 0 || viewBox.getHeight() == 0) {
                    OMSVGRect bbox = svg.getBBox();
                    bbox.assignTo(viewBox);
                }
                svg.getStyle().setWidth(300, Unit.PX);
                svg.getStyle().setHeight(130, Unit.PX);
                super.onAttach();
            }
        };

        myImage.setStyleName("logo");
        SimplePanel logoPanel = new SimplePanel();
        logoPanel.add(myImage);
        logoPanel.setStyleName("header_panel");
        myDockLayoutPanel.addNorth(logoPanel, 10.7);
        myDockLayoutPanel.addNorth(new EnvListBox(floorPlan), 2);
        SimplePanel footerPanel = new SimplePanel();
        footerPanel.setStyleName("header_panel");
        myDockLayoutPanel.addSouth(footerPanel, 4);
        rootPanel.add(myDockLayoutPanel);
        myDockLayoutPanel.add(floorPlan.getCanvas());

        //Temporal hack to the configuration until we decide about it 
        brokerIp = com.google.gwt.user.client.Window.Location.getHostName();
        init();
View Full Code Here


    brokerIp = Cookies.getCookie("broker_ip");
   
    DockLayoutPanel myDockLayoutPanel = new DockLayoutPanel(Unit.EM);
    // draw the environment
    FloorPlanWidget floorPlan = new FloorPlanWidget(myDockLayoutPanel);
    RootLayoutPanel rootPanel = RootLayoutPanel.get();

    SimplePanel greenLateralPanel = new SimplePanel();
    greenLateralPanel.setStyleName("lateral_panel");
    SimplePanel borderpanel = new SimplePanel();
    borderpanel.setStyleName("header_panel");
    myDockLayoutPanel.addWest(greenLateralPanel, 10);
    myDockLayoutPanel.addWest(borderpanel, 2);

    final OMSVGSVGElement svg = images.logo_svg().getSvg();
    SVGImage myImage = new SVGImage(svg)
    {
      protected void onAttach() {
          OMSVGRect viewBox = svg.getViewBox().getBaseVal();
        if (viewBox.getWidth() == 0 || viewBox.getHeight() == 0) {
          OMSVGRect bbox = svg.getBBox();
          bbox.assignTo(viewBox);
        }       
        svg.getStyle().setWidth(300, Unit.PX);
        svg.getStyle().setHeight(130, Unit.PX);
        super.onAttach();
        }
    }
                       
    myImage.setStyleName("logo");
    SimplePanel logoPanel = new SimplePanel();
    logoPanel.add(myImage);
    logoPanel.setStyleName("header_panel");     
    myDockLayoutPanel.addNorth(logoPanel, 10.7);   
   
    SimplePanel footerPanel = new SimplePanel();
    footerPanel.setStyleName("header_panel");
    myDockLayoutPanel.addSouth(footerPanel, 4);
    rootPanel.add(myDockLayoutPanel);
    myDockLayoutPanel.add(floorPlan.getCanvas());
           
  //Temporal hack to the configuration until we decide about it 
    brokerIp = com.google.gwt.user.client.Window.Location.getHostName();
    init();
View Full Code Here

    }
   
    private void showApp(int what)
    {
        Window.setMargin("0px");
        RootLayoutPanel rootLayoutPanel = RootLayoutPanel.get();
        rootLayoutPanel.clear();
        if (what == APPSCREEN_MAIN)
        {
            appScreen.setWidth("100%");
            rootLayoutPanel.add(appScreen);
        }
        else
        {
            String html = WELCOME_STRING;
            appScreenLogin.setWidth("100%");
            appScreenLogin.updateWecomeLabel(html);
            appScreenLogin.resetLoginParams();
            rootLayoutPanel.add(appScreenLogin);
        }
    }
View Full Code Here

    p.setWidgetRightWidth(childTwo, 0, PCT, 50, PCT);

    // Attach the LayoutPanel to the RootLayoutPanel. The latter will listen for
    // resize events on the window to ensure that its children are informed of
    // possible size changes.
    RootLayoutPanel rp = RootLayoutPanel.get();
    rp.add(p);
  }
View Full Code Here

    p.add(new HTML("center"));

    // Attach the LayoutPanel to the RootLayoutPanel. The latter will listen for
    // resize events on the window to ensure that its children are informed of
    // possible size changes.
    RootLayoutPanel rp = RootLayoutPanel.get();
    rp.add(p);
  }
View Full Code Here

    p.add(new HTML("details"));

    // Attach the LayoutPanel to the RootLayoutPanel. The latter will listen for
    // resize events on the window to ensure that its children are informed of
    // possible size changes.
    RootLayoutPanel rp = RootLayoutPanel.get();
    rp.add(p);
  }
View Full Code Here

    p.add(new HTML("the other"), new HTML("[the other]"), 4);

    // Attach the LayoutPanel to the RootLayoutPanel. The latter will listen for
    // resize events on the window to ensure that its children are informed of
    // possible size changes.
    RootLayoutPanel rp = RootLayoutPanel.get();
    rp.add(p);
  }
View Full Code Here

    p.add(new HTML("the other"), "[the other]");

    // Attach the LayoutPanel to the RootLayoutPanel. The latter will listen for
    // resize events on the window to ensure that its children are informed of
    // possible size changes.
    RootLayoutPanel rp = RootLayoutPanel.get();
    rp.add(p);
  }
View Full Code Here

         }

         public void onSuccess()
         {
            final RequestLogVisualization viz = new RequestLogVisualization();
            final RootLayoutPanel root = RootLayoutPanel.get();
            root.add(viz);
            root.setWidgetTopBottom(viz, 10, Unit.PX, 10, Unit.PX);
            root.setWidgetLeftRight(viz, 10, Unit.PX, 10, Unit.PX);
            viz.addCloseHandler(new CloseHandler<RequestLogVisualization>()
            {
               public void onClose(CloseEvent<RequestLogVisualization> event)
               {
                  root.remove(viz);
               }
            });
         }
      });
   }
View Full Code Here

    // Do nothing b/c mapping is not required serial navigation
  }

  @Override
  public void startUp(Page startUpPage) {
    RootLayoutPanel rootPanel = RootLayoutPanel.get();
    rootPanel.clear();
    rootPanel.add(startUpPage);
    _history.clear();
    _navigateInfo = null;
    add(startUpPage);
  }
View Full Code Here

TOP

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

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.