Package com.smartgwt.client.widgets.layout

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


    sectionStack.setCanReorderSections(true);
    sectionStack.setCanResizeSections(false);
    sectionStack.setSize("250px", "100%");

    // Overview map layout:
    SectionStackSection section1 = new SectionStackSection("Overview map");
    section1.setExpanded(true);
    overviewMap = new OverviewMap("mapOverview", "app", map, false, true);
    overviewMap.setTargetMaxExtentRectangleStyle(new ShapeStyle("#888888", 0.3f, "#666666", 0.75f, 2));
    overviewMap.setRectangleStyle(new ShapeStyle("#6699FF", 0.3f, "#6699CC", 1f, 2));
    section1.addItem(overviewMap);
    sectionStack.addSection(section1);

    // LayerTree layout:
    SectionStackSection section2 = new SectionStackSection("Layer tree");
    section2.setExpanded(true);
    LayerTree layerTree = new LayerTree(map);
    section2.addItem(layerTree);
    sectionStack.addSection(section2);

    // Legend layout:
    SectionStackSection section3 = new SectionStackSection("Legend");
    section3.setExpanded(true);
    legend = new Legend(map.getMapModel());
    legend.setBackgroundColor("#FFFFFF");
    section3.addItem(legend);
    sectionStack.addSection(section3);

    // Putting the right side layouts together:
    layout.addMember(sectionStack);
View Full Code Here


    sectionStack.setCanReorderSections(true);
    sectionStack.setCanResizeSections(false);
    sectionStack.setSize("250px", "100%");

    // Overview map layout:
    SectionStackSection section1 = new SectionStackSection("Overview map");
    section1.setExpanded(true);
    overviewMap = new OverviewMap("mapOverview", "app", map, false, true);
    overviewMap.setTargetMaxExtentRectangleStyle(new ShapeStyle("#888888", 0.3f, "#666666", 0.75f, 2));
    overviewMap.setRectangleStyle(new ShapeStyle("#6699FF", 0.3f, "#6699CC", 1f, 2));
    section1.addItem(overviewMap);
    sectionStack.addSection(section1);

    // LayerTree layout:
    SectionStackSection section2 = new SectionStackSection("Layer tree");
    section2.setExpanded(true);
    LayerTree layerTree = new LayerTree(map);
    section2.addItem(layerTree);
    sectionStack.addSection(section2);

    // Legend layout:
    SectionStackSection section3 = new SectionStackSection("Legend");
    section3.setExpanded(true);
    legend = new Legend(map.getMapModel());
    legend.setBackgroundColor("#FFFFFF");
    section3.addItem(legend);
    sectionStack.addSection(section3);

    // Putting the right side layouts together:
    layout.addMember(sectionStack);
View Full Code Here

    sectionStack.setCanReorderSections(true);
    sectionStack.setCanResizeSections(false);
    sectionStack.setSize("250px", "100%");

    // Overview map layout:
    SectionStackSection section1 = new SectionStackSection("Overview map");
    section1.setExpanded(true);
    overviewMap = new OverviewMap("mapOverview", "app", map, false, true);
    section1.addItem(overviewMap);
    sectionStack.addSection(section1);

    // LayerTree layout:
    SectionStackSection section2 = new SectionStackSection("Layer tree");
    section2.setExpanded(true);
    LayerTree layerTree = new LayerTree(map);
    section2.addItem(layerTree);
    sectionStack.addSection(section2);

    // Legend layout:
    SectionStackSection section3 = new SectionStackSection("Legend");
    section3.setExpanded(true);
    legend = new Legend(map.getMapModel());
    section3.addItem(legend);
    sectionStack.addSection(section3);

    // Putting the right side layouts together:
    layout.addMember(sectionStack);
View Full Code Here

    sectionStack.setCanReorderSections(true);
    sectionStack.setCanResizeSections(false);
    sectionStack.setSize("250px", "100%");

    // Overview map layout:
    SectionStackSection section1 = new SectionStackSection("Overview map");
    section1.setExpanded(true);
    overviewMap = new OverviewMap("mapOverview", "app", map, false, true);
    section1.addItem(overviewMap);
    sectionStack.addSection(section1);

    // LayerTree layout:
    SectionStackSection section2 = new SectionStackSection("Layer tree");
    section2.setExpanded(true);
    LayerTree layerTree = new LayerTree(map);
    section2.addItem(layerTree);
    sectionStack.addSection(section2);

    // Legend layout:
    SectionStackSection section3 = new SectionStackSection("Legend");
    section3.setExpanded(true);
    legend = new Legend(map.getMapModel());
    section3.addItem(legend);
    sectionStack.addSection(section3);

    // Putting the right side layouts together:
    layout.addMember(sectionStack);
