Examples of DeviceLayoutContext


Examples of com.volantis.mcs.protocols.DeviceLayoutContext

        ProtocolBuilder builder = new ProtocolBuilder();
        DOMProtocol domProtocol = (DOMProtocol) builder.build(
                new TestProtocolRegistry.TestDOMProtocolFactory(),
                InternalDeviceTestHelper.createTestDevice());
        final DeviceLayoutContext layoutContext = new DeviceLayoutContext();

        pageContext.pushDeviceLayoutContext(layoutContext);
        pageContext.setProtocol(domProtocol);
        domProtocol.setMarinerPageContext(pageContext);
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContext

         try {
             // Create a layout containing a simple region.
             RuntimeDeviceLayout anonymousLayout = createAnonymousRegionLayout();
        
             // Create a context for the layout and push it onto the page context.
             DeviceLayoutContext deviceLayoutContext = new DeviceLayoutContext();
            
             deviceLayoutContext.setMarinerPageContext(pageContext);
             deviceLayoutContext.setDeviceLayout(anonymousLayout);
             deviceLayoutContext.initialise();
             pageContext.pushDeviceLayoutContext(deviceLayoutContext);
        
             // Get an instance of the layout's region.
             Region region = (Region) anonymousLayout.getRootFormat();
             RegionInstance anonymousRegionInstance = (RegionInstance)
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContext

        OutputBuffer anonymousBuffer =
                anonymousRegionInstance.getCurrentBuffer();
        pageContext.popOutputBuffer(anonymousBuffer);
       
        DeviceLayoutContext layoutToPop = pageContext.getDeviceLayoutContext();       
       
        pageContext.popDeviceLayoutContext();               

        ContainerInstance containingInstance =
            pageContext.getCurrentContainerInstance();
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContext

        RuntimeDeviceLayout runtimeDeviceLayout = createRuntimeDeviceLayout();
        SpatialFormatIterator spatialFormatIterator = (SpatialFormatIterator)
                runtimeDeviceLayout.getRootFormat();

        // Initialise the device layout and page contexts.
        DeviceLayoutContext deviceLayoutContext = new DeviceLayoutContext();
//        deviceLayoutContext.setStylingFactory(StylingFactory.getDefaultInstance());
//        deviceLayoutContext.setFormatStylingEngine(
//                new FormatStylingEngineImpl(new StylingEngine() {
//
//            public void startElement(
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContext

        pageContext.pushDeviceLayoutContext(context);
    }

    // Javadoc inherited.
    public void popDeviceLayoutContext() {
        DeviceLayoutContext context = pageContext.popDeviceLayoutContext();

        ImmutablePropertyValues propertyValues =
                context.getInheritableStyleValues();
        FormatStylingEngine stylingEngine = getFormatStylingEngine();
        stylingEngine.popPropertyValues(propertyValues);
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContext

        return pageContext.getDeviceLayoutContext();
    }

    // Javadoc inherited.
    public NDimensionalContainer getFormatInstancesContainer(Format format) {
        DeviceLayoutContext context = getDeviceLayoutContext();
        return context.getFormatInstancesContainer(format);
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContext

        // Store the style properties into the device layout context to allow
        // it to inherit from them.
        ImmutablePropertyValues immutablePropertyValues =
                propertyValues.createImmutablePropertyValues();
        DeviceLayoutContext dlc = pageContext.getDeviceLayoutContext();
        dlc.setInheritableStyleValues(immutablePropertyValues);

        try {
            // Initialise the canvas.
            pageContext.initialise(false, false, null, null,
                    widgetResponseElement.getThemeStyleSheets(), layoutName);
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContext

        try {
            // Create a layout containing a simple region.
            RuntimeDeviceLayout anonymousLayout = createAnonymousRegionLayout();

            // Create a context for the layout and push it onto the page context.
            DeviceLayoutContext deviceLayoutContext = new DeviceLayoutContext();
            deviceLayoutContext.setMarinerPageContext(pageContext);
            deviceLayoutContext.setDeviceLayout(anonymousLayout);
            deviceLayoutContext.initialise();
            pageContext.pushDeviceLayoutContext(deviceLayoutContext);

            // Get an instance of the layout's region.
            Region region = (Region) anonymousLayout.getRootFormat();
            anonymousRegionInstance = (RegionInstance)
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContext

        // Store the style properties into the device layout context to allow
        // it to inherit from them.
        ImmutablePropertyValues immutablePropertyValues =
                propertyValues.createImmutablePropertyValues();
        DeviceLayoutContext dlc = pageContext.getDeviceLayoutContext();
        dlc.setInheritableStyleValues(immutablePropertyValues);

        try {
            // Initialise the canvas, no layout is passed in as that will be
            // pushed on by the parent class.
            pageContext.initialise(false, false, null, null,
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContext

        try {
            // Create a layout containing a simple region.
            RuntimeDeviceLayout anonymousLayout = createAnonymousRegionLayout();

            // Create a context for the layout and push it onto the page context.
            DeviceLayoutContext deviceLayoutContext = new DeviceLayoutContext();
            deviceLayoutContext.setMarinerPageContext(pageContext);
            deviceLayoutContext.setDeviceLayout(anonymousLayout);
            deviceLayoutContext.initialise();
            pageContext.pushDeviceLayoutContext(deviceLayoutContext);

            // Get an instance of the layout's region.
            Region region = (Region) anonymousLayout.getRootFormat();
            anonymousRegionInstance = (RegionInstance)
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.