Examples of VLayout


Examples of com.smartgwt.client.widgets.layout.VLayout

      return new ToolSecuritySample();
    }
  };

  public Canvas getViewPanel() {
    final VLayout layout = new VLayout();
    layout.setMembersMargin(10);
    layout.setWidth100();
    layout.setHeight100();

    // Map with ID duisburgMap is defined in the XML configuration. (mapDuisburg.xml)
    final VLayout mapLayout = new VLayout();
    mapLayout.setShowEdges(true);
    mapLayout.setHeight("60%");
    map = new MapWidget("mapToolbarSecurity", "gwt-samples");
    map.setController(new PanController(map));
    toolbar = new Toolbar(map);
    mapLayout.addMember(toolbar);
    mapLayout.addMember(map);

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

    // Create login handler that re-initializes the map on a successful login:
    final BooleanCallback initMapCallback = new BooleanCallback() {

      public void execute(Boolean value) {
        if (value) {
          toolbar.destroy();
          map.destroy();
          map = new MapWidget("mapToolbarSecurity", "gwt-samples");
          toolbar = new Toolbar(map);
          mapLayout.addMember(toolbar);
          mapLayout.addMember(map);
        }
      }
    };

    // Create a button that logs in user "mark":
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.