Package com.smartgwt.client.widgets.layout

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


                "<br><br><b>Severity 3</b> - Minor problem<br>Inability to use a function of the " +
                "system occurs, but it does not seriously affect the user's operations.";

        htmlFlow.setContents(contents);

        final SectionStack sectionStack = new SectionStack();
        sectionStack.setVisibilityMode(VisibilityMode.MULTIPLE);
        sectionStack.setCanReorderSections(true);
        sectionStack.setCanResizeSections(false);
        sectionStack.setWidth(300);
        sectionStack.setHeight(350);


        SectionStackSection section1 = new SectionStackSection("Blue Pawn");
        section1.setExpanded(true);
        section1.addItem(new Img("pieces/48/pawn_blue.png", 48, 48));
        sectionStack.addSection(section1);

        SectionStackSection section2 = new SectionStackSection("HTML Flow");
        section2.setExpanded(true);
        section2.setCanCollapse(true);
        section2.addItem(htmlFlow);
        sectionStack.addSection(section2);

        SectionStackSection section3 = new SectionStackSection("Green Pawn");
        section3.setExpanded(true);
        section3.setCanCollapse(false);
        section3.addItem(new Img("pieces/48/pawn_green.png", 48, 48));
        sectionStack.addSection(section3);

        SectionStackSection section4 = new SectionStackSection("Yellow Piece");
        section4.setExpanded(false);
        section4.addItem(new Img("pieces/48/piece_yellow.png", 48, 48));
        sectionStack.addSection(section4);

        return sectionStack;
    }
View Full Code Here


                "<br><br><b>Severity 3</b> - Minor problem<br>Inability to use a function of the " +
                "system occurs, but it does not seriously affect the user's operations.";

        htmlFlow.setContents(contents);

        final SectionStack sectionStack = new SectionStack();
        sectionStack.setVisibilityMode(VisibilityMode.MULTIPLE);
        sectionStack.setWidth(300);
        sectionStack.setHeight(350);

        SectionStackSection section1 = new SectionStackSection("Blue Pawn");
        section1.setExpanded(true);
        section1.addItem(new Img("pieces/48/pawn_blue.png", 48, 48));
        sectionStack.addSection(section1);

        SectionStackSection section2 = new SectionStackSection("HTML Flow");
        section2.setExpanded(true);
        section2.setCanCollapse(true);
        section2.addItem(htmlFlow);
        sectionStack.addSection(section2);

        SectionStackSection section3 = new SectionStackSection("Green Pawn");
        section3.setExpanded(true);
        section3.setCanCollapse(false);
        section3.addItem(new Img("pieces/48/pawn_green.png", 48, 48));
        sectionStack.addSection(section3);

        SectionStackSection section4 = new SectionStackSection("Yellow Piece");
        section4.setExpanded(false);
        section4.addItem(new Img("pieces/48/piece_yellow.png", 48, 48));
        sectionStack.addSection(section4);

        IButton expandButton = new IButton("Expand Blue");
        expandButton.setWidth(150);
        expandButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                sectionStack.expandSection(0);
            }
        });

        IButton collapseButton = new IButton("Collapse Blue");
        collapseButton.setWidth(150);
        collapseButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                sectionStack.collapseSection(0);
            }
        });

        HLayout layout = new HLayout();
        layout.setMembersMargin(20);
View Full Code Here

              "<br><br><b>Severity 3</b> - Minor problem<br>Inability to use a function of the " +
              "system occurs, but it does not seriously affect the user's operations.";

        htmlFlow.setContents(contents);

        final SectionStack sectionStack = new SectionStack();
        sectionStack.setVisibilityMode(VisibilityMode.MULTIPLE);
        sectionStack.setWidth(300);
        sectionStack.setHeight(350);

        SectionStackSection section1 = new SectionStackSection("Blue Pawn");
        section1.setExpanded(true);
        section1.addItem(new Img("pieces/48/pawn_blue.png", 48, 48));
        sectionStack.addSection(section1);

        SectionStackSection section2 = new SectionStackSection("HTML Flow");
        section2.setExpanded(true);
        section2.setCanCollapse(true);
        section2.addItem(htmlFlow);
        sectionStack.addSection(section2);

        SectionStackSection section3 = new SectionStackSection("Green Cube");
        section3.setExpanded(true);
        section3.setCanCollapse(false);
        section3.addItem(new Img("pieces/48/cube_green.png", 48, 48));
        sectionStack.addSection(section3);

        final SectionStackSection section4 = new SectionStackSection("Yellow Piece");
        section4.setExpanded(false);
        section4.setHidden(true);
        section4.addItem(new Img("pieces/48/piece_yellow.png", 48, 48));
        sectionStack.addSection(section4);

        IButton showButton = new IButton("Show Section");
        showButton.setWidth(150);
        showButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                sectionStack.showSection(3);
            }
        });

        IButton hideButton = new IButton("Hide Section");
        hideButton.setWidth(150);
        hideButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                sectionStack.hideSection(3);
            }
        });

        HLayout layout = new HLayout();
        layout.setMembersMargin(20);
View Full Code Here

    public Canvas getViewPanel() {
        final HelpCanvas help1 = new HelpCanvas("help1");
        final HelpCanvas help2 = new HelpCanvas("help2");

        final SectionStack sectionStack = new SectionStack();
        sectionStack.setVisibilityMode(VisibilityMode.MULTIPLE);
        sectionStack.setWidth(300);
        sectionStack.setHeight(350);

        SectionStackSection section1 = new SectionStackSection("Blue Pawn");
        section1.setExpanded(true);
        section1.setResizeable(false);
        section1.addItem(new Img("pieces/48/pawn_blue.png", 48, 48));
        sectionStack.addSection(section1);

        SectionStackSection section2 = new SectionStackSection("Help 1");
        section2.setExpanded(true);
        section2.setCanCollapse(true);

        section2.addItem(help1);
        sectionStack.addSection(section2);
        SectionStackSection section3 = new SectionStackSection("Help 2");
        section3.setExpanded(true);
        section3.setCanCollapse(true);
        section3.addItem(help2);
        sectionStack.addSection(section3);

        IButton resizeButton = new IButton("Resize Help 1");
        resizeButton.setWidth(150);
        resizeButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
View Full Code Here

  public MessageListCanvas() {

    super();

    this.sectionStack = new SectionStack();

    this.section = new SectionStackSection();
    this.section.setCanCollapse( false );
    this.section.setExpanded( true );
    this.section.setResizeable( true );
View Full Code Here

TOP

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

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.