Examples of PaneAttributes


Examples of com.volantis.mcs.papi.PaneAttributes

            ba.setStyleClass(params[0]);
        }

        // If we are opening a Pane param[1] will be the name
        if (attributes instanceof PaneAttributes && params.length >= 2) {
            PaneAttributes pa = (PaneAttributes)attributes;
            pa.setName(params[1]);
        }

        // If its a Canvas then param[1] will be the page title,
        // param[2] the theme file name
        // param[3] the layout file name and
View Full Code Here

Examples of com.volantis.mcs.papi.PaneAttributes

        assertNotNull("Unknown element name, pane check testcase.",
            factory);

        PAPIElement element = factory.createPAPIElement();
        PaneAttributes attributes = (PaneAttributes)
                factory.createElementSpecificAttributes();

        attributes.setName("pane");

        // Process start element, this is the thing which does
        // the work.
        int result = element.elementStart(getCurrentRequestContext(), attributes);
View Full Code Here

Examples of com.volantis.mcs.papi.PaneAttributes

    protected void openPane() throws PAPIException {
        PAPIElementFactory factory =
            papiFactory.getPAPIElementFactory("pane");

        paneElement = factory.createPAPIElement();
        PaneAttributes attributes =
            (PaneAttributes)factory.createElementSpecificAttributes();

        attributes.setName("pane");

        paneElement.elementStart(getCurrentRequestContext(), attributes);

    }
View Full Code Here

Examples of com.volantis.mcs.papi.PaneAttributes

            throws PAPIException {

        MarinerPageContext pageContext
                = ContextInternals.getMarinerPageContext(context);

        PaneAttributes attributes = (PaneAttributes) papiAttributes;

        // Try and find the pane with the specified name, if it could not be
        // found then return and skip the element body.
        String paneName = attributes.getName();
        if (paneName != null) {

            FormatReference formatRef =
                    FormatReferenceParser.parsePane(paneName, pageContext);
            Pane pane = pageContext.getPane(formatRef.getStem());
            NDimensionalIndex paneIndex = formatRef.getIndex();

            if (pane == null) {
                skipped = true;
                return SKIP_ELEMENT_BODY;
            }

            paneInstance = (AbstractPaneInstance)
                    pageContext.getFormatInstance(pane, paneIndex);
            if (paneInstance.ignore()) {
                skipped = true;
                return SKIP_ELEMENT_BODY;
            }

            paneInstance.setStyleClass(attributes.getStyleClass());
            MCSAttributes pAttributes = paneInstance.getAttributes();
            // get the styles for the current element and set it on the MCSAttributes
            pAttributes.setStyles(pageContext.getStylingEngine().getStyles());

            pageContext.pushContainerInstance(paneInstance);
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

        context.setDevice(INTERNAL_DEVICE_FACTORY.createInternalDevice(
            new DefaultDevice(DEVICE_NAME, new HashMap(), null)));
        DOMOutputBuffer buffer = new DOMOutputBuffer();
        buffer.initialise();

        PaneAttributes paneAttrs = new PaneAttributes();
        paneAttrs.setStyles(StylesBuilder.getDeprecatedStyles());
//        paneAttrs.setBorderWidth("5");
        paneAttrs.setPane(pane);

        protocol.openPane(buffer, paneAttrs);

        buffer.closeElement("td");
        buffer.closeElement("tr");
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

        final String cssValues = "background-color: #ff00ff; " +
                "border-width: 5px; " +
                "border-spacing: 7px";

        PaneAttributes attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getStyles(cssValues));
//        attributes.setBackgroundColour("#ff00ff");
//        attributes.setBorderWidth("5");
//        attributes.setCellPadding("6");
//        attributes.setCellSpacing("7");
        attributes.setPane(pane);

        protocol.openPane(buffer, attributes);
        try {
            el = buffer.closeElement("td");
        } catch (IllegalStateException ise) {
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

        containerCell.setAttribute("valign", "top");

        Pane pane1 = new Pane(null);
        pane1.setName(PANE_NAME);

        PaneAttributes attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getStyles(
                "background-color: #ff0000"));
        attributes.setPane(pane1);

//        context.setStyleClassName(CLASS_NAME);
        protocol.setMarinerPageContext(context);
        protocol.openPane(dom, attributes);
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

        TestDeviceLayoutContext deviceContext = new TestDeviceLayoutContext();
        context.pushDeviceLayoutContext(deviceContext);

        DOMOutputBuffer dom = new DOMOutputBuffer();
        dom.initialise();
        PaneAttributes attributes = new PaneAttributes();
        Pane pane = new Pane(null);
        attributes.setPane(pane);

        Element body;
        // @todo 2005060816 annotate child with style information if it's not inherited from the parent
        body = dom.openStyledElement("body", attributes);
        dom.openElement("table");
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

        final String cssValues = "background-color: #ff00ff; " +
                        "border-width: 5px; " +
                        "border-spacing: 7px";

        PaneAttributes attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getStyles(cssValues));
        attributes.setPane(pane);

        protocol.openPane(buffer, attributes);
        try {
            el = buffer.closeElement("td");
        } catch (IllegalStateException ise) {
View Full Code Here

Examples of com.volantis.mcs.protocols.PaneAttributes

        dom.openElement("td");

        Pane pane1 = new Pane(null);
        pane1.setName(PANE_NAME);
        PaneAttributes attributes = new PaneAttributes();
        attributes.setStyles(StylesBuilder.getStyles(
                "background-color: #ff0000; border-width: 5px"));
        attributes.setPane(pane1);
        // Setting the border width to 5 will render the pane as a table
        // because the pane has no style class.

        protocol.setMarinerPageContext(context);
        protocol.openPane(dom, attributes);
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.