Package org.geomajas.widget.utility.smartgwt.client.ribbon

Examples of org.geomajas.widget.utility.smartgwt.client.ribbon.RibbonBarLayout


  private Canvas getExample1() {
    VLayout layout = new VLayout(5);
    layout.setPadding(5);

    MapWidget mapWidget = new MapWidget("mapOsm", "widget-utility");
    final RibbonBarLayout ribbonBar = new RibbonBarLayout(mapWidget, "ribbon-bar-1");
    ribbonBar.setSize("100%", "94px");

    ToolStrip toolStrip = new ToolStrip();
    toolStrip.setWidth100();
    ToolStripButton btn1 = new ToolStripButton("Toggle group title");
    btn1.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        ribbonBar.setShowGroupTitles(!ribbonBar.isShowGroupTitles());
      }
    });
    toolStrip.addButton(btn1);
    layout.addMember(toolStrip);
    layout.addMember(ribbonBar);
View Full Code Here


  private Canvas getExample3() {
    VLayout layout = new VLayout(5);
    layout.setPadding(5);

    MapWidget mapWidget = new MapWidget("mapCountries", "widget-utility");
    final RibbonBarLayout ribbon = new RibbonBarLayout(mapWidget, "ribbon-bar-2");
    ribbon.setSize("100%", "80px");

    layout.addMember(ribbon);
    layout.addMember(mapWidget);
    return layout;
  }
View Full Code Here

  private Canvas getExample4() {
    VLayout layout = new VLayout(5);
    layout.setPadding(5);

    MapWidget mapWidget = new MapWidget("mapWms", "widget-utility");
    final RibbonBarLayout ribbon = new RibbonBarLayout(mapWidget, "ribbon-bar-3");
    ribbon.setStyleName("myRibbon");
    ribbon.setSize("100%", "94px");

    layout.addMember(ribbon);
    layout.addMember(mapWidget);
    return layout;
  }
View Full Code Here

TOP

Related Classes of org.geomajas.widget.utility.smartgwt.client.ribbon.RibbonBarLayout

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.