Package com.volantis.mcs.layouts

Examples of com.volantis.mcs.layouts.Format.visit()


    public Collection getValidNames(Layout layout, DefaultTargetType type) {
        DefaultTargetCollector descriptor =
                new DefaultTargetCollector(type);
        Format format = layout.getRootFormat();
        if (format != null) {
            format.visit(this, descriptor);
        }
        return descriptor.getValues();
    }

    // Javadoc inherited.
View Full Code Here


        // Recurse through the entire layout creating the required context objects.
        // This is only required for those formats which are accessible via PAPI.
        Format root = deviceLayout.getRootFormat();
        if (root != null) {
            try {
                root.visit(formatInstanceCollector, this);
            } catch (FormatVisitorException e) {
                // We don't expect any exceptions, but just in case...
                throw new ExtendedRuntimeException(
                        exceptionLocalizer.format("unexpected-exception"),
                        e);
View Full Code Here

                ContentFinderVisitor contentFinderVisitor =
                        new ContentFinderVisitor();
                try {
                    // Visit the child format searching for content.
                    // The visitation will return true if content is found
                   empty = !child.visit(contentFinderVisitor, null);
                } catch (FormatVisitorException e) {
                    // We don't expect any exceptions, but just in case...
                    throw new RuntimeException(
                            exceptionLocalizer.format("unexpected-exception"),
                            e);
View Full Code Here

        // generate a <region> tag for each one.
        visitor = new HeadFormatVisitor();
        Format rootFormat = getMarinerPageContext().getDeviceLayout().
                getRootFormat();
        try {
            rootFormat.visit(visitor, dom);
        } catch (FormatVisitorException e) {           
            throw new ProtocolException(
                        exceptionLocalizer.format("error-rendering-regions"),
                        e);
        }
View Full Code Here

        };

        Format root = layout.getRootFormat();
        if (root != null) {
            try {
                root.visit(visitor, null);
            } catch (FormatVisitorException e) {
                throw new UndeclaredThrowableException(e);
            }
        }
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.