Examples of PAPIElementFactory


Examples of com.volantis.mcs.papi.PAPIElementFactory

     * @param params Array of parameters
     */
    protected void open(String name, String[] params)
        throws PAPIException {

        PAPIElementFactory factory =
            papiFactory.getPAPIElementFactory(name.toLowerCase());

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

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

        // If we are opening a subclass of BaseAttributes
        // then param[0] will be a style class name
        if (attributes instanceof BaseAttributes && params.length >= 1 &&
            params[0] != null) {
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElementFactory

     *
     * @param name Element name
     * @throws PAPIException
     */
    protected void close(String name) throws PAPIException {
        PAPIElementFactory factory =
            papiFactory.getPAPIElementFactory(name.toLowerCase());
        PAPIAttributes papiAttr = factory.createElementSpecificAttributes();

        PAPIElement element = (PAPIElement)elements.pop();
        int result = element.elementEnd(getCurrentRequestContext(), papiAttr);

        assertEquals("Close did not return CONTINUE_PROCESSING as expected",
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElementFactory

    /**
     * open a pane element
     * @throws PAPIException
     */
    private void openPane() throws PAPIException {
        PAPIElementFactory factory =
            papiFactory.getPAPIElementFactory("pane");

        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.
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElementFactory

    /**
     * open select markup
     * @throws PAPIException
     */
    private void openSelect() throws PAPIException {
        PAPIElementFactory factory =
            papiFactory.getPAPIElementFactory("select");

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

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

        // 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.PAPIElementFactory

    /**
     * open native markup
     * @throws PAPIException
     */
    private void openNativeMarkup() throws PAPIException {
        PAPIElementFactory factory =
            papiFactory.getPAPIElementFactory("nativemarkup");

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

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

        attributes.setPane("pane");
        attributes.setTargetLocation("pane");

        // Process start element, this is the thing which does
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElementFactory

        startElement("body");
    }

    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.PAPIElementFactory

        paneElement.elementStart(getCurrentRequestContext(), attributes);

    }

    protected void openCanvas() throws PAPIException {
        PAPIElementFactory factory =
            papiFactory.getPAPIElementFactory("canvas");

        canvasElement = factory.createPAPIElement();

        com.volantis.mcs.papi.CanvasAttributes canvasAttributes =
            (com.volantis.mcs.papi.CanvasAttributes)factory.createElementSpecificAttributes();
        canvasAttributes.setPageTitle(PAGE_TITLE);
        canvasAttributes.setTheme(THEME_NAME);
        canvasAttributes.setLayoutName(LAYOUT_NAME);

        canvasElement.elementStart(getCurrentRequestContext(),
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElementFactory

        closeCanvas();
    }

    private void closeCanvas() throws PAPIException {
        PAPIElementFactory factory =
            papiFactory.getPAPIElementFactory("canvas");
        PAPIAttributes papiAttr = factory.createElementSpecificAttributes();

        canvasElement.elementEnd(getCurrentRequestContext(), papiAttr);

        canvasElement = null;
    }
View Full Code Here

Examples of com.volantis.mcs.papi.PAPIElementFactory

        canvasElement = null;
    }

    private void closePane() throws PAPIException {
        PAPIElementFactory factory =
            papiFactory.getPAPIElementFactory("pane");
        PAPIAttributes papiAttr = factory.createElementSpecificAttributes();

        paneElement.elementEnd(getCurrentRequestContext(), papiAttr);

        paneElement = null;
    }
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.