View Full Code Here

    sectionStack.setCanReorderSections(true);
    sectionStack.setCanResizeSections(false);
    sectionStack.setSize("250px", "100%");

    // Overview map layout:
    SectionStackSection section1 = new SectionStackSection("Overview map");
    section1.setExpanded(true);
    overviewMap = new OverviewMap("mapOverview", "app", mapWidget, false, true);
    section1.addItem(overviewMap);
    sectionStack.addSection(section1);

    // LayerTree layout:
    SectionStackSection section2 = new SectionStackSection("Layer tree");
    section2.setExpanded(true);
    LayerTree layerTree = new LayerTree(mapWidget);
    section2.addItem(layerTree);
    sectionStack.addSection(section2);

    // Legend layout:
    SectionStackSection section3 = new SectionStackSection("Legend");
    section3.setExpanded(true);
    legend = new Legend(mapWidget.getMapModel());
    section3.addItem(legend);
    sectionStack.addSection(section3);

    // Putting the right side layouts together:
    layout.addMember(sectionStack);
View Full Code Here

    Img legend = LayerIconHelper.getLegendImage(layer);
    if (legend != null) {
      SectionStack sectionStack = new SectionStack();
      sectionStack.setWidth(MAX_LEGEND_WIDTH);
      sectionStack.setHeight(MAX_LEGEND_HEIGHT);
      SectionStackSection section = new SectionStackSection(messages.layerInfoLayerInfoLegend());
      section.setCanCollapse(false);
      section.setExpanded(true);

      legend.setOverflow(Overflow.AUTO);
      legend.setImageType(ImageStyle.NORMAL);

      section.setItems(legend);
      sectionStack.setSections(section);
      return sectionStack;
    } else {
      return null;
    }
View Full Code Here

    sectionStack.setCanReorderSections(true);
    sectionStack.setCanResizeSections(false);
    sectionStack.setSize("300px", "100%");

    // LayerTree layout:
    SectionStackSection section2 = new SectionStackSection("Layer tree with legend");
    section2.setExpanded(true);
    layerTree = new LayerTreeWithLegend(map);
    section2.addItem(layerTree);
    sectionStack.addSection(section2);

   
    // Putting the right side layouts together:
    layout.addMember(sectionStack);

    // ---------------------------------------------------------------------
    // Create the right-side (overview map, layer-tree, legend):
    // ---------------------------------------------------------------------
    final SectionStack originalSectionStack = new SectionStack();
    originalSectionStack.setShowEdges(true);
    originalSectionStack.setVisibilityMode(VisibilityMode.MULTIPLE);
    originalSectionStack.setCanReorderSections(true);
    originalSectionStack.setCanResizeSections(false);
    originalSectionStack.setSize("250px", "100%");

    // Overview map layout:
    SectionStackSection osection1 = new SectionStackSection("Overview map");
    osection1.setExpanded(true);
    overviewMap = new OverviewMap("mapOverview", "app", map, false, true);
    osection1.addItem(overviewMap);
    originalSectionStack.addSection(osection1);

    // LayerTree layout:
    SectionStackSection osection2 = new SectionStackSection("Layer tree");
    osection2.setExpanded(true);
    LayerTree lt = new LayerTree(map);
    osection2.addItem(lt);
    originalSectionStack.addSection(osection2);

    // Legend layout:
    SectionStackSection osection3 = new SectionStackSection("Legend");
    osection3.setExpanded(true);
    Legend l = new Legend(map.getMapModel());
    osection3.addItem(l);
    originalSectionStack.addSection(osection3);

    // Putting the right side layouts together:
    layout.addMember(originalSectionStack);
View Full Code Here

                    CoreGUI.goToView(viewPath);
                }
            }
        });

        SectionStackSection section = new SectionStackSection(sectionTitle);
        section.setResizeable(true);
        section.setExpanded(true);
        section.addItem(treeGrid);

        this.sectionStack.addSection(section);
    }
View Full Code Here

    private SectionStack buildItemsSectionStack() {
        SectionStack itemsSectionStack = new SectionStack();
        itemsSectionStack.setWidth(300);
        itemsSectionStack.setHeight(250);

        SectionStackSection itemsSection = new SectionStackSection(getItemTitle());
        itemsSection.setCanCollapse(false);
        itemsSection.setExpanded(true);
        itemsSection.setItems(this.listGrid);

        itemsSectionStack.addSection(itemsSection);

        return itemsSectionStack;
    }
View Full Code Here

       
        init();
    }

    public void init() {
        bundlesSection = new SectionStackSection(MSG.common_title_bundles());
        bundlesListView = new BundlesListView(globalPermissions);
        bundlesSection.addItem(bundlesListView);
        bundlesSection.setExpanded(true);
        this.addSection(bundlesSection);

        bundleGroupsSection = new SectionStackSection(MSG.common_title_bundleGroups());
        bundleGroupsListView = new BundleGroupsListView(globalPermissions);
        bundleGroupsSection.addItem(bundleGroupsListView);
        bundleGroupsSection.setExpanded(true);
        this.addSection(bundleGroupsSection);
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.layout.SectionStackSection

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.