Examples of FormatReference


Examples of com.volantis.mcs.protocols.FormatReference

        String containerName = getSpecifiedContainerName(container);

        if (container instanceof StyleFormatReference) {
            StyleFormatReference styleFormatReference =
                    (StyleFormatReference) container;
            FormatReference reference = styleFormatReference.getReference();

            // Try and find the format instance.
            Format format = pageContext.getFormat(reference.getStem(),
                    FormatNamespace.CONTAINER);
            if (format != null) {
                instance = (ContainerInstance) pageContext.getFormatInstance(
                        format, reference.getIndex());
            }

        } else if (containerName != null) {

            final ContainerInstance currentContainer =
View Full Code Here

Examples of com.volantis.mcs.protocols.FormatReference

            indeces[i] = getIntValue(values[i + 1]);
        }

        FormatReferenceFinder formatReferenceFinder =
                pageContext.getFormatReferenceFinder();
        FormatReference reference =
                formatReferenceFinder.getFormatReference(name, indeces);

        return new FormatReferenceValueImpl(
                expressionContext.getFactory(), reference);
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.FormatReference

        // Try and find the pane with the specified name, if it could not be
        // found then return and skip the element body.
        String paneName = attributes.getName();
        if (paneName != null) {

            FormatReference formatRef =
                    FormatReferenceParser.parsePane(paneName, pageContext);
            Pane pane = pageContext.getPane(formatRef.getStem());
            NDimensionalIndex paneIndex = formatRef.getIndex();

            if (pane == null) {
                skipped = true;
                return SKIP_ELEMENT_BODY;
            }
View Full Code Here

Examples of com.volantis.mcs.protocols.FormatReference

     * @return true if the menu is correctly configured to perform automatic
     *         iteration allocation, false otherwise
     */
    public boolean isAutoIterationAllocating(Menu menu) {
        boolean result = false;
        FormatReference menuReference = menu.getPane();

        if (menuReference != null) {
            int dimensions = menuReference.getIndex().getDimensions();

            if ((dimensions > 0) &&
                    (menuReference.getIndex().getSpecified() <
                    dimensions)) {
                // The menu is targeted at a pane that is spatially
                // iterated but not fully specified
                final PropertyValues properties = menu.getElementDetails().
                        getStyles().getPropertyValues();
View Full Code Here

Examples of com.volantis.mcs.protocols.FormatReference

            if (com.volantis.mcs.protocols.NativeMarkupAttributes.PANE.
                    equals(target)) {
                if (paneName != null && !paneName.equals("")) {
                    // Deal with possibility that the native markup element is
                    // in a format iterator
                    FormatReference formatRef =
                            FormatReferenceParser
                                    .parsePane(paneName, pageContext);
                    Pane pane = pageContext.getPane(formatRef.getStem());
                    NDimensionalIndex paneIndex = formatRef.getIndex();
                    pattributes.setPane(formatRef.getStem());

                    if (pane == null) {
                        skipped = true;
                        return SKIP_ELEMENT_BODY;
                    }
View Full Code Here

Examples of com.volantis.mcs.protocols.FormatReference

            indeces[i] = getArgumentAsInt(name, arguments, i + 1);
        }

        FormatReferenceFinder finder = (FormatReferenceFinder)
                context.getProperty(FormatReferenceFinder.class);
        FormatReference reference = finder.getFormatReference(
                containerName, indeces);

        return new StyleFormatReference(reference);
    }
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.