Package com.volantis.mcs.protocols.layouts

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


                    if (currentFragment == null) {
                        if (logger.isDebugEnabled()) {
                            logger.debug("Page is not being fragmented, " +
                                    "write everything");
                        }
                        FormatInstance childInstance =
                                context.getFormatInstance(
                                        child, instance.getIndex());
                        context.renderFormat(childInstance);
                    }
                    // If this fragment is the one which has been requested
                    // then write out the children.
                    else if (fragment == currentFragment) {

                        if (logger.isDebugEnabled()) {
                            logger.debug("Page is being fragmented, writing " +
                                    "fragment " + fragment.getName());
                        }
                        // Ask the children to write their output.
                        FormatInstance childInstance =
                                context.getFormatInstance(
                                        child, instance.getIndex());
                        context.renderFormat(childInstance);

                        // If this fragment is not the one which has been
View Full Code Here


                if (replicaFormat == null) {
                    throw new IOException(exceptionLocalizer.format(
                            "render-replica-no-replicant", replica));
                } else {
                    FormatInstance replicaFormatInstance =
                            context.getFormatInstance(replicaFormat,
                                    instance.getIndex());
                    context.renderFormat(replicaFormatInstance);
                }
            }
View Full Code Here

                for (int r = 0; r < rows; r += 1) {
                    for (int c = 0; c < columns; c += 1) {
                        index = r * columns + c;
                        Format child = grid.getChildAt(index);
                        if (child != null) {
                            FormatInstance childInstance =
                                    context.getFormatInstance(child,
                                            instance.getIndex());
                            context.renderFormat(childInstance);
                        } else {
                            if (logger.isDebugEnabled()) {
View Full Code Here

                context.setCurrentFormatIndex(childIndex);
                attributes.setDuration(timeValueArray[index]);
                module.writeOpenSlide(attributes);

                FormatInstance childInstance = context.getFormatInstance(
                        child, childIndex);
                context.renderFormat(childInstance);

                module.writeCloseSlide(attributes);
View Full Code Here

            throw new IllegalArgumentException("Format cannot be null");
        }

        final NDimensionalContainer formatContextContainer =
                getFormatInstancesContainer(format);
        FormatInstance formatInstance =
                (FormatInstance) formatContextContainer.get(index);
        if (formatInstance == null) {
            // Create the context using the format instance visitor.
            try {
                formatInstanceCreator.setIndex(index);
View Full Code Here

        if (format == null) {
            return true;
        }

        FormatInstance instance = getFormatInstance(format, currentFormatIndex);

        return instance.isEmpty();
    }
View Full Code Here

        module.writeOpenGridChild(childAttributes);

        Format child = grid.getChildAt(row, column);

        if (child != null) {
            FormatInstance childInstance =
                    context.getFormatInstance(
                            child, gridInstance.getIndex());

            // Now render the child
            context.renderFormat(childInstance);
View Full Code Here

                }

                FormFragment currentFragment =
                        context.getCurrentFormFragment();

                FormatInstance childInstance =
                        context.getFormatInstance(
                                child, instance.getIndex());

                // If the page is not being fragmented, then write out the
                // children.
View Full Code Here

                // Set and store the new child index.
                childIndex = childIndex.setCurrentFormatIndex(position);
                formatRendererContext.setCurrentFormatIndex(childIndex);

                // Handle the spatial cell processing
                FormatInstance instance =
                        formatRendererContext.getFormatInstance(
                                child, childIndex);

                if (!instance.isEmpty()) {
                    updateInstance(instance, row, col);
                }
            }
        }
View Full Code Here

    protected void writeChild(NDimensionalIndex childIndex, int row, int column)
            throws RendererException {

        // Handle the spatial cell processing
        FormatInstance childInstance =
                context.getFormatInstance(
                        child, childIndex);

        context.renderFormat(childInstance);
    }
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.