Package com.volantis.mcs.protocols.layouts

Examples of com.volantis.mcs.protocols.layouts.FormatInstance


                // Write the format tree

            }
            Format root = deviceLayout.getRootFormat();
            if (root != null) {
                FormatInstance rootInstance =
                        formatRendererContext.getFormatInstance(
                                root, index);
                formatRendererContext.renderFormat(rootInstance);
            } else {
                if (logger.isDebugEnabled()) {
                    logger.debug("Empty layout");
                }
            }

        } else {
            if (logger.isDebugEnabled()) {
                logger.debug("Writing out the fragment named "
                             + fragment.getName() + " to the page");
            }
            // Write out the fragment and the fragment link list which contains
            // links to the fragment's parent and peer fragments.
            if (!module.getSupportsFragmentLinkListTargetting()) {
                // Write out parent/peer fragment link list *after* the fragment.
                // This is necessary as the fragment link list is being appended to
                // the existing content and must therefore come after it.

                // First, write out the fragment itself
                FormatInstance fragmentInstance =
                        formatRendererContext.getFormatInstance(
                                fragment, index);
                formatRendererContext.renderFormat(fragmentInstance);

                // Then, write out the parent/peer fragment link list.
                writeFragmentLinkList(fragment, formatRendererContext);
            } else {
                // Write out parent/peer fragment link list *before* the fragment.
                // This is necessary as the fragment link list is going into it's
                // own pane which would be empty if we tried to render it before
                // creating them.

                // First, write out parent/peer fragment link list.
                writeFragmentLinkList(fragment, formatRendererContext);
                // Then, write out the fragment itself.
                FormatInstance fragmentInstance =
                        formatRendererContext.getFormatInstance(
                                fragment, index);

                formatRendererContext.renderFormat(fragmentInstance);
            }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.layouts.FormatInstance

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.