Package com.volantis.mcs.protocols.capability

Examples of com.volantis.mcs.protocols.capability.CapabilitySupportLevel


        if (attributes != null) {

            Map hrPropertiesAndSupportTypes = getPropertyAndSupportTypes(
                    attributes.getStyles(), hrElementCapability);

            CapabilitySupportLevel hrSupportLevel =
                    hrElementCapability.getElementSupportLevel();           

            if (hrPropertiesAndSupportTypes != null &&
                    emulationRequired(hrPropertiesAndSupportTypes,
                                      hrSupportLevel)) {

                if (hrSupportLevel == CapabilitySupportLevel.PARTIAL) {
                    emulator = investigateHREmulator(hrPropertiesAndSupportTypes);
                } else if (!supportsCSS) {
                // Does the device support the bgcolor attribute?
                emulator = new TableAttrHREmulator();
                }

                if (emulator == null) {
                    DeviceElementCapability divElementCapability =
                    deviceCapabilityManager.getDeviceElementCapability("div", true);

                    CapabilitySupportLevel divSupportLevel =
                            divElementCapability.getElementSupportLevel();
                    if (divSupportLevel == CapabilitySupportLevel.FULL) {
                        emulator = new HorizontalRuleEmulatorWithBorderStylingOnDIV(
                                HorizontalRuleEmulatorWithBorderStylingOnDIV.
                                    BORDER_BOTTOM_PROPERTY);
View Full Code Here


                propertiesAndSupportTypes.size() > 0) {
            if (hrSupportLevel == CapabilitySupportLevel.PARTIAL) {
                for (Iterator iterator =
                        propertiesAndSupportTypes.values().iterator();
                     !emulationRequired && iterator.hasNext();) {
                    CapabilitySupportLevel capabilitySupportLevel =
                            (CapabilitySupportLevel) iterator.next();
                    if (capabilitySupportLevel == CapabilitySupportLevel.NONE) {
                        emulationRequired = true;
                    }
                }
View Full Code Here

            String currentElementName = elements[currentElementIndex];

            DeviceElementCapability currentElementCapability =
                    deviceCapabilityManager.getDeviceElementCapability(
                            currentElementName, true);
            CapabilitySupportLevel currentElementsSupportForStyleProperty =
                currentElementCapability.getSupportType(styleProperty);

            // Note that we can safely use "==", rather than Object.equals(),
            // as CapabilitySupportLevel is a type safe enumeration
            // and each enumeration value is static.
View Full Code Here

        boolean keywordSupported = false;

        DeviceElementCapability elementCapability =
            capabilities.getDeviceElementCapability(elementName);

        CapabilitySupportLevel propertySupportType =
            elementCapability.getSupportType(getStyleProperty());

        // For compatibility with previous versions we assume keyword
        // is supported only if compatibility level is FULL.
        if (propertySupportType != null) {
            if (backwordCompatible) {
                keywordSupported =
                    (propertySupportType == CapabilitySupportLevel.FULL);
            } else {
                if (propertySupportType == CapabilitySupportLevel.FULL) {
                    keywordSupported = true;
                } else if (propertySupportType == CapabilitySupportLevel.NONE) {
                    keywordSupported = false;
                } else {
                    CapabilitySupportLevel keywordSupportType =
                    capabilities.getDeviceCSSCapability().getKeywordSupportType(
                            getStyleProperty(), styleKeyword);
                    keywordSupported =
                        (keywordSupportType != CapabilitySupportLevel.NONE);
                }
View Full Code Here

        boolean attributeSupported = true;

        DeviceElementCapability elementCapability =
            capabilities.getDeviceElementCapability(elementName);

        CapabilitySupportLevel attributeSupportType =
            elementCapability.getSupportType(attributeName);

        if (attributeSupportType != null) {
            if (attributeSupportType == CapabilitySupportLevel.FULL) {
                attributeSupported = true;
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.capability.CapabilitySupportLevel

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.