Examples of LiteralLinkAssetReference


Examples of com.volantis.mcs.protocols.assets.implementation.LiteralLinkAssetReference

        dom.initialise();
        XFFormAttributes attributes = new XFFormAttributes();
        final Styles styles = StylesBuilder.getInitialValueStyles();
        attributes.setStyles(styles);
        attributes.setFormData(formInstance);
        attributes.setAction(new LiteralLinkAssetReference("testaction"));
        attributes.setMethod("post");
        attributes.setFormSpecifier(formSpecifier);
        attributes.setFormDescriptor(fd);
        FormFragment formFragment = new FormFragment(layout);
        formFragment.setName(fragmentName);
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralLinkAssetReference

        buffer.appendEncoded(text);

        builder.startMenuItem();

        builder.setHref(new LiteralLinkAssetReference("href"));

        if (pane != null) {
            builder.setPane(pane);
        }
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralLinkAssetReference

        XFFormAttributes formAttributes = new XFFormAttributes();
        Form form = new Form(new CanvasLayout());
        FormInstance formInstance = new FormInstance(
                NDimensionalIndex.ZERO_DIMENSIONS);
        formInstance.setFormat(form);
        formAttributes.setAction(new LiteralLinkAssetReference("testaction"));
        formAttributes.setFormData(formInstance);
        formAttributes.setMethod("post");
        formAttributes.setFormSpecifier("test");
        attributes.setFormAttributes(formAttributes);
        attributes.setName("TestAction");
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralLinkAssetReference

        public SimpleMenuItem() {
        }

        // JavaDoc inherited
        public LinkAssetReference getHref() {
            return new LiteralLinkAssetReference("some/relative/path");
        }
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralLinkAssetReference

        buffer.writeText("text");

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

        return builder.getCompletedMenuModel();
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralLinkAssetReference

        // Create the menu item to test.
        ConcreteElementDetails elementDetails = createTestElementDetails();
        ConcreteMenuItem item = new ConcreteMenuItem(
                elementDetails, new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference("the href"));
        item.setShortcut(new LiteralTextAssetReference("the shortcut"));
        item.setTitle("the title");
       
        // Create the renderer we are to test.
        MenuItemBracketingRenderer renderer =
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralLinkAssetReference

        // Create the menu item to test.
        ConcreteElementDetails elementDetails = createTestElementDetails();
        ConcreteMenuItem item = new ConcreteMenuItem(
                elementDetails, new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference("the href"));
       
        // Create the renderer we are to test.
        MenuItemBracketingRenderer renderer =
                new DefaultAnchorMenuItemRenderer(
                        new TestDeprecatedAnchorOutput(), true, null);
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralLinkAssetReference

        // Create the menu item to test.
        ConcreteElementDetails elementDetails = new ConcreteElementDetails();
        elementDetails.setElementName("the tag name");
        ConcreteMenuItem item = new ConcreteMenuItem(
                elementDetails, new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference("the href"));
       
        // Create the renderer we are to test.
        MenuItemBracketingRenderer renderer =
                new DefaultAnchorMenuItemRenderer(
                        new TestDeprecatedAnchorOutput(), false,
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralLinkAssetReference

        ConcreteElementDetails elementDetails = new ConcreteElementDetails();
        elementDetails.setElementName(elementTagName);
        elementDetails.setStyles(StylesBuilder.getEmptyStyles());
        ConcreteMenuItem item = new ConcreteMenuItem(
                elementDetails, new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference("the href"));
        item.setSegment("anotherframe");

        // Create the renderer to test
        MenuItemBracketingRenderer renderer =
                new DefaultAnchorMenuItemRenderer(
View Full Code Here

Examples of com.volantis.mcs.protocols.assets.implementation.LiteralLinkAssetReference

        // Create the menu item to test.
        ConcreteElementDetails elementDetails = createTestElementDetails();
        ConcreteMenuItem item =
                new ConcreteMenuItem(elementDetails, new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference("http://www.bbc.co.uk"));

        // Create the renderer we are to test.
        DefaultAnchorMenuItemRenderer renderer =
                new DefaultAnchorMenuItemRenderer(
                        new TestDeprecatedAnchorOutput(), true, null);
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.