Examples of PaneAttributes


Examples of com.volantis.mcs.protocols.PaneAttributes

     * pane's content.
     *
     * @throws Exception
     */
    public void testClosePaneDoNothing() throws Exception {
        PaneAttributes attributes = new PaneAttributes();
        DOMOutputBuffer dom = setupForPaneTests(
                PaneRendering.DO_NOTHING, attributes);

        final Element expected;
        expected = dom.openStyledElement("body", attributes);
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

                                       String expectedClass) {
    }

    // javadoc inherited.
    public void testUseEnclosingTableCell() throws Exception {
        PaneAttributes attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getDeprecatedStyles());

        doTestUseEnclosingTableCell(attributes, "<td/>");

        // Set some styles on the element.
        attributes.setStyles(StylesBuilder.getStyles("background-color: red"));
        doTestUseEnclosingTableCell(attributes, "<td bgcolor=\"red\"/>");
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

    // javadoc inherited.
    public void testCreateEnclosingElement() throws Exception {
        // NOTE: This protocol doesn't support style classes and we should never
        // have a class attribute in real life situations. However, this is
        // explicitly set in the super class' method during this test.
        PaneAttributes attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getStyles("background-color: green"));

        // Set a valid style class on the pane attributes.
        // Also set a style class on the element itself.
        doTestCreateEnclosingElement(attributes,
                                     "<td>" +
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

    // javadoc inherited.
    public void testCreateEnclosingElement() throws Exception {
        // NOTE: This protocol doesn't support style classes and we should never
        // have a class attribute in real life situations. However, this is
        // explicitly set in the super class' method during this test.
        PaneAttributes attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getDeprecatedStyles());

        // Div not supported in HDML
        doTestCreateEnclosingElement(attributes,
                                     "<td/>");
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

    protected AbstractPaneInstance createTestableAbstractPaneContext(
            NDimensionalIndex index) {
       
        return new AbstractPaneInstance(index) {

            PaneAttributes attrs = new PaneAttributes();

            public void endCurrentBuffer() {
            }

            public PaneAttributes getAttributes() {
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

            String attributeValueHorizontal,
            String attributeValueVertical) {

        privateSetup();

        PaneAttributes attributes = createPaneAttributes(
                attributeValueHorizontal, attributeValueVertical);

        Element element = domFactory.createStyledElement(attributes.getStyles());
        element.setName("td");

        protocol.addPaneCellAttributes(element, attributes.getStyles());
        return element;
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

     * @return the newly created PaneAttributes.
     */
    PaneAttributes createPaneAttributes(String horizontal, String vertical) {
        String css = getCssAlign(horizontal, vertical);

        PaneAttributes attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getStyles(css));
        Pane pane = new Pane(null);
        attributes.setPane(pane);
        return attributes;
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

        assertEquals("Value should match", element.getAttributeValue(ALIGN), expected);
    }

    // javadoc inherited
    public void testUseEnclosingTableCell() throws Exception {
        PaneAttributes attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getDeprecatedStyles());

        doTestUseEnclosingTableCell(attributes, "<td align=\"left\" valign=\"center\"/>");
    }
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

        buffer.initialise();

        Element el = null;

        Pane pane = null;
        PaneAttributes attributes = null;

        pane = new Pane(null);
        pane.setName("test");
        attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getStyles("background-color: red"));
        attributes.setPane(pane);

        // Set up the required contexts
        testable.setStyleSheetRenderer(CSSStyleSheetRenderer.getSingleton());
        pageContext.setDeviceName("PC-Win32-IE5.5");
        protocol.setMarinerPageContext(pageContext);
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

    public void testCreateEnclosingElement() throws Exception {
        // NOTE: This protocol doesn't support style classes and we should never
        // have a class attribute in real life situations. However, this is
        // explicitly set in the super class' method during this test.

        PaneAttributes attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getDeprecatedStyles());

        // Set a valid style class on the pane attributes.
        // Also set a style class on the element itself.
        doTestCreateEnclosingElement(attributes,
                "<td>" +
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.