Package com.volantis.mcs.layouts

Examples of com.volantis.mcs.layouts.Region


    public void testAttributesPassed() throws Exception {
        RendererTestProtocol protocol = new RendererTestProtocol(pageContext);
        pageContext.setProtocol(protocol);

        // Create a region
        Region region = new Region((CanvasLayout) layout);

        RegionInstance instance =
                (RegionInstance) dlContext.getFormatInstance(region,
                NDimensionalIndex.ZERO_DIMENSIONS);
        RegionContent content = new RegionContent() {
View Full Code Here


        RendererTestProtocol protocol = new RendererTestProtocol(pageContext);
        pageContext.setProtocol(protocol);

        // Create a region
        Region region = new Region((CanvasLayout) layout);

        RegionInstance instance =
                (RegionInstance) dlContext.getFormatInstance(region,
                NDimensionalIndex.ZERO_DIMENSIONS);
View Full Code Here

                    exceptionLocalizer.format("region-name-missing"));
        }

        FormatReference formatRef =
                FormatReferenceParser.parse(regionName, pageContext);
        Region region = pageContext.getRegion(formatRef.getStem());
        NDimensionalIndex regionIndex = formatRef.getIndex();

        if (region == null) {
            logger.info("region-missing", new Object[]{attributes.getName()});
            skipped = true;
View Full Code Here

             deviceLayoutContext.setDeviceLayout(anonymousLayout);
             deviceLayoutContext.initialise();
             pageContext.pushDeviceLayoutContext(deviceLayoutContext);
        
             // Get an instance of the layout's region.
             Region region = (Region) anonymousLayout.getRootFormat();
             RegionInstance anonymousRegionInstance = (RegionInstance)
                     pageContext.getFormatInstance(region,
                             NDimensionalIndex.ZERO_DIMENSIONS);
        
             return anonymousRegionInstance;
View Full Code Here

    // javadoc inherited
    public void render(final FormatRendererContext context, final FormatInstance instance)
            throws RendererException {
        if (!instance.isEmpty()) {
            Region region = (Region) instance.getFormat();
            RegionInstance regionInstance = (RegionInstance) instance;

            if (logger.isDebugEnabled()) {
                logger.debug("Rendering region " + region.getName()
                             + " in '" + context.getInclusionPath() + "'");

                // Get the protocol
            }
View Full Code Here

            deviceLayoutContext.setDeviceLayout(anonymousLayout);
            deviceLayoutContext.initialise();
            pageContext.pushDeviceLayoutContext(deviceLayoutContext);

            // Get an instance of the layout's region.
            Region region = (Region) anonymousLayout.getRootFormat();
            anonymousRegionInstance = (RegionInstance)
                    pageContext.getFormatInstance(region,
                            NDimensionalIndex.ZERO_DIMENSIONS);

            // Push the region instance onto the container stack.
View Full Code Here

            deviceLayoutContext.setDeviceLayout(anonymousLayout);
            deviceLayoutContext.initialise();
            pageContext.pushDeviceLayoutContext(deviceLayoutContext);

            // Get an instance of the layout's region.
            Region region = (Region) anonymousLayout.getRootFormat();
            anonymousRegionInstance = (RegionInstance)
                    pageContext.getFormatInstance(region,
                            NDimensionalIndex.ZERO_DIMENSIONS);

            // Push the region instance onto the container stack.
View Full Code Here

         //       outermost = outermost.getIncludingPageContext();
         //   }

            // The value is the name of a region, if the region does not exist then
            // we do not generate a target.
            Region region = outermost.getRegion(target);
            if (region != null) {
                if ((target = region.getDestinationArea()) != null) {
                    goElement.setAttribute("target", target);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.layouts.Region

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.