Package com.volantis.mcs.devices

Examples of com.volantis.mcs.devices.InternalDevice


        MarinerPageContext pageContext = new TestMarinerPageContext();
        MarinerRequestContext requestContext = new TestMarinerRequestContext();
        ContextInternals.setMarinerPageContext(requestContext, pageContext);
        properties = createPropertyValues();

        InternalDevice internalDevice = InternalDeviceTestHelper.createTestDevice();

        ProtocolBuilder builder = new ProtocolBuilder();
        WapTV5_WMLVersion1_3 protocol = (WapTV5_WMLVersion1_3) builder.build(
                new TestProtocolRegistry.TestWapTV5_WMLVersion1_3Factory(),
                internalDevice);
View Full Code Here


        final DefaultDevice defaultDevice =
            new DefaultDevice("Test Device", new HashMap(), null);
        defaultDevice.setPolicyValue(DevicePolicyConstants.WML_IMAGE_NOSAVE,
                DevicePolicyConstants.WML_IMAGE_NOSAVE__ALT_NO_SAVE);

        InternalDevice device =
            INTERNAL_DEVICE_FACTORY.createInternalDevice(defaultDevice);
        DOMProtocol protocol = (DOMProtocol)builder.build(
            new ProtocolRegistry.WMLVersion1_3Factory(), device);

        return protocol;
View Full Code Here

        device.setFallbackDevice(fallbackDevice);

        final DefaultDevice testDefaultDevice =
            new DefaultDevice("test device", new HashMap(), null);
        testDefaultDevice.setFallbackDevice(device);
        final InternalDevice testDevice =
            INTERNAL_DEVICE_FACTORY.createInternalDevice(testDefaultDevice);
        final LinkedList styles = new LinkedList();
        RuntimeThemeCreator.addParentRules(policyMock, testDevice, styles);
        assertEquals(2, styles.size());
        assertEquals("fallback device rule", styles.get(0));
View Full Code Here

            MCSAttributes attributes) {

        // Do any XHTMLBasic width emulation. This is overridden by XHTMLFull
        // which does it's own which is much more complex.

        InternalDevice device = context.getDevice();

        String emulateWidth = device.getPolicyValue(
                DevicePolicyConstants.PROTOCOL_CSS_EMULATE_WIDTH_TABLE);

        if (emulateWidth == null || emulateWidth.equals(
                DevicePolicyConstants.PROTOCOL_CSS_EMULATE_WIDTH_TABLE__NONE)) {
            // No emulation, do nothing.
View Full Code Here

    // Javadoc Inherited
    protected void doHorizontalRule(DOMOutputBuffer dom,
            HorizontalRuleAttributes attributes) throws ProtocolException {

        InternalDevice device = getMarinerPageContext().getDevice();
        HorizontalRuleEmulator hrEmulator =
                    HorizontalRuleEmulatorFactory.getInstance()
                            .getEmulator(device, attributes, this.supportsCSS);

        Element element = null;
View Full Code Here

TOP

Related Classes of com.volantis.mcs.devices.InternalDevice

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.