Package com.volantis.mcs.dom

Examples of com.volantis.mcs.dom.Element.removeAttribute()


        Document doc = domFactory.createDocument();
        doc.addNode(p);
        String expected = DOMUtilities.toString(doc);

        // the table to fix should not...
        table.removeAttribute("columns");

        transformer.fixTable(table);

        assertEquals(expected, DOMUtilities.toString(doc));
    }
View Full Code Here


        // Same as above except the support of multiple style classes is
        // set to true and a valid width has been set. Expect USE_ENCLOSING_TABLE_CELL.
//        attributes.setWidth("10");
        element.setAttribute("class", "elementStyleClass");
        element.removeAttribute("width");
//        attributes.setStyleClass("attributeStyleClass");
//        testable.setSupportsMultipleAttributeClasses(true);
        result = protocol.checkPaneCellAttributes(element, attributes);
        assertEquals("Expected ",
                     PaneRendering.USE_ENCLOSING_TABLE_CELL,
View Full Code Here

        // Same as above except the support of multiple style classes is
        // set to true and a valid width has been set.
        // Expect CREATE_ENCLOSING_ELEMENT.
//        attributes.setWidth("10");
        element.setAttribute("class", "elementStyleClass");
        element.removeAttribute("valign");
//        attributes.setStyleClass("attributeStyleClass");
//        testable.setSupportsMultipleAttributeClasses(false);
        result = protocol.checkPaneCellAttributes(element, attributes);
        assertEquals("Expected ",
                     PaneRendering.CREATE_ENCLOSING_ELEMENT,
View Full Code Here

        for (int i = 0; i < implicitElements.size(); i++) {
            final Element implicit = (Element) implicitElements.get(i);
            final String containingFormName = getFormName(implicit);
            if (formName.equals(containingFormName)) {
                // remove the marker attribute
                implicit.removeAttribute(
                        ProtocolConstants.CONTAINING_XFFORM_ATTRIBUTE);
                form.addHead(implicit);
                implicitElements.remove(i);
                i--;
            }
View Full Code Here

        // If the parent has an ID, record it and remove it in case the parent
        // actually has to be split (we don't want a duplicated ID attribute)
        Element parent = table.getParent();
        String parentId = parent.getAttributeValue("id");

        parent.removeAttribute("id");

        final boolean discard = table.promote();

        promotePreserveStyle(parent, table);
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.