Examples of WhiteSpaceFixStrategyFactory


Examples of com.volantis.mcs.protocols.WhiteSpaceFixStrategyFactory

    public WhitespaceFixingVisitor(Set inlineStyleElements,
                                   Set inlineLinkElements,
                                   DOMProtocol protocol) {
        this.inlineStyleElements = inlineStyleElements;
        this.inlineLinkElements = inlineLinkElements;
        WhiteSpaceFixStrategyFactory factory =
                WhiteSpaceFixStrategyFactory.getInstance();

        String openAnchorStrategyRule =
                protocol.getMarinerPageContext().getDevicePolicyValue(
                        DevicePolicyConstants.FIX_FOR_OPEN_ANCHOR_ELEMENT);
        openAnchorStrategy =
                factory.getWhitespaceFixStrategy(openAnchorStrategyRule);

        String closeAnchorStrategyRule =
                protocol.getMarinerPageContext().getDevicePolicyValue(
                     DevicePolicyConstants.FIX_FOR_CLOSING_ANCHOR_ELEMENT);
        closeAnchorStrategy =
                factory.getWhitespaceFixStrategy(closeAnchorStrategyRule);


        String openStyleStrategyRule =
                protocol.getMarinerPageContext().getDevicePolicyValue(
                        DevicePolicyConstants.FIX_FOR_OPEN_INLINE_STYLING_ELEMENTS);
        openStyleStrategy =
                factory.getWhitespaceFixStrategy(openStyleStrategyRule);

        String closeStyleStrategyRule =
                protocol.getMarinerPageContext().getDevicePolicyValue(
                        DevicePolicyConstants.FIX_FOR_CLOSING_INLINE_STYLING_ELEMENTS);
        closeStyleStrategy =
                factory.getWhitespaceFixStrategy(closeStyleStrategyRule);


    }
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.