Package com.volantis.mcs.protocols.trans

Examples of com.volantis.mcs.protocols.trans.TransTable$TableTransformer


                new TestProtocolRegistry.TestDOMProtocolFactory(),
                internalDevice);

        table.setName("table");

        TransTable transTable = getFactory().getTable(table, protocol);

        assertEquals("unexpected class for table instance",
                getTableClass().getName(),
                transTable.getClass().getName());
    }
View Full Code Here


                new TestProtocolRegistry.TestDOMProtocolFactory(),
                internalDevice);

        table.setName("table");

        TransTable transTable = getFactory().getTable(table, protocol);

        assertEquals("unexpected class for table instance",
                     getTableClass().getName(),
                     transTable.getClass().getName());
    }
View Full Code Here

    }

    // Javadoc inherited.
    public TransTable createTransTable(Element table, DOMProtocol protocol) {

        TransTable transTable = new HTML3_2TransTable(table, protocol);
        transTable.setFactory(new HTML3_2TransFactory(
                protocol.getProtocolConfiguration()));
        return transTable;
    }
View Full Code Here

    }

    // Javadoc inherited.
    public TransTable createTransTable(Element table, DOMProtocol protocol) {

        TransTable transTable = new XHTMLTransitionalTransTable(table, protocol);
        transTable.setFactory(new XHTMLTransitionalTransFactory(
                protocol.getProtocolConfiguration()));
        return transTable;
    }
View Full Code Here

        }

        // javadoc inherited
        public TransTable getTable(Element table, DOMProtocol protocol) {

            TransTable trans = new XHTMLBasicTransTable(table, protocol) {
                        // javadoc inherited
                        protected String[] getPreserveStyleAttributes() {
                            // The class attribute is handled by the superclass
                            // so is not included here. colspan, height,
                            // rowspan and width are explicitly not included
                            // since it is not meaningful to do so.
                            String[] attributes =
                                    {"abbr", "align", "axis", "bgcolor",
                                     "headers" /* TODO keep? */,
                                     "nowrap", "valign"};

                            return attributes;
                        }
                    };

            trans.setFactory(this);

            return trans;
        }
View Full Code Here

    }

    // Javadoc inherited.
    public TransTable getTable(Element table, DOMProtocol protocol) {

        TransTable trans = new XHTMLBasicTransTable(table, protocol);
        trans.setFactory(this);
        return trans;
    }
View Full Code Here

    }

    // Javadoc inherited.
    public TransTable getTable(Element table, DOMProtocol protocol) {

        TransTable trans = new HTML3_2TransTable(table, protocol);
        trans.setFactory(this);
        return trans;
    }
View Full Code Here

            // processing, never shrinking but potentially growing on each
            // iteration
            int i = 0;

            while (i < tables.size()) {
                TransTable table = (TransTable)tables.get(i);

                if (getRemoveTableRule().canRemoveTable(table)) {
                    int row;

                    // Re-map the top-level table
                    mapper.remap(table.getElement(),
                                 getFactory().getElementHelper(),
                                 true);

                    // "Promote" the nested tables, adding them to the end
                    // of the tables array so they can be processed in turn
                    // (they may be single column tables too)
                    for (row = 0; row < table.getRows(); row++) {
                        TransCell cell = table.getCell(row, 0);
                        TransTable nested = cell.getTable();

                        if ((nested != null) &&
                            (cell.getStartRow() == row)) {
                            nested.setParent(null);
                            tables.add(nested);
                            cell.setTable(null);
                        }
                    }
View Full Code Here

                            this.protocol.getMarinerPageContext().getDevice();
                    TableWidthTransformer tableWidthProcess =
                            new TableWidthTransformer(device);
                    int useableWidth = device.getPixelsX();
                    for (int i=0; i<tables.size(); i++) {
                        TransTable table = (TransTable) tables.get(i);
                        tableWidthProcess.transformPercentagesToPixels(
                                table, useableWidth);
                    }
                }
            };
View Full Code Here

    }

    // Javadoc inherited.
    public TransTable getTable(Element table, DOMProtocol protocol) {

        TransTable trans = new WapTV5TransTable(table, protocol);
        trans.setFactory(this);
        return trans;
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.trans.TransTable$TableTransformer

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.