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

Examples of org.geomajas.widget.utility.client.ribbon.RibbonColumn


  private void buildGui(RibbonBarInfo barInfo, MapWidget mapWidget) {
    for (RibbonGroupInfo groupInfo : barInfo.getGroups()) {
      RibbonGroupLayout group = new RibbonGroupLayout(groupInfo.getTitle());
      for (RibbonColumnInfo columnInfo : groupInfo.getColumns()) {
        RibbonColumn ribbonColumn = RibbonColumnRegistry.getRibbonColumn(columnInfo.getType(),
            columnInfo.getTools(), columnInfo.getParameters(), mapWidget);
        if (ribbonColumn != null) {
          group.addColumn(ribbonColumn);
        }
      }
View Full Code Here


   * @return {@link RibbonColumn} or null when key not found.
   */
  public static RibbonColumn getRibbonColumn(String key, List<ClientToolInfo> tools, List<Parameter> parameters,
      MapWidget mapWidget) {
    RibbonColumnCreator ribbonColumnCreator = REGISTRY.get(key);
    RibbonColumn column = ribbonColumnCreator.create(tools, mapWidget);
    if (parameters != null) {
      for (Parameter parameter : parameters) {
        column.configure(parameter.getName(), parameter.getValue());
      }
    }
    return column;
  }
View Full Code Here

TOP

Related Classes of org.geomajas.widget.utility.client.ribbon.RibbonColumn

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.