Package com.volantis.mcs.protocols.menu.builder

Examples of com.volantis.mcs.protocols.menu.builder.MenuModelBuilder.endText()


   
            builder.startText();
            DOMOutputBuffer dom = new TestDOMOutputBuffer();
            dom.writeText(text);
            builder.setText(dom);
            builder.endText();
           
            builder.endLabel();
   
            builder.endMenuItem();
           
View Full Code Here


        // Set the text.
        buffer = new TestDOMOutputBuffer();
        buffer.writeText("item 1");
        builder.setText(buffer);

        builder.endText();
        builder.endLabel();

        builder.endMenuItem();

        // Create the second menu item explicitly targeted at a different pane.
View Full Code Here

        // Set the text.
        buffer = new TestDOMOutputBuffer();
        buffer.writeText("item 2");
        builder.setText(buffer);

        builder.endText();
        builder.endLabel();

        builder.endMenuItem();

        builder.endMenu();
View Full Code Here

        builder.startText();
        DOMOutputBuffer dom = new TestDOMOutputBuffer();
        dom.writeText(text);
        builder.setText(dom);
        builder.endText();

        builder.startIcon();
        // this is required or we crash trying to extract the element name in
        // the renderer
        builder.setElementDetails("menu-icon", null,
View Full Code Here

        OutputBuffer buffer = new TestDOMOutputBuffer();
        buffer.writeText("text");

        builder.setText(buffer);
        builder.endText();
        builder.endLabel();
        builder.setHref(new LiteralLinkAssetReference("href.xml"));
        builder.endMenuItem();
        builder.endMenu();
View Full Code Here

        OutputBuffer buffer = new TestDOMOutputBuffer();
        buffer.writeText("text");

        builder.setText(buffer);
        builder.endText();
        builder.endLabel();
        builder.setHref(new LiteralLinkAssetReference("href.xml"));
        builder.endMenuItem();
        builder.endMenuGroup();
        builder.endMenu();
View Full Code Here

                    getOutputBufferFactory().createOutputBuffer();
            text.writeText(attributes.getText());
            builder.setText(text);

            // End the menu text
            builder.endText();

            // OK, get the attributes from PAPI
            String onImage = attributes.getOnImage();
            String offImage = attributes.getOffImage();
            String rolloverImage = attributes.getRolloverImage();
View Full Code Here

            }

            // Set up the text
            builder.startText();
            builder.setText(content);
            builder.endText();

            // Complete the label
            builder.endLabel();
        } catch (BuilderException e) {
            throw new PAPIException(e);
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.