Package com.smartgwt.client.widgets.layout

Examples of com.smartgwt.client.widgets.layout.VLayout.addMember()


    // Create map with Google layer, and add a PanController to it:
    VLayout mapLayout1 = new VLayout();
    mapLayout1.setShowEdges(true);
    googleMap = new MapWidget("mapGoogle", "gwt-samples");
    googleMap.setController(new PanController(googleMap));
    mapLayout1.addMember(googleMap);

    // Create map with Google layer (satellite), and add a PanController to it:
    VLayout mapLayout2 = new VLayout();
    mapLayout2.setShowEdges(true);
    googleSatMap = new MapWidget("mapGoogleSat", "gwt-samples");
View Full Code Here


    // Create map with Google layer (satellite), and add a PanController to it:
    VLayout mapLayout2 = new VLayout();
    mapLayout2.setShowEdges(true);
    googleSatMap = new MapWidget("mapGoogleSat", "gwt-samples");
    googleSatMap.setController(new PanController(googleSatMap));
    mapLayout2.addMember(googleSatMap);

    // Create map with Google layer (terrain), and add a PanController to it:
    VLayout mapLayout3 = new VLayout();
    mapLayout3.setShowEdges(true);
    googleTerrainMap = new MapWidget("mapGoogleTerrain", "gwt-samples");
View Full Code Here

    final MapWidget map = new MapWidget("mapOsm", "gwt-samples");

    VLayout mapLayout = new VLayout();
    mapLayout.setShowEdges(true);
    mapLayout.setHeight("50%");
    mapLayout.addMember(map);
    layout.addMember(mapLayout);

    final PortalLayout portalLayout = new PortalLayout(3);
    portalLayout.setWidth100();
    portalLayout.setHeight("50%");
View Full Code Here

    // Create map with Google layer (terrain), and add a PanController to it:
    VLayout mapLayout3 = new VLayout();
    mapLayout3.setShowEdges(true);
    googleTerrainMap = new MapWidget("mapGoogleTerrain", "gwt-samples");
    googleTerrainMap.setController(new PanController(googleTerrainMap));
    mapLayout3.addMember(googleTerrainMap);

    // Place all three in the layout:
    layout.addMember(mapLayout1);
    layout.addMember(mapLayout2);
    layout.addMember(mapLayout3);
View Full Code Here

    // Create a tool-bar for this map:
    final Toolbar toolbar = new Toolbar(map);
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);

    mapLayout.addMember(toolbar);
    mapLayout.addMember(map);

    // Add an explanation to the page that explains how editing is done:
    HLayout infoLayout = new HLayout();
    infoLayout.setHeight("35%");
View Full Code Here

    // Create a tool-bar for this map:
    final Toolbar toolbar = new Toolbar(map);
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);

    mapLayout.addMember(toolbar);
    mapLayout.addMember(map);

    // Add an explanation to the page that explains how editing is done:
    HLayout infoLayout = new HLayout();
    infoLayout.setHeight("35%");
    infoLayout.setShowEdges(true);
View Full Code Here

    final VLayout mapLayout = new VLayout();
    mapLayout.setShowEdges(true);
    mapLayout.setHeight("60%");
    map = new MapWidget("mapVectorSecurity", "gwt-samples");
    map.setController(new PanController(map));
    mapLayout.addMember(map);

    // Create horizontal layout for login buttons:
    HLayout buttonLayout = new HLayout();
    buttonLayout.setMembersMargin(10);
View Full Code Here

      public void execute(Boolean value) {
        if (value) {
          map.destroy();
          map = new MapWidget("mapVectorSecurity", "gwt-samples");
          mapLayout.addMember(map);
          map.setController(new PanController(map));
        }
      }
    };
View Full Code Here

        AreaController areaController = new AreaController(map);
        map.setController(areaController);
      }
    });

    layout.addMember(map);
    return layout;
  }

  public String getDescription() {
    return I18nProvider.getSampleMessages().rectangleControllerDescription();
View Full Code Here

    layout.setHeight100();

    // Map with ID beansMap is defined in the XML configuration. (contains any type of attribute)
    final MapWidget map = new MapWidget("mapBeansAssociation", "gwt-samples");
    map.setVisible(false);
    layout.addMember(map);
    map.init();

    HLayout hLayout = new HLayout(10);
    hLayout.setHeight(40);
    IButton disabledBtn = new IButton("Disable form");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.