Package com.volantis.mcs.protocols.styles

Examples of com.volantis.mcs.protocols.styles.TextAlignHandler


        // Initialise the style value handlers.
        KeywordValueHandler textAlignKeywordHandler = new KeywordValueHandler(
                TextAlignKeywordMapper.getSingleton());

        horizontalAlignChecker = new TextAlignHandler(
                textAlignKeywordHandler,
                NoopPropertyUpdater.getDefaultInstance());

        // NOTE: do not attempt to use the NoopPropertyClearer here without due
        // thought. I tried it on the Orange OAT pagination.oml and the
        // pagination buttons stopped rendering properly. The right side of
        // the pagination is in a right aligned table cell (as shown below with
        // [] meaning a table and | a cell separator)
        // [ [ < | prev ]                                        [ next | > ] ]
        // stopped rendering properly, the sub table  [ next | > ] was not right
        // aligned in the parent table's td. This is because when you leave in
        // the text-align: on the td, it apparently overrides the align= and
        // has a slightly different meaning, whereby to get the "next >" right
        // aligned you need to add width: 100% on the table that surrounds it.
        // Not sure how we should address this in future, but we shouldn't be
        // relying on such nastyness...
        horizontalAlignHandler = new TextAlignHandler(
                textAlignKeywordHandler,
                PropertyExcluder.getDefaultInstance());

        // Property handlers for vertical-align style property.
        // We have two instances as handler checks device capabilities in order
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.styles.TextAlignHandler

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.