Examples of RibbonTabLayout


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

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

    MapWidget mapWidget = new MapWidget("mapWmsCountries", "widget-utility");
    final RibbonTabLayout ribbon = new RibbonTabLayout(mapWidget, "ribbon-1");
    ribbon.setSize("100%", "120px");

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

      public void onClick(ClickEvent event) {
        ribbon.getRibbonBar(0).setShowGroupTitles(!ribbon.getRibbonBar(0).isShowGroupTitles());
      }
    });
    toolStrip.addButton(btn1);
    layout.addMember(toolStrip);
    layout.addMember(ribbon);
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.