Examples of writeFragmentLink()


Examples of com.volantis.mcs.protocols.VolantisProtocol.writeFragmentLink()

        final VolantisProtocol protocol = getProtocol();

        MethodInvoker invoker = new MethodInvoker() {
            public void invoke() throws Exception {
                protocol.writeFragmentLink(attributes);
            }
        };
        String expecting = getExpectedWriteFragmentLinkResult();
        ProtocolIntegrationTestHelper.doTest(expectations, protocol, invoker, expecting);
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.VolantisProtocol.writeFragmentLink()

        a.setLinkText(linkBuffer);

        VolantisProtocol protocol = pageContext.getProtocol();
        try {
            protocol.writeFragmentLink(a);
        } catch (ProtocolException pe) {
            throw new RendererException(
                    exceptionLocalizer.format("renderer-error", destination),
                    pe);
        }
View Full Code Here

Examples of com.volantis.mcs.protocols.renderer.layouts.FragmentLinkWriter.writeFragmentLink()

        FragmentLinkWriter writer = new DefaultFragmentLinkWriter(pageContext);
        Fragment source = new Fragment(canvasLayout);
        Fragment destination = new Fragment(canvasLayout);

        // Render and check that we have the default fragment style.
        writer.writeFragmentLink(formatRendererContext, source, destination,
                false, false);
        compareStringToBuffer("<fragmentLink styleClass=\"fraglinks\"/>",
                pageContext.getCurrentOutputBuffer(),
                "Fragment link should have default 'fraglinks' style");
View Full Code Here

Examples of com.volantis.mcs.protocols.renderer.layouts.FragmentLinkWriter.writeFragmentLink()

        // set the fragment link class style to 'test'
        source.setAttribute(FormatConstants.FRAGMENT_LINK_STYLE_CLASS_ATTRIBUTE, "test");

        // Re-render and check that we have the correct 'test' fragment style.
        ((DOMOutputBuffer) pageContext.getCurrentOutputBuffer()).clear();
        writer.writeFragmentLink(formatRendererContext, source, destination,
                false, false);
        compareStringToBuffer("<fragmentLink styleClass=\"test\"/>",
                pageContext.getCurrentOutputBuffer(),
                "Fragment link should have explicit 'test' style");
View Full Code Here

Examples of com.volantis.mcs.protocols.renderer.layouts.FragmentLinkWriter.writeFragmentLink()

        FragmentLinkWriter writer = new DefaultFragmentLinkWriter(pageContext);
        Fragment source = new Fragment(canvasLayout);
        Fragment destination = new Fragment(canvasLayout);

        // Render and check that we have the default fragment style.
        writer.writeFragmentLink(formatRendererContext, source, destination,
                false, false);
        compareStringToBuffer("<fragmentLink styleClass=\"fraglinks\"/>",
                pageContext.getCurrentOutputBuffer(),
                "Fragment link should have default 'fraglinks' style");
View Full Code Here

Examples of com.volantis.mcs.protocols.renderer.layouts.FragmentLinkWriter.writeFragmentLink()

        source.setAttribute(FormatConstants.FRAGMENT_LINK_STYLE_CLASS_ATTRIBUTE,
                            "test");

        // Re-render and check that we have the correct 'test' fragment style.
        ((DOMOutputBuffer) pageContext.getCurrentOutputBuffer()).clear();
        writer.writeFragmentLink(formatRendererContext, source, destination,
                false, false);
        compareStringToBuffer("<fragmentLink styleClass=\"test\"/>",
                pageContext.getCurrentOutputBuffer(),
                "Fragment link should have explicit 'test' style");
View Full Code Here

Examples of com.volantis.mcs.protocols.renderer.layouts.FragmentLinkWriter.writeFragmentLink()

                        // somewhere rather than in the parent / peer link
                        // list.
                        final FragmentLinkWriter fragmentLinkWriter =
                                context.getFragmentLinkWriter();

                        fragmentLinkWriter.writeFragmentLink(
                                context, currentFragment, fragment,
                                false, false);
                    }
                }
            } else {
View Full Code Here

Examples of com.volantis.mcs.protocols.renderer.layouts.FragmentLinkWriter.writeFragmentLink()

        FragmentLinkWriter fragmentLinkWriter =
                context.getFragmentLinkWriter();

        if (enclosingFragment != null) {
            if (fragment.isParentLinkFirst()) {
                fragmentLinkWriter.writeFragmentLink(
                        context, fragment, enclosingFragment, true, true);
                writePeerFragmentLinks(context, fragment);
            } else {
                writePeerFragmentLinks(context, fragment);
                fragmentLinkWriter.writeFragmentLink(
View Full Code Here

Examples of com.volantis.mcs.protocols.renderer.layouts.FragmentLinkWriter.writeFragmentLink()

                fragmentLinkWriter.writeFragmentLink(
                        context, fragment, enclosingFragment, true, true);
                writePeerFragmentLinks(context, fragment);
            } else {
                writePeerFragmentLinks(context, fragment);
                fragmentLinkWriter.writeFragmentLink(
                        context, fragment, enclosingFragment, true, true);
            }
        }
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.renderer.layouts.FragmentLinkWriter.writeFragmentLink()

                    if (!peerFragment.getName().equals(fragment.getName())) {
                        if (logger.isDebugEnabled()) {
                            logger.debug("Adding link to peer fragment"
                                         + peerFragment.getName());
                        }
                        fragmentLinkWriter.writeFragmentLink(
                                context, fragment, peerFragment, true, false);
                    }
                }
            }
        }
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.