Examples of RuntimeDeviceTheme


Examples of com.volantis.mcs.runtime.policies.theme.RuntimeDeviceTheme

        applicationContext.setEncodingManager(new EncodingManager());
        applicationContext.setPackager(new DefaultPackager());

        TestVolantis volantisBean = new TestVolantis();

        RuntimeDeviceTheme runtimeDeviceTheme = createRuntimeDeviceTheme();

        final VariantSelectionPolicyMock variantSelectionPolicyMock =
                new VariantSelectionPolicyMock("variantSelectionPolicyMock",
                        expectations);
View Full Code Here

Examples of com.volantis.mcs.runtime.policies.theme.RuntimeDeviceTheme

            public Object perform(MethodActionEvent event) throws Throwable {
                return outputBufferStack.peek();
            }
        }).any();

        RuntimeDeviceTheme runtimeDeviceTheme = createRuntimeDeviceTheme();

        marinerPageContextMock.expects.retrieveThemeStyleSheet(THEME_NAME).
            returns(runtimeDeviceTheme.getCompiledStyleSheet());
       
        marinerPageContextMock.expects.enteringXDIMECPElement().any();
        marinerPageContextMock.expects.insideXDIMECPElement()
                .returns(false).any();
        marinerPageContextMock.expects.exitingXDIMECPElement().any();
View Full Code Here

Examples of com.volantis.mcs.runtime.policies.theme.RuntimeDeviceTheme

        if (themeName == null) {
            throw new IllegalArgumentException("themeName cannot be null");
        }

        try {
            RuntimeDeviceTheme theme = retrieveBestDeviceTheme(themeName);
            if (theme != null) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Retrieved " + theme + " for theme " +
                            themeName + " for device " +
                            getEnvironmentContext().
                                    getSessionDevice().getName());
                }
                styleSheet = theme.getCompiledStyleSheet();
            } else {
                if (logger.isDebugEnabled()) {
                    logger.debug("Failed to retrieve DeviceTheme " +
                            themeName + " for device " +
                            getEnvironmentContext().
View Full Code Here

Examples of com.volantis.mcs.runtime.policies.theme.RuntimeDeviceTheme

                PolicyType.THEME);

        SelectedVariant selected = assetResolver.selectBestVariant(
            reference, null);

        RuntimeDeviceTheme runtimeDeviceTheme = null;

        if (selected != null) {
            runtimeDeviceTheme = (RuntimeDeviceTheme)selected.getOldObject();
        }
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.